diff --git a/README.md b/README.md index e93a6298..8f5752c3 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,7 @@ ![Build](https://github.com/lowlighter/metrics/workflows/Build/badge.svg) Generates your own GitHub metrics as an SVG image to put them on your profile page or elsewhere ! - See what it looks like below : - ![GitHub metrics](https://github.com/lowlighter/lowlighter/blob/master/github-metrics.svg) ### 🦑 Interested to get your own ? @@ -15,118 +13,109 @@ Try it now at [metrics.lecoq.io](https://metrics.lecoq.io/) with your GitHub use ### ⚙️ Using GitHub Action on your profile repo (~5 min setup) -A GitHub Action which is run periodically at your convenience which generates and push an SVG image on your personal repository. +Setup a GitHub Action which is run periodically and push a generated SVG image on your repository. Assuming your username is `my-github-user`, you can embed your metrics in your personal repository's readme like below : ```markdown ![GitHub metrics](https://github.com/my-github-user/my-github-user/blob/master/github-metrics.svg) ``` -Or with HTML : -```html -My GitHub metrics -``` -
💬 How to setup ? #### 0. Prepare your personal repository If you don't know yet or haven't done it yet, create a repository with the same name as your GitHub username. - ![Personal repository](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/personal_repo.png) -The `README.md` of this repository will be displayed on your GitHub user profile like below ! - +The `README.md` of this repository will be displayed on your GitHub user profile like below : ![GitHub Profile](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/github_profile.png) -#### 1. Create a GitHub token +#### 1. Setup a GitHub token -In your account settings, go to `Developer settings` and select `Personal access tokens` to create a new token. +Go to `Developer settings` from your GitHub account settings and select `Personal access tokens` to create a new token. You'll need to create a token with the `public_repo` right so this GitHub Action has enough permissions to push the updated SVG metrics on your personal repository. - ![Create a GitHub token](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/personal_token.png) +If you choose to use a bot account, you can put `public_repo` rights to the bot token and invite it as a collaborator on your personal profile repository so it has push access. This way, you can use a personnal token with no rights instead and reduce security issues. + #### 2. Put your GitHub token in your personal repository secrets -Go to the `Settings` of your personal repository to create a new secret and paste your GitHub token here with the name `METRICS_TOKEN`. - +Go to the `Settings` of your personal repository to create a new secret and paste your GitHub token here. ![Setup secret](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/repo_secrets.png) #### 3. Create a new GitHub Action workflow on your personal repo -Go to the `Actions` of your personal repository and create a new workflow. +Create a new workflow from the `Actions` tab of your personal repository and paste the following. +Don't forget to put your GitHub username ! -Paste the following and don't forget to put your GitHub username. ```yaml name: GitHub metrics as SVG image on: - # Update metrics each 15 minutes. Edit this if you want to increase/decrease frequency - # Note that GitHub image cache (5-15 minutes) still apply so it is useless to set less than this, you're image won't be refreshed + # Schedule the metrics update schedule: [{cron: "*/15 * * * *"}] - # Add this if you want to force update each time you commit on master branch + # (optional) Force update a commit occurs on master branch push: {branches: "master"} jobs: github-metrics: runs-on: ubuntu-latest steps: - uses: lowlighter/metrics@latest - # This line will prevent this GitHub action from running when it is updated by itself if you enabled trigger on master branch - if: "!contains(github.event.head_commit.message, '[Skip GitHub Action]')" with: - # Your GitHub token ("public_repo" is required to allow this action to update the metrics SVG image) + # Your GitHub token token: ${{ secrets.METRICS_TOKEN }} - # Your GitHub user name - user: my-github-user - # Additional options # ========================================== - # The GitHub token used to commit to your repository (defaults to the same value as "token") - # This can be used to specify the token of a bot account if you use a personal token with advanced permissions - # (which is needed if you want to include metrics of your private repositories, or to enable plugins like traffic) + # GitHub username (defaults to "token" user) + user: my-github-user + + # If provided, this token will be used instead of "token" for commit operations + # You can specify a bot account to avoid virtually increasing your stats due to this action commits committer_token: ${{ secrets.METRICS_BOT_TOKEN }} - # Path/filename to use to store generated SVG + # Name of SVG image output filename: github-metrics.svg - # If you own a website and you added it to your GitHub profile, - # You can provide a PageSpeed token to add your site's performance results on the metrics SVG image - # See https://developers.google.com/speed/docs/insights/v5/get-started to obtain a key + # Enable Google PageSpeed metrics for account attached website + # See https://developers.google.com/speed/docs/insights/v5/get-started for more informations plugin_pagespeed: no pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }} - # Enable repositories lines added/removed count + # Enable lines of code metrics plugin_lines: no - # Enable repositories traffic (pages views) count - # The provided GitHub token will require "repo" permissions + # Enable repositories traffic metrics + # *Provided GitHub token require full "repo" permissions plugin_traffic: no - # Enable or disable coding habits metrics + # Enable coding habits metrics plugin_habits: no + # Skip commits flagged with [Skip GitHub Action] from commits count + plugin_selfskip: no + # Enable debug logs debug: no ``` -On each run, a new SVG image will be generated and committed to your repository. +A new SVG image will be generated and committed to your repository on each run. +Because of this, the amount of your commits could be virtually increased which is probably unwanted. -This could virtually increase your commits stats, so it is recommended to pass a bot account token to `token` instead. -The bot will be able to track metrics of all your public repositories. +To avoid this, you can use a bot token instead, which will still be able to track metrics of all your public repositories. +If you want to also track your private repositories metrics, you'll need to pass a personal token with full `repo` permissions to your personal `token`, and use the `committer_token` parameter to pass the bot account token. -If you want to also track your private repositories metrics, you'll need to pass a personal token with `repo` permissions to `token`, and use the `committer_token` parameter to pass the bot account token. +If you don't want to use a bot token, you can use the `plugin_selfskip` which will count out all your commits from your personal repository tagged with `[Skip GitHub Action]` made with your account, but these commits will still be linked to your account. ![Action update](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/action_update.png) #### 4. Embed the link into your README.md Edit your README.md on your repository and link it your image : - ```markdown ![GitHub metrics](https://github.com/my-github-user/my-github-user/blob/master/github-metrics.svg) ``` @@ -135,7 +124,7 @@ Edit your README.md on your repository and link it your image : ### 💕 Using the shared instance (~1 min setup, but with limitations) -For conveniency, you can use the shared instance available at [metrics.lecoq.io](https://metrics.lecoq.io). +For conveniency, you can use the shared instance available at [metrics.lecoq.io](https://metrics.lecoq.io) without any additional setup. Assuming your username is `my-github-user`, you can embed your metrics in your personal repository's readme like below : ```markdown @@ -145,147 +134,116 @@ Assuming your username is `my-github-user`, you can embed your metrics in your p
💬 Restrictions and fair use -Since GitHub API has rate limitations and to avoid abuse, the shared instance has the following limitations : +Since GitHub API has rate limitations, the shared instance has a few limitations : * Images are cached for 1 hour - * Your generated metrics **won't** be updated during this amount of time + * Your generated metrics won't be updated during this amount of time * If you enable or disable plugins in url parameters, you'll need to wait for cache expiration before these changes are applied - * A rate limiter prevents new metrics generation when reached, but it **does not** affect already cached users metrics, including your own - * Most of plugins are not available - * PageSpeed plugin can be enabled by passing `?pagespeed=1`, but metrics generation can take up some time + * The rate limiter is enabled, although it won't affect already cached users metrics + * Plugins are disabled + * PageSpeed plugin can still be enabled by passing `?pagespeed=1`, but metrics generation can take up some time when it has not been cached yet -You should consider deploying your own instance or use GitHub Action if you're planning using this service. +To ensure maximum availability, consider deploying your own instance or use the GitHub Action.
### 🏗️ Deploying your own instance (~15 min setup, depending on your sysadmin knowledge) -Using your own instance is useful if you do not want to use GitHub Action or allow others users to use your instance. +You can setup your own instance if you choose to not use the GitHub Action or you want to allow others users to use your instance. -A GitHub token is required to setup your instance, however since metrics images are not stored on your repositories you do not need to grant any additional permissions to your token, which reduce security issues. - -You can restrict which users can generate metrics on your server and apply rate limiting (which is advised or else you'll hit the GitHub API rate limiter). - -It is also easier to change `query.graphql`, `style.css` and `template.svg` if you want to gather additional stats, perform esthetical changes or edit the structure of the SVG image. +You'll need to create a GitHub token to setup it, however you do not need to grant any additional permissions to your token since it won't push images to any of your repositories. You may still require additional rights for some plugins if you decide to enable them though. +If you intend to share your instance, it is advised to setup either an access list to restrict which users can use it, or to configure the rate limiter to avoid reaching the requests limit of GitHub API.
💬 How to setup ? #### 0. Prepare your server -You'll need to have a server at your disposal where you can install and configure stuff. +You'll need a server where you can install and configure apps. #### 1. Create a GitHub token In your account settings, go to `Developer settings` and select `Personal access tokens` to create a new token. - -As explained above, you do not need to grant additional permissions to the token. - +As explained above, you do not need to grant additional permissions to the token unless you want to enable additional plugins. ![Create a GitHub token](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/personal_token_alt.png) #### 2. Install the dependancies -Connect to your server. - -You'll need [NodeJS](https://nodejs.org/en/) (the latter version is better, for reference this was tested on v14.9.0). - -Clone the repository +Connect to your server and ensure [NodeJS](https://nodejs.org/en/) is installed (see tested versions in the [build workflows](https://github.com/lowlighter/metrics/blob/master/.github/workflows/build.yml)). +Then run the following commands : ```shell +# Clone this repository (or your fork) git clone https://github.com/lowlighter/metrics.git -``` - -Go inside project and install dependancies : -```shell +# Install dependancies cd metrics/ npm install --only=prod -``` - -Copy `settings.example.json` to `settings.json` -```shell +# Copy the settings exemple cp settings.example.json settings.json ``` #### 3. Configure your instance -Open and edit `settings.json` to configure your instance. - +Open and edit `settings.json` to configure your instance using a text editor of your choice. ```javascript { - //Your GitHub API token + //GitHub API token "token":"****************************************", - //The optionals parameters below allows you to avoid reaching the GitHub API rate limitation + //Users who are authorized to generate metrics on your instance + //An empty list or an undefined value will be treated as "unrestricted" + "restricted":["my-github-user"], - //A set of whitelisted users which can generate metrics on your instance - //Leave empty or undefined to disable - //Defaults to unrestricted - "restricted":["my-github-user"], + //Lifetime of generated metrics (cached version will be served instead during this time window) + "cached":3600000, - //Lifetime of each generated metrics - //If an user's metrics are requested while lifetime is still up, a cached version will be served - //Defaults to 60 minutes - "cached":3600000, + //Number of simultaneous users who can use your instance before sending a "503 error" + //A zero or an undefined value will be treated as "unlimited" + "maxusers":0, - //Maximum simultaneous number of user which can be cached - //When this limit is reached, new users will receive a 503 error - //Defaults to 0 (unlimited) - "maxusers":0, + //Rate limiter (see https://www.npmjs.com/package/express-rate-limit) + //A null or undefined value will be treated as "disabled" + "ratelimiter":{ + "windowMs":60000, + "max":100 + }, - //Rate limiter - //See https://www.npmjs.com/package/express-rate-limit - //Disabled by default - "ratelimiter":{ - "windowMs":60000, - "max":100 - }, - - //Port on which your instance listen - //Defaults to 3000 + //Listening port used by your instance "port":3000, + //Optimize SVG image + "optimize":true, + //Debug mode - //When enabled, "query.graphql", "style.css" and "template.svg" will be reloaded at each request - //Cache will be disabled - //This is intendend for easier development which allows to see your changes quickly - //Defaults to false + //When enabled, templates will be reloaded at each request and cache will be disabled + //Intended for easier development and disabled by default "debug":false, //Plugins configuration - //Most of plugins are disabled by default - //Enabling them can add additional informations and metrics about you, but increases response time "plugins":{ - //Pagespeed plugin + //Google PageSpeed plugin "pagespeed":{ - //Enable or disable this plugin - //When enabled, pass "?pagespeed=1" in url to generate website's performances + //Enable or disable this plugin. Pass "?pagespeed=1" in url to generate website's performances "enabled":false, - //Pagespeed token - //See https://developers.google.com/speed/docs/insights/v5/get-started to obtain a key + //Pagespeed token (see https://developers.google.com/speed/docs/insights/v5/get-started) "token":"****************************************" }, //Lines plugin "lines":{ - //Enable or disable this plugin - //When enabled, pass "?lines=1" in url to compute total lines added/removed in your repositories by you + //Enable or disable this plugin. Pass "?lines=1" in url to compute total lines you added/removed on your repositories "enabled":true }, //Traffic plugin "traffic":{ - //Enable or disable this plugin - //When enabled, pass "?traffic=1" in url to compute total page views in your repositories in last two weeks - //Note that this requires that the passed GitHub API token requires a push access + //Enable or disable this plugin. Pass "?traffic=1" in url to compute page views on your repositories in last two weeks + //*This requires a GitHub API token with push access "enabled":true }, //Habits plugin "habits":{ - //Enable or disable this plugin - //When enabled, pass "?habits=1" in url to generate coding habits based on your recent activity - //This includes stuff like if you're using tabs or space and the time of the day when you push the most - //Note that this requires that the passed GitHub API token requires a push access + //Enable or disable this plugin. Pass "?habits=1" in url to generate coding habits based on your recent activity "enabled":true, - //Specify the number of events used to compute coding habits. Capped at 100 by GitHub API - //Defaults to 50 + //Number of events used to compute coding habits (capped at 100 by GitHub API) "from":50, } } @@ -294,24 +252,28 @@ Open and edit `settings.json` to configure your instance. #### 4. Start your instance -Run the following command to start your instance : +Start your instance once you've finished configuring it : ```shell npm start ``` -Open your browser and test your instance : -```shell -http://localhost:3000/my-github-user +And you should be able to access it on the port you provided ! + +#### 5. Embed the link into your README.md + +Edit your `README.md` on your repository and include your metrics from your server domain : +```markdown +![GitHub metrics](https://my-personal-domain.com/my-github-user) ``` -#### 5. Setup as service on your instance (optional) +#### 6. (optional) Setup as service on your instance -You should consider using a service to run your instance. -It will allow to restart automatically on crash and on boot. +If you want to ensure that your instance will be restarted after reboots or crashes, you should setup it as a service. +This is described below for linux-like systems with *systemd*. -Create a new file in `/etc/systemd/system` : +Create a new service file in `/etc/systemd/system` : ```shell -vi /etc/systemd/system/github_metrics.service +nano /etc/systemd/system/github_metrics.service ``` Paste the following and edit it with the correct paths : @@ -330,34 +292,21 @@ ExecStart=/usr/bin/node /path/to/metrics/index.mjs WantedBy=multi-user.target ``` -Reload services, enable it and start it : +Reload services, enable it, start it and check it is up and running : ```shell systemctl daemon-reload systemctl enable github_metrics systemctl start github_metrics -``` - -Check if your service is up and running : -```shell systemctl status github_metrics ``` -#### 6. Embed the link into your README.md - -Edit your README.md on your repository and link it your image : - -```markdown -![GitHub metrics](https://my-personal-domain.com/my-github-user) -``` -
⚠️ HTTP errors code -The following errors code can be encountered if your using a server instance : - -* `403 Forbidden` : User is not whitelisted in `restricted` users list +The following errors code can be encountered if on a server instance : +* `403 Forbidden` : User is not allowed in `restricted` users list * `404 Not found` : GitHub API did not found the requested user * `429 Too many requests` : Thrown when rate limiter is trigerred * `500 Internal error` : An error ocurred while generating metrics images (logs can be seen if you're the owner of the instance) @@ -369,30 +318,27 @@ The following errors code can be encountered if your using a server instance : ### 🧩 Plugins -Plugins are additional features that are disabled by default and which may requires additional configuration. +Plugins are features which are disabled by default but they can provide additional metrics. +In return they may require additional configuration and tend to consume additional API requests. -These can provide more informations into your generated metrics, but it could also make it longer to generate, which may not be suitable with a server instance if you're not using caching. - -#### ⏱️ Pagespeed - -The *pagespeed* plugin allows you to add your website performances. +#### ⏱️ PageSpeed +The *pagespeed* plugin allows you to add the performances of the website attached to the GitHub user account : ![Pagespeed plugin](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/plugin_pagespeed.png) -These are computed through [Google's pagespeed API](https://developers.google.com/speed/docs/insights/v5/get-started), which returns the same results as [web.dev](https://web.dev). +These are computed through [Google's PageSpeed API](https://developers.google.com/speed/docs/insights/v5/get-started), which returns the same results as [web.dev](https://web.dev).
💬 About -To setup this plugin, you'll need an API key that you can generate in the [pagespeed API presentation](https://developers.google.com/speed/docs/insights/v5/get-started). +This plugin may require an API key that you can generate [here](https://developers.google.com/speed/docs/insights/v5/get-started) although it does not seem mandatory. It is still advised to provide it to avoid 429 HTTP errors. -The website attached to your GitHub profile will be the one to be audited. -It will take about 10 to 15 seconds to generate the results, so it is advised to use this plugin alongside caching system or for automated image generation. +The website attached to the GitHub profile will be the one to be audited. +Expect 10 to 30 seconds to generate the results. ##### Setup with GitHub actions Add the following to your workflow : - ```yaml - uses: lowlighter/metrics@latest with: @@ -403,8 +349,7 @@ Add the following to your workflow : ##### Setup in your own instance -Add the following to your `settings.json` - +Add the following to your `settings.json` and pass `?pagespeed=1` in url when generating metrics. ```json "plugins":{ "pagespeed":{ @@ -414,14 +359,11 @@ Add the following to your `settings.json` } ``` -And pass `?pagespeed=1` in url when generating metrics. -
#### 👨‍💻 Lines -The *lines* plugin allows you to add the number of lines of code you added and removed across your repositories. - +The *lines* of code plugin allows you to compute the number of lines of code you added and removed across all of your repositories. ![Lines plugin](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/plugin_lines.png)
@@ -432,7 +374,6 @@ It will consume an additional GitHub request per repository. ##### Setup with GitHub actions Add the following to your workflow : - ```yaml - uses: lowlighter/metrics@latest with: @@ -442,8 +383,7 @@ Add the following to your workflow : ##### Setup in your own instance -Add the following to your `settings.json` - +Add the following to your `settings.json` and pass `?lines=1` in url when generating metrics. ```json "plugins":{ "lines":{ @@ -452,14 +392,11 @@ Add the following to your `settings.json` } ``` -And pass `?lines=1` in url when generating metrics. -
#### 🧮 Traffic -The *traffic* plugin allows you to add the number of pages views across your repositories. - +The repositories *traffic* plugin allows you to compute the number of pages views across your repositories. ![Traffic plugin](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/plugin_traffic.png)
@@ -467,27 +404,25 @@ The *traffic* plugin allows you to add the number of pages views across your rep It will consume an additional GitHub request per repository. -Due to GitHub Rest API limitation, the GitHub token you provide will requires "repo" permissions instead of "public_repo" to allow this plugin accessing traffic informations. - +Because of GitHub REST API limitation, the provided token will require full `repo` permissions to access traffic informations. ![Token with repo permissions](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/token_repo_rights.png) ##### Setup with GitHub actions Add the following to your workflow : - ```yaml - uses: lowlighter/metrics@latest with: # ... other options - token: ${{ secrets.METRICS_TOKEN }} # Remember, this must have "repo" permissions for this plugin to work ! + token: ${{ secrets.METRICS_TOKEN }} plugin_traffic: yes ``` ##### Setup in your own instance -Add the following to your `settings.json` - +Add the following to your `settings.json` and pass `?traffic=1` in url when generating metrics. ```json + "token":"****************************************", "plugins":{ "traffic":{ "enabled":true, @@ -495,14 +430,11 @@ Add the following to your `settings.json` } ``` -And pass `?traffic=1` in url when generating metrics. -
#### 💡 Habits -The *habits* plugin allows you to add deduced coding about based on your recent activity. - +The coding *habits* plugin allows you to add deduced coding about based on your recent activity, from up to 100 events. ![Habits plugin](https://github.com/lowlighter/metrics/blob/master/.github/readme/imgs/plugin_habits.png)
@@ -510,10 +442,12 @@ The *habits* plugin allows you to add deduced coding about based on your recent It will consume an additional GitHub request per event fetched. +Because of GitHub REST API limitation, the provided token will require full `repo` permissions to access **private** events. +By default, events that cannot be fetched will be ignored so you can still use this plugin with a public token. + ##### Setup with GitHub actions Add the following to your workflow : - ```yaml - uses: lowlighter/metrics@latest with: @@ -523,8 +457,7 @@ Add the following to your workflow : ##### Setup in your own instance -Add the following to your `settings.json` - +Add the following to your `settings.json` and pass `?habits=1` in url when generating metrics. ```json "plugins":{ "habits":{ @@ -533,35 +466,62 @@ Add the following to your `settings.json` } ``` -And pass `?habits=1` in url when generating metrics. +
+ +#### ⏭️ Selfskip + +The *selfskip* plugin allows you to count out all commits tagged with `[Skip GitHub Action]` you authored on your personal repository from your reported commit counts. + +
+💬 About + +It will consume an additional GitHub request per page fetched of your commit activity from your personal repository. + +##### Setup with GitHub actions + +Add the following to your workflow : +```yaml +- uses: lowlighter/metrics@latest + with: + # ... other options + plugin_selfskip: yes +```
### 🗂️ Project structure -* `index.mjs` contains the entry points and the settings instance -* `src/app.mjs` contains the server code which serves renders and apply rate limiting, restrictions, etc. -* `src/metrics.mjs` contains metrics renderer -* `src/query.graphql` is the GraphQL query which is sent to GitHub API -* `src/style.css` contains the style for the generated svg image metrics -* `src/template.svg` contains the structure of the generated svg image metrics -* `src/plugins/*` contains various additional plugins which can add additional informations in generated metrics +#### Metrics generator + +* `src/metrics.mjs` contains the metrics renderer +* `src/query.graphql` is the GraphQL query sent to GitHub GraphQL API +* `src/style.css` contains the style used by the generated SVG image +* `src/template.svg` contains the template used by the generated SVG image +* `src/plugins/*` contains the source code of metrics plugins + +#### Metrics server instance + +* `index.mjs` contains the metrics server entry point +* `src/app.mjs` contains the metrics server code which serves, renders, restricts/rate limit, etc. + +#### GitHub action + * `action/index.mjs` contains the GitHub action code * `action/dist/index.js` contains compiled the GitHub action code -* `utils/*` contains various utilitaries for build +* `utils/build.mjs` contains the GitHub action builder -### 💪 Contributing +### 💪 Contributing and customizing -If you would like to suggest a new feature or find a bug, you can fill an [issue](https://github.com/lowlighter/metrics/issues) describing your problem. +If you would like to suggest a new feature, find a bug or need help, you can fill an [issue](https://github.com/lowlighter/metrics/issues) describing your problem. If you're motivated enough, you can submit a [pull request](https://github.com/lowlighter/metrics/pulls) to integrate new features or to solve open issues. + Read the few sections below to get started with project structure. #### Adding new metrics through GraphQL API, REST API or Third-Party service -If you want to gather additional metrics, update the GraphQL query from `src/query.graphql` to get additional data from [GitHub GraphQL API](https://docs.github.com/en/graphql). -Add additional computations and formatting in `src/metrics.mjs`. -Raw queried data should be exposed in `data.user` whereas computed data should be in `data.computed`. +To use [GitHub GraphQL API](https://docs.github.com/en/graphql), update the GraphQL query from `src/query.graphql`. +Raw queried data should be exposed in `data.user` whereas computed data should be in `data.computed`, and code should be updated through `src/metrics.mjs`. To use [GitHub Rest API](https://docs.github.com/en/rest) or a third-party service instead, create a new plugin in `src/plugins`. Plugins should be self-sufficient and re-exported from [src/plugins/index.mjs](https://github.com/lowlighter/metrics/blob/master/src/plugins/index.mjs), to be later included in the `//Plugins` section of `src/metrics.mjs`. @@ -573,34 +533,30 @@ The SVG template is located in `src/template.svg` and include the CSS from `src/ It's actually a long JavaScript template string, so you can actually include variables (e.g. `` `${data.user.name}` ``) and execute inline code, like ternary conditions (e.g. `` `${computed.plugins.plugin ? `
${computed.plugins.plugin.data}
` : ""}` ``) which are useful for conditional statements. -#### Server and GitHub action editions +#### Metrics server and GitHub action Most of the time, you won't need to edit these, unless you're integrating features directly tied to them. +Remember that SVG image is actually generated from `src/metrics.mjs`, independently from metrics server and GitHub action. -Server code is located in `src/app.mjs` and instantiates an `express` server app, `octokit`s instances, middlewares (like rate-limiter) and routes. +Metrics server code is located in `src/app.mjs` and instantiates an `express` server app, `octokit`s instances, middlewares (like rate-limiter) and routes. GitHub action code is located in `action/index.mjs` and instantiates `octokit`s instances and retrieves action parameters. It then use directly `src/metrics.mjs` to generate the SVG image and commit them to user's repository. +You must run `npm run build` to rebuild the GitHub action. #### Testing new features -To test new features, you'll need to follow the first steps of the `Deploying your own instance` tutorial. -Basically you create a `settings.json` containing a test token and `debug` mode enabled. - -You can then start the node with `npm start` and you'll be able to test how the SVG renders with your editions by opening the server url in your browser. +To test new features, setup a metrics server with a test token and `debug` mode enabled. +This way you'll be able to rapidly test SVG renders with your browser. ### 📖 Useful references -Below is a list of useful links : - * [GitHub GraphQL API](https://docs.github.com/en/graphql) * [GitHub GraphQL Explorer](https://developer.github.com/v4/explorer/) * [GitHub Rest API](https://docs.github.com/en/rest) ### 📦 Used packages -Below is a list of primary dependencies : - * [express/express.js](https://github.com/expressjs/express) and [expressjs/compression](https://github.com/expressjs/compression) * To serve, compute and render a GitHub user's metrics * [nfriedly/express-rate-limit](https://github.com/nfriedly/express-rate-limit) @@ -623,8 +579,6 @@ See [GitHub Logos and Usage](https://github.com/logos) for more information. ### ✨ Inspirations -This project was inspired by the following projects : - * [anuraghazra/github-readme-stats](https://github.com/anuraghazra/github-readme-stats) * [jstrieb/github-stats](https://github.com/jstrieb/github-stats) * [ankurparihar/readme-pagespeed-insights](https://github.com/ankurparihar/readme-pagespeed-insights) diff --git a/action.yml b/action.yml index 45be0c17..bdd4711e 100644 --- a/action.yml +++ b/action.yml @@ -6,28 +6,41 @@ branding: color: gray-dark inputs: token: - description: GitHub Personal Token (require "public_repo" permissions) + description: GitHub Personal Token required: true committer_token: - description: If provided, this token will be used instead of "token" for commit operations. You can specify a bot account to avoid virtually increasing your stats due to this action commits. + description: If provided, this token will be used instead of "token" for commit operations (you can specify a bot account to avoid virtually increasing your stats due to this action commits) + default: "" user: - description: Target GitHub username - required: true + description: GitHub username + default: "" filename: description: Name of SVG image output default: github-metrics.svg + optimize: + description: Optimize SVG image + default: yes plugin_pagespeed: - description: Enable Pagespeed metrics for user's website (requires "pagespeed_token" to be provided) + description: Enable Google PageSpeed metrics for account attached website + default: no pagespeed_token: - description: Pagespeed Personal Token (optional, see https://developers.google.com/speed/docs/insights/v5/get-started for more information) + description: Google Pagespeed Personal Token (*see https://developers.google.com/speed/docs/insights/v5/get-started for more informations) + default: "" plugin_lines: - description: Enable repositories lines metrics + description: Enable lines of code metrics + default: no plugin_traffic: - description: Enable repositories traffic metrics (due to GitHub API limitations, "token" must have "repo" permissions) + description: Enable repositories traffic metrics (*provided GitHub token require full "repo" permissions) + default: no plugin_habits: description: Enable coding habits metrics + default: no + plugin_selfskip: + description: Skip commits flagged with [Skip GitHub Action] from commits count + default: no debug: description: Enable debug logs + default: no runs: using: node12 main: action/dist/index.js \ No newline at end of file diff --git a/action/dist/index.js b/action/dist/index.js index b3a0c960..af438ce7 100644 --- a/action/dist/index.js +++ b/action/dist/index.js @@ -1,4 +1,4 @@ -module.exports=(()=>{var __webpack_modules__={76677:(e,t,r)=>{"use strict";r.r(t);var n=r(85622);var i=r.n(n);var a=r(60270);var o=r(3584);var s=r(32882);var l=r.n(s);var c=r(29483);var u=r.n(c);(async function(){const[e,t,r,n]=[s,c,o,a].map(e=>e&&e.default?e.default:e);try{console.log(`GitHub metrics as SVG image`);console.log(`========================================================`);console.log(`Version | 1.7.0`);process.on("unhandledRejection",e=>{throw e});const a=` +module.exports=(()=>{var __webpack_modules__={76677:(e,t,r)=>{"use strict";r.r(t);var n=r(85622);var i=r.n(n);var a=r(60270);var o=r(3584);var s=r(32882);var l=r.n(s);var c=r(29483);var u=r.n(c);var d=r(2390);var p=r.n(d);(async function(){const[e,t,r,n,l]=[s,c,o,d,a].map(e=>e&&e.default?e.default:e);const u=(e,t=false)=>typeof e==="string"?/^(?:[Tt]rue|[Oo]n|[Yy]es)$/.test(e):t;try{console.log(`GitHub metrics as SVG image`);console.log(`========================================================`);console.log(`Version | 1.8.0`);process.on("unhandledRejection",e=>{throw e});if(t.eventName==="push"&&t.context.payload&&t.context.payload.head_commit){if(/\[Skip GitHub Action\]/.test(t.context.payload.head_commit.message)){console.log(`Skipped because [Skip GitHub Action] is in commit message`);process.exit(0)}}const n=` @@ -54,7 +54,7 @@ module.exports=(()=>{var __webpack_modules__={76677:(e,t,r)=>{"use strict";r.r(t
- \${data.computed.commits} Commit\${data.computed.commits > 1 ? "s" : ""} + \${data.computed.commits - (computed.plugins.selfskip ? computed.plugins.selfskip.commits||0 : 0)} Commit\${data.computed.commits - (computed.plugins.selfskip ? computed.plugins.selfskip.commits||0 : 0) > 1 ? "s" : ""}
@@ -304,7 +304,7 @@ module.exports=(()=>{var __webpack_modules__={76677:(e,t,r)=>{"use strict";r.r(t
-`,o=`/* SVG global context */ +`,a=`/* SVG global context */ svg { font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji; font-size: 14px; @@ -499,7 +499,7 @@ module.exports=(()=>{var __webpack_modules__={76677:(e,t,r)=>{"use strict";r.r(t to { opacity: 1; } - }`,s=`query Metrics { + }`,o=`query Metrics { user(login: \$login) { name login @@ -595,4 +595,4 @@ module.exports=(()=>{var __webpack_modules__={76677:(e,t,r)=>{"use strict";r.r(t } } } -`;console.log(`Templates | loaded`);const[l,c,u,d]=[e.getInput("token"),e.getInput("user"),e.getInput("filename",{default:"github-metrics.svg"}),e.getInput("debug",{default:false})];const p=e.getInput("committer_token",{default:null})||l;const m=i().join(u);console.log(`GitHub user | ${c}`);console.log(`Output file | ${m}`);console.log(`Github token | ${l?"provided":"missing"}`);if(!l)throw new Error("You must provide a valid GitHub token");const f=r.graphql.defaults({headers:{authorization:`token ${l}`}});const h=t.getOctokit(l);if(!d)console.debug=(()=>null);console.log(`Debug mode | ${d?"enabled":"disabled"}`);const g={lines:{enabled:e.getInput("plugin_lines",{default:false})},traffic:{enabled:e.getInput("plugin_traffic",{default:false})},pagespeed:{enabled:e.getInput("plugin_pagespeed",{default:false})},habits:{enabled:e.getInput("plugin_habits",{default:false})}};if(e.getInput("pagespeed_token")){console.log(`Pagespeed token | provided`);g.pagespeed.token=e.getInput("pagespeed_token")}const y=Object.fromEntries(Object.entries(g).filter(([e,t])=>t.enabled).map(([e])=>[e,true]));console.log(`Plugins enabled | ${Object.entries(g).filter(([e,t])=>t.enabled).map(([e])=>e).join(", ")}`);const v=await n({login:c,q:y},{template:a,style:o,query:s,graphql:f,rest:h,plugins:g});console.log(`Render | complete`);{const e=t.getOctokit(p);console.log(`Committer | ${(await e.users.getAuthenticated()).data.login}`);let r=undefined;try{const{data:t}=await e.repos.getContent({owner:c,repo:c,path:u});r=t.sha}catch(e){}console.log(`Previous render sha | ${r||"none"}`);await e.repos.createOrUpdateFileContents({owner:c,repo:c,path:u,sha:r,message:`Update ${u} - [Skip GitHub Action]`,content:Buffer.from(v).toString("base64")});console.log(`Commit to repo | ok`)}console.log(`Success !`)}catch(t){console.error(t);e.setFailed(t.message);process.exit(1)}})().catch(e=>process.exit(1))},12541:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(12087));const a=r(74332);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},32882:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=r(12541);const o=r(29582);const s=r(74332);const l=i(r(12087));const c=i(r(85622));var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=s.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;o.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e){a.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){a.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},29582:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(35747));const a=n(r(12087));const o=r(74332);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${o.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},74332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},84873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(35747);const i=r(12087);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${i.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},29483:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const o=a(r(84873));const s=r(24864);t.context=new o.Context;function getOctokit(e,t){return new s.GitHub(s.getOctokitOptions(e,t))}t.getOctokit=getOctokit},18145:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const o=a(r(66305));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new o.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},24864:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const o=a(r(84873));const s=a(r(18145));const l=r(40812);const c=r(5462);const u=r(19227);t.context=new o.Context;const d=s.getApiBaseUrl();const p={baseUrl:d,request:{agent:s.getProxyAgent(d)}};t.GitHub=l.Octokit.plugin(c.restEndpointMethods,u.paginateRest).defaults(p);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=s.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},66305:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(78835);const i=r(98605);const a=r(57211);const o=r(92901);let s;var l;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(l=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect];const p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout];const m=["OPTIONS","GET","DELETE","HEAD"];const f=10;const h=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let a=n.parse(t);let o=this._prepareRequest(e,a,i);let s=this._allowRetries&&m.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const s=u.message.headers["location"];if(!s){break}let l=n.parse(s);if(a.protocol=="https:"&&a.protocol!=l.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await u.readBody();if(l.hostname!==a.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,l,i);u=await this.requestRaw(o,r);t--}if(p.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let a=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);a(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}a(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){a(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?a:i;const s=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):s;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let l=n&&n.hostname;if(this._keepAlive&&l){t=this._proxyAgent}if(this._keepAlive&&!l){t=this._agent}if(!!t){return t}const c=e.protocol==="https:";let u=100;if(!!this.requestOptions){u=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(l){if(!s){s=r(34603)}const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const a=n.protocol==="https:";if(c){i=a?s.httpsOverHttps:s.httpsOverHttp}else{i=a?s.httpOverHttps:s.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new a.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=c?a.globalAgent:i.globalAgent}if(c&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(f,e);const t=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const a={statusCode:i,result:null,headers:{}};if(i==l.NotFound){r(a)}let o;let s;try{s=await e.readBody();if(s&&s.length>0){if(t&&t.deserializeDates){o=JSON.parse(s,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(s)}a.result=o}a.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(s&&s.length>0){e=s}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(a.result){t["result"]=a.result}n(t)}else{r(a)}})}}t.HttpClient=HttpClient},92901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(78835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},22899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const i=t.endpoint.merge(r,n);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},40812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1857);var i=r(46401);var a=r(48826);var o=r(3584);var s=r(22899);function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t)n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=(async()=>({type:"unauthenticated"}))}else{const r=s.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const r=e.authStrategy(Object.assign({request:this.request},e.auth));t.wrap("request",r.hook);this.auth=r}const c=this.constructor;c.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const n=(t=class extends(this){},t.plugins=r.concat(e.filter(e=>!r.includes(e))),t);return n}}Octokit.VERSION=l;Octokit.plugins=[];t.Octokit=Octokit},70412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(80641);var i=r(1857);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,r)=>{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(i=>{if(n.isPlainObject(t[i])){if(!(i in e))Object.assign(r,{[i]:t[i]});else r[i]=mergeDeep(e[i],t[i])}else{Object.assign(r,{[i]:t[i]})}});return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map(e=>e.replace(/-preview/,""));return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const a=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(a);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>{t[r]=e[r];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var i=e[r],a=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(n&&n!=="*"){i=i.substring(0,parseInt(n,10))}a.push(encodeValue(t,i,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){a.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){a.push(encodeValue(t,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(i).forEach(function(r){if(isDefined(i[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,i[r].toString()))}})}if(isKeyOperator(t)){a.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){a.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){a.push(encodeUnreserved(r))}}else if(i===""&&(t==="&"||t==="?")){a.push(encodeUnreserved(r)+"=")}else if(i===""){a.push("")}}return a}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,i){if(n){let e="";const i=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach(function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);i.push(getValues(t,e,n[1],n[2]||n[3]))});if(e&&e!=="+"){var a=",";if(e==="?"){a="&"}else if(e!=="#"){a=e}return(i.length!==0?e:"")+i.join(a)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let i;let a=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const o=extractUrlVariableNames(r);r=parseUrl(r).expand(a);if(!/^http/.test(r)){r=e.baseUrl+r}const s=Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl");const l=omit(a,s);const c=/application\/octet-stream/i.test(n.accept);if(!c){if(e.mediaType.format){n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`}).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,l)}else{if("data"in l){i=l.data}else{if(Object.keys(l).length){i=l}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof i!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:r,headers:n},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const o="6.0.8";const s=`octokit-endpoint.js/${o} ${i.getUserAgent()}`;const l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":s},mediaType:{format:"",previews:[]}};const c=withDefaults(null,l);t.endpoint=c},3584:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(48826);var i=r(1857);const a="4.5.6";class GraphqlError extends Error{constructor(e,t){const r=t.data.errors[0].message;super(r);Object.assign(this,t.data);Object.assign(this,{headers:t.headers});this.name="GraphqlError";this.request=e;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const o=["method","baseUrl","url","headers","request","query","mediaType"];const s=/\/api\/v3\/?$/;function graphql(e,t,r){if(typeof t==="string"&&r&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}const n=typeof t==="string"?Object.assign({query:t},r):t;const i=Object.keys(n).reduce((e,t)=>{if(o.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e},{});const a=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(s.test(a)){i.url=a.replace(s,"/api/graphql")}return e(i).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlError(i,{headers:t,data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const i=(e,t)=>{return graphql(r,e,t)};return Object.assign(i,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const l=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${a} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=l;t.withCustomRequest=withCustomRequest},19227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.4.0";function normalizePaginatedListResponse(e){const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const i=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const a=Object.keys(e.data)[0];const o=e.data[a];e.data=o;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=i;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const i=typeof t==="function"?t:e.request;const a=n.method;const o=n.headers;let s=n.url;return{[Symbol.asyncIterator]:()=>({next(){if(!s){return Promise.resolve({done:true})}return i({method:a,url:s,headers:o}).then(normalizePaginatedListResponse).then(e=>{s=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:e}})}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then(i=>{if(i.done){return t}let a=false;function done(){a=true}t=t.concat(n?n(i.value,done):i.value.data);if(a){return t}return gather(e,t,r,n)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.paginateRest=paginateRest},5462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs",{mediaType:{previews:["antiope"]}}],createSuite:["POST /repos/{owner}/{repo}/check-suites",{mediaType:{previews:["antiope"]}}],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}",{mediaType:{previews:["antiope"]}}],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",{mediaType:{previews:["antiope"]}}],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs",{mediaType:{previews:["antiope"]}}],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",{mediaType:{previews:["antiope"]}}],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites",{mediaType:{previews:["antiope"]}}],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest",{mediaType:{previews:["antiope"]}}],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences",{mediaType:{previews:["antiope"]}}],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}]},codeScanning:{getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/{archive_format}/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile",{mediaType:{previews:["black-panther"]}}],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const n="4.2.0";function endpointsToMethods(e,t){const r={};for(const[n,i]of Object.entries(t)){for(const[t,a]of Object.entries(i)){const[i,o,s]=a;const[l,c]=i.split(/ /);const u=Object.assign({method:l,url:c},o);if(!r[n]){r[n]={}}const d=r[n];if(s){d[t]=decorate(e,n,t,u,s);continue}d[t]=e.request.defaults(u)}}return r}function decorate(e,t,r,n,i){const a=e.request.defaults(n);function withDecorations(...n){let o=a.endpoint.merge(...n);if(i.mapToData){o=Object.assign({},o,{data:o[i.mapToData],[i.mapToData]:undefined});return a(o)}if(i.renamed){const[n,a]=i.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${a}()`)}if(i.deprecated){e.log.warn(i.deprecated)}if(i.renamedParameters){const o=a.endpoint.merge(...n);for(const[n,a]of Object.entries(i.renamedParameters)){if(n in o){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${a}" instead`);if(!(a in o)){o[a]=o[n]}delete o[n]}}return a(o)}return a(...n)}return Object.assign(withDecorations,a)}function restEndpointMethods(e){return endpointsToMethods(e,r)}restEndpointMethods.VERSION=n;t.restEndpointMethods=restEndpointMethods},48364:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(86649);var i=_interopDefault(r(86343));const a=i(e=>console.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){a(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const i=Object.assign({},r.request);if(r.request.headers.authorization){i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},48826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(70412);var i=r(1857);var a=r(80641);var o=_interopDefault(r(22434));var s=r(48364);const l="5.4.9";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(a.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const i=e.request&&e.request.fetch||o;return i(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(i=>{n=i.url;r=i.status;for(const e of i.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new s.RequestError(i.statusText,r,{headers:t,request:e})}if(r===304){throw new s.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return i.text().then(n=>{const i=new s.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(i.message);Object.assign(i,e);let t=e.errors;i.message=i.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw i})}const a=i.headers.get("content-type");if(/application\/json/.test(a)){return i.json()}if(!a||/^text\/|charset=utf-8$/.test(a)){return i.text()}return getBufferResponse(i)}).then(e=>{return{status:r,url:n,headers:t,data:e}}).catch(r=>{if(r instanceof s.RequestError){throw r}throw new s.RequestError(r.message,500,{headers:t,request:e})})}function withDefaults(e,t){const r=e.defaults(t);const n=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const i=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(i,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(i,n)};return Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)})}const c=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${l} ${i.getUserAgent()}`}});t.request=c},2390:(e,t,r)=>{e.exports=r(64579)},38007:(e,t,r)=>{"use strict";var n=r(19520);var i=r(29801);var a=r(92074);var o=r(87481);var s=r(98605);var l=r(57211);var c=r(75955).http;var u=r(75955).https;var d=r(78835);var p=r(78761);var m=r(35131);var f=r(3034);var h=r(95261);var g=/https:?/;e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(t,r){var y=function resolve(e){t(e)};var v=function reject(e){r(e)};var b=e.data;var S=e.headers;if(!S["User-Agent"]&&!S["user-agent"]){S["User-Agent"]="axios/"+m.version}if(b&&!n.isStream(b)){if(Buffer.isBuffer(b)){}else if(n.isArrayBuffer(b)){b=Buffer.from(new Uint8Array(b))}else if(n.isString(b)){b=Buffer.from(b,"utf-8")}else{return v(f("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}S["Content-Length"]=b.length}var x=undefined;if(e.auth){var w=e.auth.username||"";var C=e.auth.password||"";x=w+":"+C}var k=a(e.baseURL,e.url);var T=d.parse(k);var E=T.protocol||"http:";if(!x&&T.auth){var A=T.auth.split(":");var O=A[0]||"";var z=A[1]||"";x=O+":"+z}if(x){delete S.Authorization}var P=g.test(E);var _=P?e.httpsAgent:e.httpAgent;var W={path:o(T.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:S,agent:_,agents:{http:e.httpAgent,https:e.httpsAgent},auth:x};if(e.socketPath){W.socketPath=e.socketPath}else{W.hostname=T.hostname;W.port=T.port}var q=e.proxy;if(!q&&q!==false){var B=E.slice(0,-1)+"_proxy";var R=process.env[B]||process.env[B.toUpperCase()];if(R){var L=d.parse(R);var D=process.env.no_proxy||process.env.NO_PROXY;var G=true;if(D){var F=D.split(",").map(function trim(e){return e.trim()});G=!F.some(function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&T.hostname.substr(T.hostname.length-e.length)===e){return true}return T.hostname===e})}if(G){q={host:L.hostname,port:L.port};if(L.auth){var M=L.auth.split(":");q.auth={username:M[0],password:M[1]}}}}}if(q){W.hostname=q.host;W.host=q.host;W.headers.host=T.hostname+(T.port?":"+T.port:"");W.port=q.port;W.path=E+"//"+T.hostname+(T.port?":"+T.port:"")+W.path;if(q.auth){var I=Buffer.from(q.auth.username+":"+q.auth.password,"utf8").toString("base64");W.headers["Proxy-Authorization"]="Basic "+I}}var j;var U=P&&(q?g.test(q.protocol):true);if(e.transport){j=e.transport}else if(e.maxRedirects===0){j=U?l:s}else{if(e.maxRedirects){W.maxRedirects=e.maxRedirects}j=U?u:c}if(e.maxBodyLength>-1){W.maxBodyLength=e.maxBodyLength}var N=j.request(W,function handleResponse(t){if(N.aborted)return;var r=t;var a=t.req||N;if(t.statusCode!==204&&a.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(p.createUnzip());delete t.headers["content-encoding"];break}}var o={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:a};if(e.responseType==="stream"){o.data=r;i(y,v,o)}else{var s=[];r.on("data",function handleStreamData(t){s.push(t);if(e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength){r.destroy();v(f("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,a))}});r.on("error",function handleStreamError(t){if(N.aborted)return;v(h(t,e,null,a))});r.on("end",function handleStreamEnd(){var t=Buffer.concat(s);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=n.stripBOM(t)}}o.data=t;i(y,v,o)})}});N.on("error",function handleRequestError(t){if(N.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;v(h(t,e,null,N))});if(e.timeout){N.setTimeout(e.timeout,function handleRequestTimeout(){N.abort();v(f("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",N))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(N.aborted)return;N.abort();v(e)})}if(n.isStream(b)){b.on("error",function handleStreamError(t){v(h(t,e,null,N))}).pipe(N)}else{N.end(b)}})}},63500:(e,t,r)=>{"use strict";var n=r(19520);var i=r(29801);var a=r(47536);var o=r(87481);var s=r(92074);var l=r(77912);var c=r(11682);var u=r(3034);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,r){var d=e.data;var p=e.headers;if(n.isFormData(d)){delete p["Content-Type"]}if((n.isBlob(d)||n.isFile(d))&&d.type){delete p["Content-Type"]}var m=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"";var h=unescape(encodeURIComponent(e.auth.password))||"";p.Authorization="Basic "+btoa(f+":"+h)}var g=s(e.baseURL,e.url);m.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),true);m.timeout=e.timeout;m.onreadystatechange=function handleLoad(){if(!m||m.readyState!==4){return}if(m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)){return}var n="getAllResponseHeaders"in m?l(m.getAllResponseHeaders()):null;var a=!e.responseType||e.responseType==="text"?m.responseText:m.response;var o={data:a,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};i(t,r,o);m=null};m.onabort=function handleAbort(){if(!m){return}r(u("Request aborted",e,"ECONNABORTED",m));m=null};m.onerror=function handleError(){r(u("Network Error",e,null,m));m=null};m.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}r(u(t,e,"ECONNABORTED",m));m=null};if(n.isStandardBrowserEnv()){var y=(e.withCredentials||c(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):undefined;if(y){p[e.xsrfHeaderName]=y}}if("setRequestHeader"in m){n.forEach(p,function setRequestHeader(e,t){if(typeof d==="undefined"&&t.toLowerCase()==="content-type"){delete p[t]}else{m.setRequestHeader(t,e)}})}if(!n.isUndefined(e.withCredentials)){m.withCredentials=!!e.withCredentials}if(e.responseType){try{m.responseType=e.responseType}catch(t){if(e.responseType!=="json"){throw t}}}if(typeof e.onDownloadProgress==="function"){m.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&m.upload){m.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!m){return}m.abort();r(e);m=null})}if(!d){d=null}m.send(d)})}},64579:(e,t,r)=>{"use strict";var n=r(19520);var i=r(69339);var a=r(10353);var o=r(59807);var s=r(6769);function createInstance(e){var t=new a(e);var r=i(a.prototype.request,t);n.extend(r,a.prototype,t);n.extend(r,t);return r}var l=createInstance(s);l.Axios=a;l.create=function create(e){return createInstance(o(l.defaults,e))};l.Cancel=r(56305);l.CancelToken=r(99576);l.isCancel=r(57822);l.all=function all(e){return Promise.all(e)};l.spread=r(83202);e.exports=l;e.exports.default=l},56305:e=>{"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},99576:(e,t,r)=>{"use strict";var n=r(56305);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise(function promiseExecutor(e){t=e});var r=this;e(function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var t=new CancelToken(function executor(t){e=t});return{token:t,cancel:e}};e.exports=CancelToken},57822:e=>{"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},10353:(e,t,r)=>{"use strict";var n=r(19520);var i=r(87481);var a=r(88030);var o=r(18944);var s=r(59807);function Axios(e){this.defaults=e;this.interceptors={request:new a,response:new a}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=s(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=[o,undefined];var r=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)});while(t.length){r=r.then(t.shift(),t.shift())}return r};Axios.prototype.getUri=function getUri(e){e=s(this.defaults,e);return i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t}))}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}});e.exports=Axios},88030:(e,t,r)=>{"use strict";var n=r(19520);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){this.handlers.push({fulfilled:e,rejected:t});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,function forEachHandler(t){if(t!==null){e(t)}})};e.exports=InterceptorManager},92074:(e,t,r)=>{"use strict";var n=r(55470);var i=r(65824);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return i(e,t)}return t}},3034:(e,t,r)=>{"use strict";var n=r(95261);e.exports=function createError(e,t,r,i,a){var o=new Error(e);return n(o,t,r,i,a)}},18944:(e,t,r)=>{"use strict";var n=r(19520);var i=r(62479);var a=r(57822);var o=r(6769);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=i(e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]});var t=e.adapter||o.adapter;return t(e).then(function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=i(t.data,t.headers,e.transformResponse);return t},function onAdapterRejection(t){if(!a(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=i(t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)})}},95261:e=>{"use strict";e.exports=function enhanceError(e,t,r,n,i){e.config=t;if(r){e.code=r}e.request=n;e.response=i;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return e}},59807:(e,t,r)=>{"use strict";var n=r(19520);e.exports=function mergeConfig(e,t){t=t||{};var r={};var i=["url","method","data"];var a=["headers","auth","proxy","params"];var o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var s=["validateStatus"];function getMergedValue(e,t){if(n.isPlainObject(e)&&n.isPlainObject(t)){return n.merge(e,t)}else if(n.isPlainObject(t)){return n.merge({},t)}else if(n.isArray(t)){return t.slice()}return t}function mergeDeepProperties(i){if(!n.isUndefined(t[i])){r[i]=getMergedValue(e[i],t[i])}else if(!n.isUndefined(e[i])){r[i]=getMergedValue(undefined,e[i])}}n.forEach(i,function valueFromConfig2(e){if(!n.isUndefined(t[e])){r[e]=getMergedValue(undefined,t[e])}});n.forEach(a,mergeDeepProperties);n.forEach(o,function defaultToConfig2(i){if(!n.isUndefined(t[i])){r[i]=getMergedValue(undefined,t[i])}else if(!n.isUndefined(e[i])){r[i]=getMergedValue(undefined,e[i])}});n.forEach(s,function merge(n){if(n in t){r[n]=getMergedValue(e[n],t[n])}else if(n in e){r[n]=getMergedValue(undefined,e[n])}});var l=i.concat(a).concat(o).concat(s);var c=Object.keys(e).concat(Object.keys(t)).filter(function filterAxiosKeys(e){return l.indexOf(e)===-1});n.forEach(c,mergeDeepProperties);return r}},29801:(e,t,r)=>{"use strict";var n=r(3034);e.exports=function settle(e,t,r){var i=r.config.validateStatus;if(!r.status||!i||i(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},62479:(e,t,r)=>{"use strict";var n=r(19520);e.exports=function transformData(e,t,r){n.forEach(r,function transform(r){e=r(e,t)});return e}},6769:(e,t,r)=>{"use strict";var n=r(19520);var i=r(53293);var a={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(63500)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(38007)}return e}var o={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){i(t,"Accept");i(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)){setContentTypeIfUnset(t,"application/json;charset=utf-8");return JSON.stringify(e)}return e}],transformResponse:[function transformResponse(e){if(typeof e==="string"){try{e=JSON.parse(e)}catch(e){}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};o.headers={common:{Accept:"application/json, text/plain, */*"}};n.forEach(["delete","get","head"],function forEachMethodNoData(e){o.headers[e]={}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){o.headers[e]=n.merge(a)});e.exports=o},69339:e=>{"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n{"use strict";var n=r(19520);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var i;if(r){i=r(t)}else if(n.isURLSearchParams(t)){i=t.toString()}else{var a=[];n.forEach(t,function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}a.push(encode(t)+"="+encode(e))})});i=a.join("&")}if(i){var o=e.indexOf("#");if(o!==-1){e=e.slice(0,o)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}},65824:e=>{"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},47536:(e,t,r)=>{"use strict";var n=r(19520);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){s.push("expires="+new Date(r).toGMTString())}if(n.isString(i)){s.push("path="+i)}if(n.isString(a)){s.push("domain="+a)}if(o===true){s.push("secure")}document.cookie=s.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},55470:e=>{"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},11682:(e,t,r)=>{"use strict";var n=r(19520);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},53293:(e,t,r)=>{"use strict";var n=r(19520);e.exports=function normalizeHeaderName(e,t){n.forEach(e,function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}})}},77912:(e,t,r)=>{"use strict";var n=r(19520);var i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var r;var a;var o;if(!e){return t}n.forEach(e.split("\n"),function parser(e){o=e.indexOf(":");r=n.trim(e.substr(0,o)).toLowerCase();a=n.trim(e.substr(o+1));if(r){if(t[r]&&i.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([a])}else{t[r]=t[r]?t[r]+", "+a:a}}});return t}},83202:e=>{"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},19520:(e,t,r)=>{"use strict";var n=r(69339);var i=Object.prototype.toString;function isArray(e){return i.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return i.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(i.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return i.call(e)==="[object Date]"}function isFile(e){return i.call(e)==="[object File]"}function isBlob(e){return i.call(e)==="[object Blob]"}function isFunction(e){return i.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r{var n=r(27798);var i=r(82446);var a=r(16436);var o=Function.bind;var s=o.bind(o);function bindApi(e,t,r){var n=s(a,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach(function(n){var a=r?[t,n,r]:[t,n];e[n]=e.api[n]=s(i,null).apply(null,a)})}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var l=false;function Hook(){if(!l){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');l=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},82446:e=>{e.exports=addHook;function addHook(e,t,r,n){var i=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){r=e;return i(r,t)}).then(function(){return r})}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}}e.registry[r].push({hook:n,orig:i})}},27798:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(function(t,r){return register.bind(null,e,r,t,n)},r)()}return Promise.resolve().then(function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce(function(e,t){return t.hook.bind(null,e,n)},r)()})}},16436:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map(function(e){return e.orig}).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},27510:e=>{e.exports={trueFunc:function trueFunc(){return true},falseFunc:function falseFunc(){return false}}},89072:e=>{"use strict";e.exports=adapterFactory;function adapterFactory(e){ensureImplementation(e);var t={};var r={removeSubsets:function(e){return removeSubsets(t,e)},existsOne:function(e,r){return existsOne(t,e,r)},getSiblings:function(e){return getSiblings(t,e)},hasAttrib:function(e,r){return hasAttrib(t,e,r)},findOne:function(e,r){return findOne(t,e,r)},findAll:function(e,r){return findAll(t,e,r)}};Object.assign(t,r,e);return t}var t=["isTag","getAttributeValue","getChildren","getName","getParent","getText"];function ensureImplementation(e){if(!e)throw new TypeError("Expected implementation");var r=t.filter(function(t){return typeof e[t]!=="function"});if(r.length){var n="("+r.join(", ")+")";var i="Expected functions "+n+" to be implemented";throw new Error(i)}}function removeSubsets(e,t){var r=t.length,n,i,a;while(--r>-1){n=i=t[r];t[r]=null;a=true;while(i){if(t.indexOf(i)>-1){a=false;t.splice(r,1);break}i=e.getParent(i)}if(a){t[r]=n}}return t}function existsOne(e,t,r){return r.some(function(r){return e.isTag(r)?t(r)||e.existsOne(t,e.getChildren(r)):false})}function getSiblings(e,t){var r=e.getParent(t);return r&&e.getChildren(r)}function hasAttrib(e,t,r){return e.getAttributeValue(t,r)!==undefined}function findOne(e,t,r){var n=null;for(var i=0,a=r.length;i0){n=e.findOne(t,o)}}}return n}function findAll(e,t,r){var n=[];for(var i=0,a=r.length;i{"use strict";e.exports=CSSselect;var n=r(43370);var i=r(27510).falseFunc;var a=r(22365);function wrapCompile(e){return function addAdapter(t,r,i){r=r||{};r.adapter=r.adapter||n;return e(t,r,i)}}var o=wrapCompile(a);var s=wrapCompile(a.compileUnsafe);function getSelectorFunc(e){return function select(t,r,i){i=i||{};i.adapter=i.adapter||n;if(typeof t!=="function"){t=s(t,i,r)}if(t.shouldTestNextSiblings){r=appendNextSiblings(i&&i.context||r,i.adapter)}if(!Array.isArray(r))r=i.adapter.getChildren(r);else r=i.adapter.removeSubsets(r);return e(t,r,i)}}function getNextSiblings(e,t){var r=t.getSiblings(e);if(!Array.isArray(r))return[];r=r.slice(0);while(r.shift()!==e);return r}function appendNextSiblings(e,t){if(!Array.isArray(e))e=[e];var r=e.slice(0);for(var n=0,i=e.length;n{var n=r(27510).falseFunc;var i=/[-[\]{}()*+?.,\\^$|#\s]/g;var a={__proto__:null,equals:function(e,t,r){var n=t.name;var i=t.value;var a=r.adapter;if(t.ignoreCase){i=i.toLowerCase();return function equalsIC(t){var r=a.getAttributeValue(t,n);return r!=null&&r.toLowerCase()===i&&e(t)}}return function equals(t){return a.getAttributeValue(t,n)===i&&e(t)}},hyphen:function(e,t,r){var n=t.name;var i=t.value;var a=i.length;var o=r.adapter;if(t.ignoreCase){i=i.toLowerCase();return function hyphenIC(t){var r=o.getAttributeValue(t,n);return r!=null&&(r.length===a||r.charAt(a)==="-")&&r.substr(0,a).toLowerCase()===i&&e(t)}}return function hyphen(t){var r=o.getAttributeValue(t,n);return r!=null&&r.substr(0,a)===i&&(r.length===a||r.charAt(a)==="-")&&e(t)}},element:function(e,t,r){var a=t.name;var o=t.value;var s=r.adapter;if(/\s/.test(o)){return n}o=o.replace(i,"\\$&");var l="(?:^|\\s)"+o+"(?:$|\\s)",c=t.ignoreCase?"i":"",u=new RegExp(l,c);return function element(t){var r=s.getAttributeValue(t,a);return r!=null&&u.test(r)&&e(t)}},exists:function(e,t,r){var n=t.name;var i=r.adapter;return function exists(t){return i.hasAttrib(t,n)&&e(t)}},start:function(e,t,r){var i=t.name;var a=t.value;var o=a.length;var s=r.adapter;if(o===0){return n}if(t.ignoreCase){a=a.toLowerCase();return function startIC(t){var r=s.getAttributeValue(t,i);return r!=null&&r.substr(0,o).toLowerCase()===a&&e(t)}}return function start(t){var r=s.getAttributeValue(t,i);return r!=null&&r.substr(0,o)===a&&e(t)}},end:function(e,t,r){var i=t.name;var a=t.value;var o=-a.length;var s=r.adapter;if(o===0){return n}if(t.ignoreCase){a=a.toLowerCase();return function endIC(t){var r=s.getAttributeValue(t,i);return r!=null&&r.substr(o).toLowerCase()===a&&e(t)}}return function end(t){var r=s.getAttributeValue(t,i);return r!=null&&r.substr(o)===a&&e(t)}},any:function(e,t,r){var a=t.name;var o=t.value;var s=r.adapter;if(o===""){return n}if(t.ignoreCase){var l=new RegExp(o.replace(i,"\\$&"),"i");return function anyIC(t){var r=s.getAttributeValue(t,a);return r!=null&&l.test(r)&&e(t)}}return function any(t){var r=s.getAttributeValue(t,a);return r!=null&&r.indexOf(o)>=0&&e(t)}},not:function(e,t,r){var n=t.name;var i=t.value;var a=r.adapter;if(i===""){return function notEmpty(t){return!!a.getAttributeValue(t,n)&&e(t)}}else if(t.ignoreCase){i=i.toLowerCase();return function notIC(t){var r=a.getAttributeValue(t,n);return r!=null&&r.toLowerCase()!==i&&e(t)}}return function not(t){return a.getAttributeValue(t,n)!==i&&e(t)}}};e.exports={compile:function(e,t,r){if(r&&r.strict&&(t.ignoreCase||t.action==="not")){throw new Error("Unsupported attribute selector")}return a[t.action](e,t,r)},rules:a}},22365:(e,t,r)=>{e.exports=compile;var n=r(17525).parse;var i=r(27510);var a=r(65426);var o=r(86721);var s=r(35890);var l=r(65582);var c=i.trueFunc;var u=i.falseFunc;var d=l.filters;function compile(e,t,r){var n=compileUnsafe(e,t,r);return wrap(n,t)}function wrap(e,t){var r=t.adapter;return function base(t){return r.isTag(t)&&e(t)}}function compileUnsafe(e,t,r){var i=n(e,t);return compileToken(i,t,r)}function includesScopePseudo(e){return e.type==="pseudo"&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(function(e){return e.some(includesScopePseudo)}))}var p={type:"descendant"};var m={type:"_flexibleDescendant"};var f={type:"pseudo",name:"scope"};var h={};function absolutize(e,t,r){var n=t.adapter;var i=!!r&&!!r.length&&r.every(function(e){return e===h||!!n.getParent(e)});e.forEach(function(e){if(e.length>0&&isTraversal(e[0])&&e[0].type!=="descendant"){}else if(i&&!(Array.isArray(e)?e.some(includesScopePseudo):includesScopePseudo(e))){e.unshift(p)}else{return}e.unshift(f)})}function compileToken(e,t,r){e=e.filter(function(e){return e.length>0});e.forEach(a);var n=Array.isArray(r);r=t&&t.context||r;if(r&&!n)r=[r];absolutize(e,t,r);var i=false;var o=e.map(function(e){if(e[0]&&e[1]&&e[0].name==="scope"){var a=e[1].type;if(n&&a==="descendant"){e[1]=m}else if(a==="adjacent"||a==="sibling"){i=true}}return compileRules(e,t,r)}).reduce(reduceRules,u);o.shouldTestNextSiblings=i;return o}function isTraversal(e){return o[e.type]<0}function compileRules(e,t,r){return e.reduce(function(e,n){if(e===u)return e;if(!(n.type in s)){throw new Error("Rule type "+n.type+" is not supported by css-select")}return s[n.type](e,n,t,r)},t&&t.rootFunc||c)}function reduceRules(e,t){if(t===u||e===c){return e}if(e===u||t===c){return t}return function combine(r){return e(r)||t(r)}}function containsTraversal(e){return e.some(isTraversal)}d.not=function(e,t,r,n){var i={xmlMode:!!(r&&r.xmlMode),strict:!!(r&&r.strict),adapter:r.adapter};if(i.strict){if(t.length>1||t.some(containsTraversal)){throw new Error("complex selectors in :not aren't allowed in strict mode")}}var a=compileToken(t,i,n);if(a===u)return e;if(a===c)return u;return function not(t){return!a(t)&&e(t)}};d.has=function(e,t,r){var n=r.adapter;var i={xmlMode:!!(r&&r.xmlMode),strict:!!(r&&r.strict),adapter:n};var a=t.some(containsTraversal)?[h]:null;var o=compileToken(t,i,a);if(o===u)return u;if(o===c){return function hasChild(t){return n.getChildren(t).some(n.isTag)&&e(t)}}o=wrap(o,r);if(a){return function has(t){return e(t)&&(a[0]=t,n.existsOne(o,n.getChildren(t)))}}return function has(t){return e(t)&&n.existsOne(o,n.getChildren(t))}};d.matches=function(e,t,r,n){var i={xmlMode:!!(r&&r.xmlMode),strict:!!(r&&r.strict),rootFunc:e,adapter:r.adapter};return compileToken(t,i,n)};compile.compileToken=compileToken;compile.compileUnsafe=compileUnsafe;compile.Pseudos=l},35890:(e,t,r)=>{var n=r(91221);var i=r(65582);e.exports={__proto__:null,attribute:n.compile,pseudo:i.compile,tag:function(e,t,r){var n=t.name;var i=r.adapter;return function tag(t){return i.getName(t)===n&&e(t)}},descendant:function(e,t,r){var n=typeof WeakSet!=="undefined"?new WeakSet:null;var i=r.adapter;return function descendant(t){var r=false;while(!r&&(t=i.getParent(t))){if(!n||!n.has(t)){r=e(t);if(!r&&n){n.add(t)}}}return r}},_flexibleDescendant:function(e,t,r){var n=r.adapter;return function descendant(t){var r=e(t);while(!r&&(t=n.getParent(t))){r=e(t)}return r}},parent:function(e,t,r){if(r&&r.strict){throw new Error("Parent selector isn't part of CSS3")}var n=r.adapter;return function parent(e){return n.getChildren(e).some(test)};function test(t){return n.isTag(t)&&e(t)}},child:function(e,t,r){var n=r.adapter;return function child(t){var r=n.getParent(t);return!!r&&e(r)}},sibling:function(e,t,r){var n=r.adapter;return function sibling(t){var r=n.getSiblings(t);for(var i=0;i{var n=r(88970);var i=r(27510);var a=r(91221);var o=i.trueFunc;var s=i.falseFunc;var l=a.rules.equals;function getAttribFunc(e,t){var r={name:e,value:t};return function attribFunc(e,t,n){return l(e,r,n)}}function getChildFunc(e,t){return function(r){return!!t.getParent(r)&&e(r)}}var c={contains:function(e,t,r){var n=r.adapter;return function contains(r){return e(r)&&n.getText(r).indexOf(t)>=0}},icontains:function(e,t,r){var n=t.toLowerCase();var i=r.adapter;return function icontains(t){return e(t)&&i.getText(t).toLowerCase().indexOf(n)>=0}},"nth-child":function(e,t,r){var i=n(t);var a=r.adapter;if(i===s)return i;if(i===o)return getChildFunc(e,a);return function nthChild(t){var r=a.getSiblings(t);for(var n=0,o=0;n=0;o--){if(a.isTag(r[o])){if(r[o]===t)break;else n++}}return i(n)&&e(t)}},"nth-of-type":function(e,t,r){var i=n(t);var a=r.adapter;if(i===s)return i;if(i===o)return getChildFunc(e,a);return function nthOfType(t){var r=a.getSiblings(t);for(var n=0,o=0;o=0;o--){if(a.isTag(r[o])){if(r[o]===t)break;if(a.getName(r[o])===a.getName(t))n++}}return i(n)&&e(t)}},root:function(e,t,r){var n=r.adapter;return function(t){return!n.getParent(t)&&e(t)}},scope:function(e,t,r,n){var i=r.adapter;if(!n||n.length===0){return c.root(e,t,r)}function equals(e,t){if(typeof i.equals==="function")return i.equals(e,t);return e===t}if(n.length===1){return function(t){return equals(n[0],t)&&e(t)}}return function(t){return n.indexOf(t)>=0&&e(t)}},checkbox:getAttribFunc("type","checkbox"),file:getAttribFunc("type","file"),password:getAttribFunc("type","password"),radio:getAttribFunc("type","radio"),reset:getAttribFunc("type","reset"),image:getAttribFunc("type","image"),submit:getAttribFunc("type","submit"),hover:function(e,t,r){var n=r.adapter;if(typeof n.isHovered==="function"){return function hover(t){return e(t)&&n.isHovered(t)}}return s},visited:function(e,t,r){var n=r.adapter;if(typeof n.isVisited==="function"){return function visited(t){return e(t)&&n.isVisited(t)}}return s},active:function(e,t,r){var n=r.adapter;if(typeof n.isActive==="function"){return function active(t){return e(t)&&n.isActive(t)}}return s}};function getFirstElement(e,t){for(var r=0;e&&r=0;n--){if(r[n]===e)return true;if(t.isTag(r[n]))break}return false},"first-of-type":function(e,t){var r=t.getSiblings(e);for(var n=0;n=0;n--){if(t.isTag(r[n])){if(r[n]===e)return true;if(t.getName(r[n])===t.getName(e))break}}return false},"only-of-type":function(e,t){var r=t.getSiblings(e);for(var n=0,i=r.length;n=0}}function verifyArgs(e,t,r){if(r===null){if(e.length>2&&t!=="scope"){throw new Error("pseudo-selector :"+t+" requires an argument")}}else{if(e.length===2){throw new Error("pseudo-selector :"+t+" doesn't have any arguments")}}}var d=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;e.exports={compile:function(e,t,r,n){var i=t.name;var a=t.data;var l=r.adapter;if(r&&r.strict&&!d.test(i)){throw new Error(":"+i+" isn't part of CSS3")}if(typeof c[i]==="function"){return c[i](e,a,r,n)}else if(typeof u[i]==="function"){var p=u[i];verifyArgs(p,i,a);if(p===s){return p}if(e===o){return function pseudoRoot(e){return p(e,l,a)}}return function pseudoArgs(t){return p(t,l,a)&&e(t)}}else{throw new Error("unmatched pseudo-class :"+i)}},filters:c,pseudos:u}},65426:(e,t,r)=>{e.exports=sortByProcedure;var n=r(86721);var i={__proto__:null,exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function sortByProcedure(e){var t=e.map(getProcedure);for(var r=1;r=0&&n>=1}}else if(t===n.pseudo){if(!e.data){t=3}else if(e.name==="has"||e.name==="contains"){t=0}else if(e.name==="matches"||e.name==="not"){t=0;for(var r=0;rt)t=a}if(e.data.length>1&&t>0)t-=1}else{t=1}}return t}},26577:(e,t,r)=>{var n=r(81515);var i=r(58933);var a=r(74291);function buildDictionary(e,t){var r={};for(var n in e){r[n]=e[n].syntax}for(var n in t){if(n in e){if(t[n].syntax){r[n]=t[n].syntax}else{delete r[n]}}else{if(t[n].syntax){r[n]=t[n].syntax}}}return r}e.exports={properties:buildDictionary(n,a.properties),types:buildDictionary(i,a.syntaxes)}},5355:e=>{function createItem(e){return{prev:null,next:null,data:e}}function allocateCursor(e,r,n){var i;if(t!==null){i=t;t=t.cursor;i.prev=r;i.next=n;i.cursor=e.cursor}else{i={prev:r,next:n,cursor:e.cursor}}e.cursor=i;return i}function releaseCursor(e){var r=e.cursor;e.cursor=r.cursor;r.prev=null;r.next=null;r.cursor=t;t=r}var t=null;var r=function(){this.cursor=null;this.head=null;this.tail=null};r.createItem=createItem;r.prototype.createItem=createItem;r.prototype.updateCursors=function(e,t,r,n){var i=this.cursor;while(i!==null){if(i.prev===e){i.prev=t}if(i.next===r){i.next=n}i=i.cursor}};r.prototype.getSize=function(){var e=0;var t=this.head;while(t){e++;t=t.next}return e};r.prototype.fromArray=function(e){var t=null;this.head=null;for(var r=0;r{var n=r(58248);var i=r(61063).isBOM;var a=10;var o=12;var s=13;function computeLinesAndColumns(e,t){var r=t.length;var l=n(e.lines,r);var c=e.startLine;var u=n(e.columns,r);var d=e.startColumn;var p=t.length>0?i(t.charCodeAt(0)):0;for(var m=p;m{var n=r(41187);var i=100;var a=60;var o=" ";function sourceFragment(e,t){function processLines(e,t){return r.slice(e,t).map(function(t,r){var n=String(e+r+1);while(n.lengthi){d=s-a+3;s=a-2}for(var p=l;p<=c;p++){if(p>=0&&p0&&r[p].length>d?"…":"")+r[p].substr(d,i-2)+(r[p].length>d+i-1?"…":"")}}return[processLines(l,n),new Array(s+u+2).join("-")+"^",processLines(n,c)].filter(Boolean).join("\n")}var s=function(e,t,r,i,a){var o=n("SyntaxError",e);o.source=t;o.offset=r;o.line=i;o.column=a;o.sourceFragment=function(e){return sourceFragment(o,isNaN(e)?0:e)};Object.defineProperty(o,"formattedMessage",{get:function(){return"Parse error: "+o.message+"\n"+sourceFragment(o,2)}});o.parseError={offset:r,line:i,column:a};return o};e.exports=s},83058:(e,t,r)=>{var n=r(21713);var i=n.TYPE;var a=n.NAME;var o=r(86716);var s=o.cmpStr;var l=i.EOF;var c=i.WhiteSpace;var u=i.Comment;var d=16777215;var p=24;var m=function(){this.offsetAndType=null;this.balance=null;this.reset()};m.prototype={reset:function(){this.eof=false;this.tokenIndex=-1;this.tokenType=0;this.tokenStart=this.firstCharOffset;this.tokenEnd=this.firstCharOffset},lookupType:function(e){e+=this.tokenIndex;if(e>p}return l},lookupOffset:function(e){e+=this.tokenIndex;if(e0){return e>p;switch(t(a,this.source,i)){case 1:break e;case 2:r++;break e;default:i=this.offsetAndType[r]&d;if(this.balance[n]===r){r=n}}}return r-this.tokenIndex},isBalanceEdge:function(e){return this.balance[this.tokenIndex]>p!==c){break}}if(t>0){this.skip(t)}},skipSC:function(){while(this.tokenType===c||this.tokenType===u){this.next()}},skip:function(e){var t=this.tokenIndex+e;if(t>p;this.tokenEnd=t&d}else{this.tokenIndex=this.tokenCount;this.next()}},next:function(){var e=this.tokenIndex+1;if(e>p;this.tokenEnd=e&d}else{this.tokenIndex=this.tokenCount;this.eof=true;this.tokenType=l;this.tokenStart=this.tokenEnd=this.source.length}},dump:function(){var e=this.firstCharOffset;return Array.prototype.slice.call(this.offsetAndType,0,this.tokenCount).map(function(t,r){var n=e;var i=t&d;e=i;return{idx:r,type:a[t>>p],chunk:this.source.substring(n,i),balance:this.balance[r]}},this)}};e.exports=m},58248:e=>{var t=16*1024;var r=typeof Uint32Array!=="undefined"?Uint32Array:Array;e.exports=function adoptBuffer(e,n){if(e===null||e.length{var n=r(5355);e.exports=function createConvertors(e){return{fromPlainObject:function(t){e(t,{enter:function(e){if(e.children&&e.children instanceof n===false){e.children=(new n).fromArray(e.children)}}});return t},toPlainObject:function(t){e(t,{leave:function(e){if(e.children&&e.children instanceof n){e.children=e.children.toArray()}}});return t}}}},59437:(e,t,r)=>{var n=r(41187);e.exports=function SyntaxError(e,t,r){var i=n("SyntaxError",e);i.input=t;i.offset=r;i.rawMessage=e;i.message=i.rawMessage+"\n"+" "+i.input+"\n"+"--"+new Array((i.offset||i.input.length)+1).join("-")+"^";return i}},95561:e=>{function noop(e){return e}function generateMultiplier(e){if(e.min===0&&e.max===0){return"*"}if(e.min===0&&e.max===1){return"?"}if(e.min===1&&e.max===0){return e.comma?"#":"+"}if(e.min===1&&e.max===1){return""}return(e.comma?"#":"")+(e.min===e.max?"{"+e.min+"}":"{"+e.min+","+(e.max!==0?e.max:"")+"}")}function generateTypeOpts(e){switch(e.type){case"Range":return" ["+(e.min===null?"-∞":e.min)+","+(e.max===null?"∞":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function generateSequence(e,t,r,n){var i=e.combinator===" "||n?e.combinator:" "+e.combinator+" ";var a=e.terms.map(function(e){return generate(e,t,r,n)}).join(i);if(e.explicit||r){a=(n||a[0]===","?"[":"[ ")+a+(n?"]":" ]")}return a}function generate(e,t,r,n){var i;switch(e.type){case"Group":i=generateSequence(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return generate(e.term,t,r,n)+t(generateMultiplier(e),e);case"Type":i="<"+e.name+(e.opts?t(generateTypeOpts(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}e.exports=function(e,t){var r=noop;var n=false;var i=false;if(typeof t==="function"){r=t}else if(t){n=Boolean(t.forceBraces);i=Boolean(t.compact);if(typeof t.decorate==="function"){r=t.decorate}}return generate(e,r,n,i)}},98333:(e,t,r)=>{e.exports={SyntaxError:r(59437),parse:r(81550),generate:r(95561),walk:r(55872)}},81550:(e,t,r)=>{var n=r(22059);var i=9;var a=10;var o=12;var s=13;var l=32;var c=33;var u=35;var d=38;var p=39;var m=40;var f=41;var h=42;var g=43;var y=44;var v=45;var b=60;var S=62;var x=63;var w=64;var C=91;var k=93;var T=123;var E=124;var A=125;var O=8734;var z=createCharMap(function(e){return/[a-zA-Z0-9\-]/.test(e)});var P={" ":1,"&&":2,"||":3,"|":4};function createCharMap(e){var t=typeof Uint32Array==="function"?new Uint32Array(128):new Array(128);for(var r=0;r<128;r++){t[r]=e(String.fromCharCode(r))?1:0}return t}function scanSpaces(e){return e.substringToPos(e.findWsEnd(e.pos))}function scanWord(e){var t=e.pos;for(;t=128||z[r]===0){break}}if(e.pos===t){e.error("Expect a keyword")}return e.substringToPos(t)}function scanNumber(e){var t=e.pos;for(;t57){break}}if(e.pos===t){e.error("Expect a number")}return e.substringToPos(t)}function scanString(e){var t=e.str.indexOf("'",e.pos+1);if(t===-1){e.pos=e.str.length;e.error("Expect an apostrophe")}return e.substringToPos(t+1)}function readMultiplierRange(e){var t=null;var r=null;e.eat(T);t=scanNumber(e);if(e.charCode()===y){e.pos++;if(e.charCode()!==A){r=scanNumber(e)}}else{r=t}e.eat(A);return{min:Number(t),max:r?Number(r):0}}function readMultiplier(e){var t=null;var r=false;switch(e.charCode()){case h:e.pos++;t={min:0,max:0};break;case g:e.pos++;t={min:1,max:0};break;case x:e.pos++;t={min:0,max:1};break;case u:e.pos++;r=true;if(e.charCode()===T){t=readMultiplierRange(e)}else{t={min:1,max:0}}break;case T:t=readMultiplierRange(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function maybeMultiplied(e,t){var r=readMultiplier(e);if(r!==null){r.term=t;return r}return t}function maybeToken(e){var t=e.peek();if(t===""){return null}return{type:"Token",value:t}}function readProperty(e){var t;e.eat(b);e.eat(p);t=scanWord(e);e.eat(p);e.eat(S);return maybeMultiplied(e,{type:"Property",name:t})}function readTypeRange(e){var t=null;var r=null;var n=1;e.eat(C);if(e.charCode()===v){e.peek();n=-1}if(n==-1&&e.charCode()===O){e.peek()}else{t=n*Number(scanNumber(e))}scanSpaces(e);e.eat(y);scanSpaces(e);if(e.charCode()===O){e.peek()}else{n=1;if(e.charCode()===v){e.peek();n=-1}r=n*Number(scanNumber(e))}e.eat(k);if(t===null&&r===null){return null}return{type:"Range",min:t,max:r}}function readType(e){var t;var r=null;e.eat(b);t=scanWord(e);if(e.charCode()===m&&e.nextCharCode()===f){e.pos+=2;t+="()"}if(e.charCodeAt(e.findWsEnd(e.pos))===C){scanSpaces(e);r=readTypeRange(e)}e.eat(S);return maybeMultiplied(e,{type:"Type",name:t,opts:r})}function readKeywordOrFunction(e){var t;t=scanWord(e);if(e.charCode()===m){e.pos++;return{type:"Function",name:t}}return maybeMultiplied(e,{type:"Keyword",name:t})}function regroupTerms(e,t){function createGroup(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:false,explicit:false}}t=Object.keys(t).sort(function(e,t){return P[e]-P[t]});while(t.length>0){var r=t.shift();for(var n=0,i=0;n1){e.splice(i,n-i,createGroup(e.slice(i,n),r));n=i+1}i=-1}}}if(i!==-1&&t.length){e.splice(i,n-i,createGroup(e.slice(i,n),r))}}return r}function readImplicitGroup(e){var t=[];var r={};var n;var i=null;var a=e.pos;while(n=peek(e)){if(n.type!=="Spaces"){if(n.type==="Combinator"){if(i===null||i.type==="Combinator"){e.pos=a;e.error("Unexpected combinator")}r[n.value]=true}else if(i!==null&&i.type!=="Combinator"){r[" "]=true;t.push({type:"Combinator",value:" "})}t.push(n);i=n;a=e.pos}}if(i!==null&&i.type==="Combinator"){e.pos-=a;e.error("Unexpected combinator")}return{type:"Group",terms:t,combinator:regroupTerms(t,r)||" ",disallowEmpty:false,explicit:false}}function readGroup(e){var t;e.eat(C);t=readImplicitGroup(e);e.eat(k);t.explicit=true;if(e.charCode()===c){e.pos++;t.disallowEmpty=true}return t}function peek(e){var t=e.charCode();if(t<128&&z[t]===1){return readKeywordOrFunction(e)}switch(t){case k:break;case C:return maybeMultiplied(e,readGroup(e));case b:return e.nextCharCode()===p?readProperty(e):readType(e);case E:return{type:"Combinator",value:e.substringToPos(e.nextCharCode()===E?e.pos+2:e.pos+1)};case d:e.pos++;e.eat(d);return{type:"Combinator",value:"&&"};case y:e.pos++;return{type:"Comma"};case p:return maybeMultiplied(e,{type:"String",value:scanString(e)});case l:case i:case a:case s:case o:return{type:"Spaces",value:scanSpaces(e)};case w:t=e.nextCharCode();if(t<128&&z[t]===1){e.pos++;return{type:"AtKeyword",name:scanWord(e)}}return maybeToken(e);case h:case g:case x:case u:case c:break;case T:t=e.nextCharCode();if(t<48||t>57){return maybeToken(e)}break;default:return maybeToken(e)}}function parse(e){var t=new n(e);var r=readImplicitGroup(t);if(t.pos!==e.length){t.error("Unexpected input")}if(r.terms.length===1&&r.terms[0].type==="Group"){r=r.terms[0]}return r}parse("[a&&#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!");e.exports=parse},22059:(e,t,r)=>{var n=r(59437);var i=9;var a=10;var o=12;var s=13;var l=32;var c=function(e){this.str=e;this.pos=0};c.prototype={charCodeAt:function(e){return e{var t=function(){};function ensureFunction(e){return typeof e==="function"?e:t}e.exports=function(e,r,n){function walk(e){i.call(n,e);switch(e.type){case"Group":e.terms.forEach(walk);break;case"Multiplier":walk(e.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+e.type)}a.call(n,e)}var i=t;var a=t;if(typeof r==="function"){i=r}else if(r){i=ensureFunction(r.enter);a=ensureFunction(r.leave)}if(i===t&&a===t){throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function")}walk(e,n)}},31010:(e,t,r)=>{var n=r(95137);var i=Object.prototype.hasOwnProperty;function processChildren(e,t){var r=e.children;var n=null;if(typeof t!=="function"){r.forEach(this.node,this)}else{r.forEach(function(e){if(n!==null){t.call(this,n)}this.node(e);n=e},this)}}e.exports=function createGenerator(e){function processNode(e){if(i.call(t,e.type)){t[e.type].call(this,e)}else{throw new Error("Unknown node type: "+e.type)}}var t={};if(e.node){for(var r in e.node){t[r]=e.node[r].generate}}return function(e,t){var r="";var i={children:processChildren,node:processNode,chunk:function(e){r+=e},result:function(){return r}};if(t){if(typeof t.decorator==="function"){i=t.decorator(i)}if(t.sourceMap){i=n(i)}}i.node(e);return i.result()}}},95137:(e,t,r)=>{var n=r(28265).h;var i={Atrule:true,Selector:true,Declaration:true};e.exports=function generateSourceMap(e){var t=new n;var r=1;var a=0;var o={line:1,column:0};var s={line:0,column:0};var l=false;var c={line:1,column:0};var u={generated:c};var d=e.node;e.node=function(e){if(e.loc&&e.loc.start&&i.hasOwnProperty(e.type)){var n=e.loc.start.line;var p=e.loc.start.column-1;if(s.line!==n||s.column!==p){s.line=n;s.column=p;o.line=r;o.column=a;if(l){l=false;if(o.line!==c.line||o.column!==c.column){t.addMapping(u)}}l=true;t.addMapping({source:e.loc.source,original:s,generated:o})}}d.call(this,e);if(l&&i.hasOwnProperty(e.type)){c.line=r;c.column=a}};var p=e.chunk;e.chunk=function(e){for(var t=0;t{e.exports=r(30826)},42164:(e,t,r)=>{var n=r(16044).SyntaxReferenceError;var i=r(16044).MatchError;var a=r(87453);var o=r(35548);var s=r(81550);var l=r(95561);var c=r(55872);var u=r(18087);var d=r(86106).buildMatchGraph;var p=r(67684).matchAsTree;var m=r(29833);var f=r(48982);var h=r(25791).getStructureFromConfig;var g=d("inherit | initial | unset");var y=d("inherit | initial | unset | <-ms-legacy-expression>");function dumpMapSyntax(e,t,r){var n={};for(var i in e){if(e[i].syntax){n[i]=r?e[i].syntax:l(e[i].syntax,{compact:t})}}return n}function valueHasVar(e){for(var t=0;t{var n=r(41187);var i=r(95561);function fromMatchResult(e){var t=e.tokens;var r=e.longestMatch;var n=r1}}function getLocation(e,t){var r=e&&e.loc&&e.loc[t];if(r){return{offset:r.offset,line:r.line,column:r.column}}return null}var a=function(e,t){var r=n("SyntaxReferenceError",e+(t?" `"+t+"`":""));r.reference=t;return r};var o=function(e,t,r,a){var o=n("SyntaxMatchError",e);var s=fromMatchResult(a);var l=s.mismatchOffset||0;var c=s.node||r;var u=getLocation(c,"end");var d=s.last?u:getLocation(c,"start");var p=s.css;o.rawMessage=e;o.syntax=t?i(t):"";o.css=p;o.mismatchOffset=l;o.loc={source:c&&c.loc&&c.loc.source||"",start:d,end:u};o.line=d?d.line:undefined;o.column=d?d.column:undefined;o.offset=d?d.offset:undefined;o.message=e+"\n"+" syntax: "+o.syntax+"\n"+" value: "+(o.css||"")+"\n"+" --------"+new Array(o.mismatchOffset+1).join("-")+"^";return o};e.exports={SyntaxReferenceError:a,MatchError:o}},23479:(e,t,r)=>{var n=r(61063).isDigit;var i=r(61063).cmpChar;var a=r(61063).TYPE;var o=a.Delim;var s=a.WhiteSpace;var l=a.Comment;var c=a.Ident;var u=a.Number;var d=a.Dimension;var p=43;var m=45;var f=110;var h=true;var g=false;function isDelim(e,t){return e!==null&&e.type===o&&e.value.charCodeAt(0)===t}function skipSC(e,t,r){while(e!==null&&(e.type===s||e.type===l)){e=r(++t)}return t}function checkInteger(e,t,r,i){if(!e){return 0}var a=e.value.charCodeAt(t);if(a===p||a===m){if(r){return 0}t++}for(;t{var n=r(61063).isHexDigit;var i=r(61063).cmpChar;var a=r(61063).TYPE;var o=a.Ident;var s=a.Delim;var l=a.Number;var c=a.Dimension;var u=43;var d=45;var p=63;var m=117;function isDelim(e,t){return e!==null&&e.type===s&&e.value.charCodeAt(0)===t}function startsWith(e,t){return e.value.charCodeAt(0)===t}function hexSequence(e,t,r){for(var i=t,a=0;i0){return 6}return 0}if(!n(o)){return 0}if(++a>6){return 0}}return a}function withQuestionMarkSequence(e,t,r){if(!e){return 0}while(isDelim(r(t),p)){if(++e>6){return 0}t++}return t}e.exports=function urange(e,t){var r=0;if(e===null||e.type!==o||!i(e.value,0,m)){return 0}e=t(++r);if(e===null){return 0}if(isDelim(e,u)){e=t(++r);if(e===null){return 0}if(e.type===o){return withQuestionMarkSequence(hexSequence(e,0,true),++r,t)}if(isDelim(e,p)){return withQuestionMarkSequence(1,++r,t)}return 0}if(e.type===l){if(!startsWith(e,u)){return 0}var n=hexSequence(e,1,true);if(n===0){return 0}e=t(++r);if(e===null){return r}if(e.type===c||e.type===l){if(!startsWith(e,d)||!hexSequence(e,1,false)){return 0}return r+1}return withQuestionMarkSequence(n,r,t)}if(e.type===c){if(!startsWith(e,u)){return 0}return withQuestionMarkSequence(hexSequence(e,1,true),++r,t)}return 0}},35548:(e,t,r)=>{var n=r(61063);var i=n.isIdentifierStart;var a=n.isHexDigit;var o=n.isDigit;var s=n.cmpStr;var l=n.consumeNumber;var c=n.TYPE;var u=r(23479);var d=r(77088);var p=["unset","initial","inherit"];var m=["calc(","-moz-calc(","-webkit-calc("];var f={px:true,mm:true,cm:true,in:true,pt:true,pc:true,q:true,em:true,ex:true,ch:true,rem:true,vh:true,vw:true,vmin:true,vmax:true,vm:true};var h={deg:true,grad:true,rad:true,turn:true};var g={s:true,ms:true};var y={hz:true,khz:true};var v={dpi:true,dpcm:true,dppx:true,x:true};var b={fr:true};var S={db:true};var x={st:true};function charCode(e,t){return te.max){return true}}return false}function consumeFunction(e,t){var r=e.index;var n=0;do{n++;if(e.balance<=r){break}}while(e=t(n));return n}function calc(e){return function(t,r,n){if(t===null){return 0}if(t.type===c.Function&&eqStrAny(t.value,m)){return consumeFunction(t,r)}return e(t,r,n)}}function tokenType(e){return function(t){if(t===null||t.type!==e){return 0}return 1}}function func(e){e=e+"(";return function(t,r){if(t!==null&&eqStr(t.value,e)){return consumeFunction(t,r)}return 0}}function customIdent(e){if(e===null||e.type!==c.Ident){return 0}var t=e.value.toLowerCase();if(eqStrAny(t,p)){return 0}if(eqStr(t,"default")){return 0}return 1}function customPropertyName(e){if(e===null||e.type!==c.Ident){return 0}if(charCode(e.value,0)!==45||charCode(e.value,1)!==45){return 0}return 1}function hexColor(e){if(e===null||e.type!==c.Hash){return 0}var t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9){return 0}for(var r=1;re.index||e.balancee.index||e.balance{var n=r(81550);var i={type:"Match"};var a={type:"Mismatch"};var o={type:"DisallowEmpty"};var s=40;var l=41;function createCondition(e,t,r){if(t===i&&r===a){return e}if(e===i&&t===i&&r===i){return e}if(e.type==="If"&&e.else===a&&t===i){t=e.then;e=e.match}return{type:"If",match:e,then:t,else:r}}function isFunctionType(e){return e.length>2&&e.charCodeAt(e.length-2)===s&&e.charCodeAt(e.length-1)===l}function isEnumCapatible(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&isFunctionType(e.name)}function buildGroupMatchGraph(e,t,r){switch(e){case" ":var n=i;for(var o=t.length-1;o>=0;o--){var s=t[o];n=createCondition(s,n,a)};return n;case"|":var n=a;var l=null;for(var o=t.length-1;o>=0;o--){var s=t[o];if(isEnumCapatible(s)){if(l===null&&o>0&&isEnumCapatible(t[o-1])){l=Object.create(null);n=createCondition({type:"Enum",map:l},i,n)}if(l!==null){var c=(isFunctionType(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(c in l===false){l[c]=s;continue}}}l=null;n=createCondition(s,i,n)};return n;case"&&":if(t.length>5){return{type:"MatchOnce",terms:t,all:true}}var n=a;for(var o=t.length-1;o>=0;o--){var s=t[o];var u;if(t.length>1){u=buildGroupMatchGraph(e,t.filter(function(e){return e!==s}),false)}else{u=i}n=createCondition(s,u,n)};return n;case"||":if(t.length>5){return{type:"MatchOnce",terms:t,all:false}}var n=r?i:a;for(var o=t.length-1;o>=0;o--){var s=t[o];var u;if(t.length>1){u=buildGroupMatchGraph(e,t.filter(function(e){return e!==s}),true)}else{u=i}n=createCondition(s,u,n)};return n}}function buildMultiplierMatchGraph(e){var t=i;var r=buildMatchGraph(e.term);if(e.max===0){r=createCondition(r,o,a);t=createCondition(r,null,a);t.then=createCondition(i,i,t);if(e.comma){t.then.else=createCondition({type:"Comma",syntax:e},t,a)}}else{for(var n=e.min||1;n<=e.max;n++){if(e.comma&&t!==i){t=createCondition({type:"Comma",syntax:e},t,a)}t=createCondition(r,createCondition(i,i,t),a)}}if(e.min===0){t=createCondition(i,i,t)}else{for(var n=0;n{var n=Object.prototype.hasOwnProperty;var i=r(86106);var a=i.MATCH;var o=i.MISMATCH;var s=i.DISALLOW_EMPTY;var l=r(21713).TYPE;var c=0;var u=1;var d=2;var p=3;var m="Match";var f="Mismatch";var h="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)";var g=15e3;var y=0;function reverseList(e){var t=null;var r=null;var n=e;while(n!==null){r=n.prev;n.prev=t;t=n;n=r}return t}function areStringsEqualCaseInsensitive(e,t){if(e.length!==t.length){return false}for(var r=0;r=65&&n<=90){n=n|32}if(n!==i){return false}}return true}function isCommaContextStart(e){if(e===null){return true}return e.type===l.Comma||e.type===l.Function||e.type===l.LeftParenthesis||e.type===l.LeftSquareBracket||e.type===l.LeftCurlyBracket||e.type===l.Delim}function isCommaContextEnd(e){if(e===null){return true}return e.type===l.RightParenthesis||e.type===l.RightSquareBracket||e.type===l.RightCurlyBracket||e.type===l.Delim}function internalMatch(e,t,r){function moveToNextToken(){do{k++;C=kT){T=k}}function openSyntax(){i={syntax:t.syntax,opts:t.syntax.opts||i!==null&&i.opts||null,prev:i};E={type:d,syntax:t.syntax,token:E.token,prev:E}}function closeSyntax(){if(E.type===d){E=E.prev}else{E={type:p,syntax:i.syntax,token:E.token,prev:E}}i=i.prev}var i=null;var v=null;var b=null;var S=null;var x=0;var w=null;var C=null;var k=-1;var T=0;var E={type:c,syntax:null,token:null,prev:null};moveToNextToken();while(w===null&&++xb.tokenIndex){b=S;S=false}}else if(b===null){w=f;break}t=b.nextState;v=b.thenStack;i=b.syntaxStack;E=b.matchStack;k=b.tokenIndex;C=kk){while(k<_){addTokenToMatch()}t=a}else{t=o}break;case"Type":case"Property":var W=t.type==="Type"?"types":"properties";var q=n.call(r,W)?r[W][t.name]:null;if(!q||!q.match){throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"))}if(S!==false&&C!==null&&t.type==="Type"){var B=t.name==="custom-ident"&&C.type===l.Ident||t.name==="length"&&C.value==="0";if(B){if(S===null){S=stateSnapshotFromSyntax(t,b)}t=o;break}}openSyntax();t=q.match;break;case"Keyword":var z=t.name;if(C!==null){var R=C.value;if(R.indexOf("\\")!==-1){R=R.replace(/\\[09].*$/,"")}if(areStringsEqualCaseInsensitive(R,z)){addTokenToMatch();t=a;break}}t=o;break;case"AtKeyword":case"Function":if(C!==null&&areStringsEqualCaseInsensitive(C.value,t.name)){addTokenToMatch();t=a;break}t=o;break;case"Token":if(C!==null&&C.value===t.value){addTokenToMatch();t=a;break}t=o;break;case"Comma":if(C!==null&&C.type===l.Comma){if(isCommaContextStart(E.token)){t=o}else{addTokenToMatch();t=isCommaContextEnd(C)?o:a}}else{t=isCommaContextStart(E.token)||isCommaContextEnd(C)?a:o}break;case"String":var L="";for(var _=k;_{var n=r(61063);var i=r(83058);var a=new i;var o={decorator:function(e){var t=null;var r={len:0,node:null};var n=[r];var i="";return{children:e.children,node:function(r){var n=t;t=r;e.node.call(this,r);t=n},chunk:function(e){i+=e;if(r.node!==t){n.push({len:e.length,node:t})}else{r.len+=e.length}},result:function(){return prepareTokens(i,n)}}}};function prepareTokens(e,t){var r=[];var i=0;var o=0;var s=t?t[o].node:null;n(e,a);while(!a.eof){if(t){while(o{var n=r(5355);function getFirstMatchNode(e){if("node"in e){return e.node}return getFirstMatchNode(e.match[0])}function getLastMatchNode(e){if("node"in e){return e.node}return getLastMatchNode(e.match[e.match.length-1])}function matchFragments(e,t,r,i,a){function findFragments(r){if(r.syntax!==null&&r.syntax.type===i&&r.syntax.name===a){var s=getFirstMatchNode(r);var l=getLastMatchNode(r);e.syntax.walk(t,function(e,t,r){if(e===s){var i=new n;do{i.appendData(t.data);if(t.data===l){break}t=t.next}while(t!==null);o.push({parent:r,nodes:i})}})}if(Array.isArray(r.match)){r.match.forEach(findFragments)}}var o=[];if(r.matched!==null){findFragments(r.matched)}return o}e.exports={matchFragments:matchFragments}},25791:(e,t,r)=>{var n=r(5355);var i=Object.prototype.hasOwnProperty;function isValidNumber(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function isValidLocation(e){return Boolean(e)&&isValidNumber(e.offset)&&isValidNumber(e.line)&&isValidNumber(e.column)}function createNodeStructureChecker(e,t){return function checkNode(r,a){if(!r||r.constructor!==Object){return a(r,"Type of node should be an Object")}for(var o in r){var s=true;if(i.call(r,o)===false){continue}if(o==="type"){if(r.type!==e){a(r,"Wrong node type `"+r.type+"`, expected `"+e+"`")}}else if(o==="loc"){if(r.loc===null){continue}else if(r.loc&&r.loc.constructor===Object){if(typeof r.loc.source!=="string"){o+=".source"}else if(!isValidLocation(r.loc.start)){o+=".start"}else if(!isValidLocation(r.loc.end)){o+=".end"}else{continue}}s=false}else if(t.hasOwnProperty(o)){for(var l=0,s=false;!s&&l")}else if(Array.isArray(u)){s.push("List")}else{throw new Error("Wrong value `"+u+"` in `"+e+"."+o+"` structure definition")}}a[o]=s.join(" | ")}return{docs:a,check:createNodeStructureChecker(e,n)}}e.exports={getStructureFromConfig:function(e){var t={};if(e.node){for(var r in e.node){if(i.call(e.node,r)){var n=e.node[r];if(n.structure){t[r]=processStructure(r,n)}else{throw new Error("Missed `structure` field in `"+r+"` node type definition")}}}}return t}}},29833:e=>{function getTrace(e){function shouldPutToTrace(e){if(e===null){return false}return e.type==="Type"||e.type==="Property"||e.type==="Keyword"}function hasMatch(r){if(Array.isArray(r.match)){for(var n=0;n{var n=r(70404);var i=r(51708);var a=r(83058);var o=r(5355);var s=r(61063);var l=r(21713);var c=r(86716).findWhiteSpaceStart;var u=r(27190);var d=function(){};var p=l.TYPE;var m=l.NAME;var f=p.WhiteSpace;var h=p.Ident;var g=p.Function;var y=p.Url;var v=p.Hash;var b=p.Percentage;var S=p.Number;var x=35;var w=0;function createParseContext(e){return function(){return this[e]()}}function processConfig(e){var t={context:{},scope:{},atrule:{},pseudo:{}};if(e.parseContext){for(var r in e.parseContext){switch(typeof e.parseContext[r]){case"function":t.context[r]=e.parseContext[r];break;case"string":t.context[r]=createParseContext(e.parseContext[r]);break}}}if(e.scope){for(var r in e.scope){t.scope[r]=e.scope[r]}}if(e.atrule){for(var r in e.atrule){var n=e.atrule[r];if(n.parse){t.atrule[r]=n.parse}}}if(e.pseudo){for(var r in e.pseudo){var i=e.pseudo[r];if(i.parse){t.pseudo[r]=i.parse}}}if(e.node){for(var r in e.node){t[r]=e.node[r].parse}}return t}e.exports=function createParser(e){var t={scanner:new a,locationMap:new n,filename:"",needPositions:false,onParseError:d,onParseErrorThrow:false,parseAtrulePrelude:true,parseRulePrelude:true,parseValue:true,parseCustomProperty:false,readSequence:u,createList:function(){return new o},createSingleNodeList:function(e){return(new o).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,t){var r=this.scanner.tokenIndex;try{return e.call(this)}catch(e){if(this.onParseErrorThrow){throw e}var n=t.call(this,r);this.onParseErrorThrow=true;this.onParseError(e,n);this.onParseErrorThrow=false;return n}},lookupNonWSType:function(e){do{var t=this.scanner.lookupType(e++);if(t!==f){return t}}while(t!==w);return w},eat:function(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart;var r=m[e]+" is expected";switch(e){case h:if(this.scanner.tokenType===g||this.scanner.tokenType===y){t=this.scanner.tokenEnd-1;r="Identifier is expected but function found"}else{r="Identifier is expected"}break;case v:if(this.scanner.isDelim(x)){this.scanner.next();t++;r="Name is expected"}break;case b:if(this.scanner.tokenType===S){t=this.scanner.tokenEnd;r="Percent sign is expected"}break;default:if(this.scanner.source.charCodeAt(this.scanner.tokenStart)===e){t=t+1}}this.error(r,t)}this.scanner.next()},consume:function(e){var t=this.scanner.getTokenValue();this.eat(e);return t},consumeFunctionName:function(){var e=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);this.eat(g);return e},getLocation:function(e,t){if(this.needPositions){return this.locationMap.getLocationRange(e,t,this.filename)}return null},getLocationFromList:function(e){if(this.needPositions){var t=this.getFirstListNode(e);var r=this.getLastListNode(e);return this.locationMap.getLocationRange(t!==null?t.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,r!==null?r.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(e,t){var r=typeof t!=="undefined"&&t";t.needPositions=Boolean(r.positions);t.onParseError=typeof r.onParseError==="function"?r.onParseError:d;t.onParseErrorThrow=false;t.parseAtrulePrelude="parseAtrulePrelude"in r?Boolean(r.parseAtrulePrelude):true;t.parseRulePrelude="parseRulePrelude"in r?Boolean(r.parseRulePrelude):true;t.parseValue="parseValue"in r?Boolean(r.parseValue):true;t.parseCustomProperty="parseCustomProperty"in r?Boolean(r.parseCustomProperty):false;if(!t.context.hasOwnProperty(n)){throw new Error("Unknown context `"+n+"`")}i=t.context[n].call(t,r);if(!t.scanner.eof){t.error()}return i}}},27190:(e,t,r)=>{var n=r(61063).TYPE;var i=n.WhiteSpace;var a=n.Comment;e.exports=function readSequence(e){var t=this.createList();var r=null;var n={recognizer:e,space:null,ignoreWS:false,ignoreWSAfter:false};this.scanner.skipSC();while(!this.scanner.eof){switch(this.scanner.tokenType){case a:this.scanner.next();continue;case i:if(n.ignoreWS){this.scanner.next()}else{n.space=this.WhiteSpace()}continue}r=e.getNode.call(this,n);if(r===undefined){break}if(n.space!==null){t.push(n.space);n.space=null}t.push(r);if(n.ignoreWSAfter){n.ignoreWSAfter=false;n.ignoreWS=true}else{n.ignoreWS=false}}return t}},91849:e=>{e.exports={parse:{prelude:null,block:function(){return this.Block(true)}}}},29864:(e,t,r)=>{var n=r(61063).TYPE;var i=n.String;var a=n.Ident;var o=n.Url;var s=n.Function;var l=n.LeftParenthesis;e.exports={parse:{prelude:function(){var e=this.createList();this.scanner.skipSC();switch(this.scanner.tokenType){case i:e.push(this.String());break;case o:case s:e.push(this.Url());break;default:this.error("String or url() is expected")}if(this.lookupNonWSType(0)===a||this.lookupNonWSType(0)===l){e.push(this.WhiteSpace());e.push(this.MediaQueryList())}return e},block:null}}},20264:(e,t,r)=>{e.exports={"font-face":r(91849),import:r(29864),media:r(16258),page:r(46661),supports:r(19901)}},16258:e=>{e.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(false)}}}},46661:e=>{e.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(true)}}}},19901:(e,t,r)=>{var n=r(61063).TYPE;var i=n.WhiteSpace;var a=n.Comment;var o=n.Ident;var s=n.Function;var l=n.Colon;var c=n.LeftParenthesis;function consumeRaw(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,false))}function parentheses(){this.scanner.skipSC();if(this.scanner.tokenType===o&&this.lookupNonWSType(1)===l){return this.createSingleNodeList(this.Declaration())}return readSequence.call(this)}function readSequence(){var e=this.createList();var t=null;var r;this.scanner.skipSC();e:while(!this.scanner.eof){switch(this.scanner.tokenType){case i:t=this.WhiteSpace();continue;case a:this.scanner.next();continue;case s:r=this.Function(consumeRaw,this.scope.AtrulePrelude);break;case o:r=this.Identifier();break;case c:r=this.Parentheses(parentheses,this.scope.AtrulePrelude);break;default:break e}if(t!==null){e.push(t);t=null}e.push(r)}return e}e.exports={parse:{prelude:function(){var e=readSequence.call(this);if(this.getFirstListNode(e)===null){this.error("Condition is expected")}return e},block:function(){return this.Block(false)}}}},87526:(e,t,r)=>{var n=r(26577);e.exports={generic:true,types:n.types,properties:n.properties,node:r(85369)}},88845:e=>{var t=Object.prototype.hasOwnProperty;var r={generic:true,types:{},properties:{},parseContext:{},scope:{},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function isObject(e){return e&&e.constructor===Object}function copy(e){if(isObject(e)){var r={};for(var n in e){if(t.call(e,n)){r[n]=e[n]}}return r}else{return e}}function extend(e,r){for(var n in r){if(t.call(r,n)){if(isObject(e[n])){extend(e[n],copy(r[n]))}else{e[n]=copy(r[n])}}}}function mix(e,r,n){for(var i in n){if(t.call(n,i)===false){continue}if(n[i]===true){if(i in r){if(t.call(r,i)){e[i]=copy(r[i])}}}else if(n[i]){if(isObject(n[i])){var a={};extend(a,e[i]);extend(a,r[i]);e[i]=a}else if(Array.isArray(n[i])){var a={};var o=n[i].reduce(function(e,t){e[t]=true;return e},{});for(var s in e[i]){if(t.call(e[i],s)){a[s]={};if(e[i]&&e[i][s]){mix(a[s],e[i][s],o)}}}for(var s in r[i]){if(t.call(r[i],s)){if(!a[s]){a[s]={}}if(r[i]&&r[i][s]){mix(a[s],r[i][s],o)}}}e[i]=a}}}return e}e.exports=function(e,t){return mix(e,t,r)}},46808:(e,t,r)=>{e.exports={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(true)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:r(38141),atrule:r(20264),pseudo:r(69302),node:r(85369)}},50997:(e,t,r)=>{e.exports={node:r(85369)}},66330:(e,t,r)=>{var n=r(5355);var i=r(51708);var a=r(83058);var o=r(42164);var s=r(98333);var l=r(61063);var c=r(40283);var u=r(31010);var d=r(57208);var p=r(87760);var m=r(55933);var f=r(87453);var h=r(88845);function assign(e,t){for(var r in t){e[r]=t[r]}return e}function createSyntax(e){var t=c(e);var r=p(e);var g=u(e);var y=d(r);var v={List:n,SyntaxError:i,TokenStream:a,Lexer:o,vendorPrefix:f.vendorPrefix,keyword:f.keyword,property:f.property,isCustomProperty:f.isCustomProperty,definitionSyntax:s,lexer:null,createLexer:function(e){return new o(e,v,v.lexer.structure)},tokenize:l,parse:t,walk:r,generate:g,find:r.find,findLast:r.findLast,findAll:r.findAll,clone:m,fromPlainObject:y.fromPlainObject,toPlainObject:y.toPlainObject,createSyntax:function(e){return createSyntax(h({},e))},fork:function(t){var r=h({},e);return createSyntax(typeof t==="function"?t(r,assign):h(r,t))}};v.lexer=new o({generic:true,types:e.types,properties:e.properties,node:e.node},v);return v}t.create=function(e){return createSyntax(h({},e))}},59537:e=>{e.exports=function(){this.scanner.skipSC();var e=this.createSingleNodeList(this.IdSelector());this.scanner.skipSC();return e}},21264:e=>{e.exports=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,false))}},88036:(e,t,r)=>{var n=r(61063).TYPE;var i=r(18204).mode;var a=n.Comma;e.exports=function(){var e=this.createList();this.scanner.skipSC();e.push(this.Identifier());this.scanner.skipSC();if(this.scanner.tokenType===a){e.push(this.Operator());e.push(this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,i.exclamationMarkOrSemicolon,false))}return e}},30826:(e,t,r)=>{function merge(){var e={};for(var t=0;t{var n=r(61063).cmpChar;var i=r(61063).isDigit;var a=r(61063).TYPE;var o=a.WhiteSpace;var s=a.Comment;var l=a.Ident;var c=a.Number;var u=a.Dimension;var d=43;var p=45;var m=110;var f=true;var h=false;function checkInteger(e,t){var r=this.scanner.tokenStart+e;var n=this.scanner.source.charCodeAt(r);if(n===d||n===p){if(t){this.error("Number sign is not allowed")}r++}for(;r0){this.scanner.skip(e)}if(t===0){r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r!==d&&r!==p){this.error("Number sign is expected")}}checkTokenIsInteger.call(this,t!==0);return t===p?"-"+this.consume(c):this.consume(c)}e.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var e=this.scanner.tokenStart;var t=null;var r=null;if(this.scanner.tokenType===c){checkTokenIsInteger.call(this,h);r=this.consume(c)}else if(this.scanner.tokenType===l&&n(this.scanner.source,this.scanner.tokenStart,p)){t="-1";expectCharCode.call(this,1,m);switch(this.scanner.getTokenLength()){case 2:this.scanner.next();r=consumeB.call(this);break;case 3:expectCharCode.call(this,2,p);this.scanner.next();this.scanner.skipSC();checkTokenIsInteger.call(this,f);r="-"+this.consume(c);break;default:expectCharCode.call(this,2,p);checkInteger.call(this,3,f);this.scanner.next();r=this.scanner.substrToCursor(e+2)}}else if(this.scanner.tokenType===l||this.scanner.isDelim(d)&&this.scanner.lookupType(1)===l){var a=0;t="1";if(this.scanner.isDelim(d)){a=1;this.scanner.next()}expectCharCode.call(this,0,m);switch(this.scanner.getTokenLength()){case 1:this.scanner.next();r=consumeB.call(this);break;case 2:expectCharCode.call(this,1,p);this.scanner.next();this.scanner.skipSC();checkTokenIsInteger.call(this,f);r="-"+this.consume(c);break;default:expectCharCode.call(this,1,p);checkInteger.call(this,2,f);this.scanner.next();r=this.scanner.substrToCursor(e+a+1)}}else if(this.scanner.tokenType===u){var o=this.scanner.source.charCodeAt(this.scanner.tokenStart);var a=o===d||o===p;for(var s=this.scanner.tokenStart+a;s{var n=r(61063).TYPE;var i=r(18204).mode;var a=n.AtKeyword;var o=n.Semicolon;var s=n.LeftCurlyBracket;var l=n.RightCurlyBracket;function consumeRaw(e){return this.Raw(e,i.leftCurlyBracketOrSemicolon,true)}function isDeclarationBlockAtrule(){for(var e=1,t;t=this.scanner.lookupType(e);e++){if(t===l){return true}if(t===s||t===a){return false}}return false}e.exports={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var e=this.scanner.tokenStart;var t;var r;var n=null;var i=null;this.eat(a);t=this.scanner.substrToCursor(e+1);r=t.toLowerCase();this.scanner.skipSC();if(this.scanner.eof===false&&this.scanner.tokenType!==s&&this.scanner.tokenType!==o){if(this.parseAtrulePrelude){n=this.parseWithFallback(this.AtrulePrelude.bind(this,t),consumeRaw);if(n.type==="AtrulePrelude"&&n.children.head===null){n=null}}else{n=consumeRaw.call(this,this.scanner.tokenIndex)}this.scanner.skipSC()}switch(this.scanner.tokenType){case o:this.scanner.next();break;case s:if(this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block==="function"){i=this.atrule[r].block.call(this)}else{i=this.Block(isDeclarationBlockAtrule.call(this))}break}return{type:"Atrule",loc:this.getLocation(e,this.scanner.tokenStart),name:t,prelude:n,block:i}},generate:function(e){this.chunk("@");this.chunk(e.name);if(e.prelude!==null){this.chunk(" ");this.node(e.prelude)}if(e.block){this.node(e.block)}else{this.chunk(";")}},walkContext:"atrule"}},24272:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Semicolon;var a=n.LeftCurlyBracket;e.exports={name:"AtrulePrelude",structure:{children:[[]]},parse:function(e){var t=null;if(e!==null){e=e.toLowerCase()}this.scanner.skipSC();if(this.atrule.hasOwnProperty(e)&&typeof this.atrule[e].prelude==="function"){t=this.atrule[e].prelude.call(this)}else{t=this.readSequence(this.scope.AtrulePrelude)}this.scanner.skipSC();if(this.scanner.eof!==true&&this.scanner.tokenType!==a&&this.scanner.tokenType!==i){this.error("Semicolon or block is expected")}if(t===null){t=this.createList()}return{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e)},walkContext:"atrulePrelude"}},33434:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Ident;var a=n.String;var o=n.Colon;var s=n.LeftSquareBracket;var l=n.RightSquareBracket;var c=36;var u=42;var d=61;var p=94;var m=124;var f=126;function getAttributeName(){if(this.scanner.eof){this.error("Unexpected end of input")}var e=this.scanner.tokenStart;var t=false;var r=true;if(this.scanner.isDelim(u)){t=true;r=false;this.scanner.next()}else if(!this.scanner.isDelim(m)){this.eat(i)}if(this.scanner.isDelim(m)){if(this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==d){this.scanner.next();this.eat(i)}else if(t){this.error("Identifier is expected",this.scanner.tokenEnd)}}else if(t){this.error("Vertical line is expected")}if(r&&this.scanner.tokenType===o){this.scanner.next();this.eat(i)}return{type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}}function getOperator(){var e=this.scanner.tokenStart;var t=this.scanner.source.charCodeAt(e);if(t!==d&&t!==f&&t!==p&&t!==c&&t!==u&&t!==m){this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected")}this.scanner.next();if(t!==d){if(!this.scanner.isDelim(d)){this.error("Equal sign is expected")}this.scanner.next()}return this.scanner.substrToCursor(e)}e.exports={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var e=this.scanner.tokenStart;var t;var r=null;var n=null;var o=null;this.eat(s);this.scanner.skipSC();t=getAttributeName.call(this);this.scanner.skipSC();if(this.scanner.tokenType!==l){if(this.scanner.tokenType!==i){r=getOperator.call(this);this.scanner.skipSC();n=this.scanner.tokenType===a?this.String():this.Identifier();this.scanner.skipSC()}if(this.scanner.tokenType===i){o=this.scanner.getTokenValue();this.scanner.next();this.scanner.skipSC()}}this.eat(l);return{type:"AttributeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:t,matcher:r,value:n,flags:o}},generate:function(e){var t=" ";this.chunk("[");this.node(e.name);if(e.matcher!==null){this.chunk(e.matcher);if(e.value!==null){this.node(e.value);if(e.value.type==="String"){t=""}}}if(e.flags!==null){this.chunk(t);this.chunk(e.flags)}this.chunk("]")}}},5163:(e,t,r)=>{var n=r(61063).TYPE;var i=r(18204).mode;var a=n.WhiteSpace;var o=n.Comment;var s=n.Semicolon;var l=n.AtKeyword;var c=n.LeftCurlyBracket;var u=n.RightCurlyBracket;function consumeRaw(e){return this.Raw(e,null,true)}function consumeRule(){return this.parseWithFallback(this.Rule,consumeRaw)}function consumeRawDeclaration(e){return this.Raw(e,i.semicolonIncluded,true)}function consumeDeclaration(){if(this.scanner.tokenType===s){return consumeRawDeclaration.call(this,this.scanner.tokenIndex)}var e=this.parseWithFallback(this.Declaration,consumeRawDeclaration);if(this.scanner.tokenType===s){this.scanner.next()}return e}e.exports={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(e){var t=e?consumeDeclaration:consumeRule;var r=this.scanner.tokenStart;var n=this.createList();this.eat(c);e:while(!this.scanner.eof){switch(this.scanner.tokenType){case u:break e;case a:case o:this.scanner.next();break;case l:n.push(this.parseWithFallback(this.Atrule,consumeRaw));break;default:n.push(t.call(this))}}if(!this.scanner.eof){this.eat(u)}return{type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("{");this.children(e,function(e){if(e.type==="Declaration"){this.chunk(";")}});this.chunk("}")},walkContext:"block"}},96809:(e,t,r)=>{var n=r(61063).TYPE;var i=n.LeftSquareBracket;var a=n.RightSquareBracket;e.exports={name:"Brackets",structure:{children:[[]]},parse:function(e,t){var r=this.scanner.tokenStart;var n=null;this.eat(i);n=e.call(this,t);if(!this.scanner.eof){this.eat(a)}return{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("[");this.children(e);this.chunk("]")}}},4351:(e,t,r)=>{var n=r(61063).TYPE.CDC;e.exports={name:"CDC",structure:[],parse:function(){var e=this.scanner.tokenStart;this.eat(n);return{type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}}},37691:(e,t,r)=>{var n=r(61063).TYPE.CDO;e.exports={name:"CDO",structure:[],parse:function(){var e=this.scanner.tokenStart;this.eat(n);return{type:"CDO",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}}},79058:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Ident;var a=46;e.exports={name:"ClassSelector",structure:{name:String},parse:function(){if(!this.scanner.isDelim(a)){this.error("Full stop is expected")}this.scanner.next();return{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(i)}},generate:function(e){this.chunk(".");this.chunk(e.name)}}},70654:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Ident;var a=43;var o=47;var s=62;var l=126;e.exports={name:"Combinator",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(t){case s:case a:case l:this.scanner.next();break;case o:this.scanner.next();if(this.scanner.tokenType!==i||this.scanner.lookupValue(0,"deep")===false){this.error("Identifier `deep` is expected")}this.scanner.next();if(!this.scanner.isDelim(o)){this.error("Solidus is expected")}this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},24602:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Comment;var a=42;var o=47;e.exports={name:"Comment",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;var t=this.scanner.tokenEnd;this.eat(i);if(t-e+2>=2&&this.scanner.source.charCodeAt(t-2)===a&&this.scanner.source.charCodeAt(t-1)===o){t-=2}return{type:"Comment",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e+2,t)}},generate:function(e){this.chunk("/*");this.chunk(e.value);this.chunk("*/")}}},25826:(e,t,r)=>{var n=r(87453).isCustomProperty;var i=r(61063).TYPE;var a=r(18204).mode;var o=i.Ident;var s=i.Hash;var l=i.Colon;var c=i.Semicolon;var u=i.Delim;var d=33;var p=35;var m=36;var f=38;var h=42;var g=43;var y=47;function consumeValueRaw(e){return this.Raw(e,a.exclamationMarkOrSemicolon,true)}function consumeCustomPropertyRaw(e){return this.Raw(e,a.exclamationMarkOrSemicolon,false)}function consumeValue(){var e=this.scanner.tokenIndex;var t=this.Value();if(t.type!=="Raw"&&this.scanner.eof===false&&this.scanner.tokenType!==c&&this.scanner.isDelim(d)===false&&this.scanner.isBalanceEdge(e)===false){this.error()}return t}e.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var e=this.scanner.tokenStart;var t=this.scanner.tokenIndex;var r=readProperty.call(this);var i=n(r);var a=i?this.parseCustomProperty:this.parseValue;var o=i?consumeCustomPropertyRaw:consumeValueRaw;var s=false;var u;this.scanner.skipSC();this.eat(l);if(!i){this.scanner.skipSC()}if(a){u=this.parseWithFallback(consumeValue,o)}else{u=o.call(this,this.scanner.tokenIndex)}if(this.scanner.isDelim(d)){s=getImportant.call(this);this.scanner.skipSC()}if(this.scanner.eof===false&&this.scanner.tokenType!==c&&this.scanner.isBalanceEdge(t)===false){this.error()}return{type:"Declaration",loc:this.getLocation(e,this.scanner.tokenStart),important:s,property:r,value:u}},generate:function(e){this.chunk(e.property);this.chunk(":");this.node(e.value);if(e.important){this.chunk(e.important===true?"!important":"!"+e.important)}},walkContext:"declaration"};function readProperty(){var e=this.scanner.tokenStart;var t=0;if(this.scanner.tokenType===u){switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case h:case m:case g:case p:case f:this.scanner.next();break;case y:this.scanner.next();if(this.scanner.isDelim(y)){this.scanner.next()}break}}if(t){this.scanner.skip(t)}if(this.scanner.tokenType===s){this.eat(s)}else{this.eat(o)}return this.scanner.substrToCursor(e)}function getImportant(){this.eat(u);this.scanner.skipSC();var e=this.consume(o);return e==="important"?true:e}},61695:(e,t,r)=>{var n=r(61063).TYPE;var i=r(18204).mode;var a=n.WhiteSpace;var o=n.Comment;var s=n.Semicolon;function consumeRaw(e){return this.Raw(e,i.semicolonIncluded,true)}e.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){var e=this.createList();e:while(!this.scanner.eof){switch(this.scanner.tokenType){case a:case o:case s:this.scanner.next();break;default:e.push(this.parseWithFallback(this.Declaration,consumeRaw))}}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,function(e){if(e.type==="Declaration"){this.chunk(";")}})}}},92058:(e,t,r)=>{var n=r(86716).consumeNumber;var i=r(61063).TYPE;var a=i.Dimension;e.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart;var t=n(this.scanner.source,e);this.eat(a);return{type:"Dimension",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t),unit:this.scanner.source.substring(t,this.scanner.tokenStart)}},generate:function(e){this.chunk(e.value);this.chunk(e.unit)}}},59346:(e,t,r)=>{var n=r(61063).TYPE;var i=n.RightParenthesis;e.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(e,t){var r=this.scanner.tokenStart;var n=this.consumeFunctionName();var a=n.toLowerCase();var o;o=t.hasOwnProperty(a)?t[a].call(this,t):e.call(this,t);if(!this.scanner.eof){this.eat(i)}return{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:n,children:o}},generate:function(e){this.chunk(e.name);this.chunk("(");this.children(e);this.chunk(")")},walkContext:"function"}},44938:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Hash;e.exports={name:"HexColor",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;this.eat(i);return{type:"HexColor",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#");this.chunk(e.value)}}},43374:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Hash;e.exports={name:"IdSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;this.eat(i);return{type:"IdSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#");this.chunk(e.name)}}},70162:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Ident;e.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(i)}},generate:function(e){this.chunk(e.name)}}},15983:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Ident;var a=n.Number;var o=n.Dimension;var s=n.LeftParenthesis;var l=n.RightParenthesis;var c=n.Colon;var u=n.Delim;e.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var e=this.scanner.tokenStart;var t;var r=null;this.eat(s);this.scanner.skipSC();t=this.consume(i);this.scanner.skipSC();if(this.scanner.tokenType!==l){this.eat(c);this.scanner.skipSC();switch(this.scanner.tokenType){case a:if(this.lookupNonWSType(1)===u){r=this.Ratio()}else{r=this.Number()}break;case o:r=this.Dimension();break;case i:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}this.eat(l);return{type:"MediaFeature",loc:this.getLocation(e,this.scanner.tokenStart),name:t,value:r}},generate:function(e){this.chunk("(");this.chunk(e.name);if(e.value!==null){this.chunk(":");this.node(e.value)}this.chunk(")")}}},41981:(e,t,r)=>{var n=r(61063).TYPE;var i=n.WhiteSpace;var a=n.Comment;var o=n.Ident;var s=n.LeftParenthesis;e.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var e=this.createList();var t=null;var r=null;e:while(!this.scanner.eof){switch(this.scanner.tokenType){case a:this.scanner.next();continue;case i:r=this.WhiteSpace();continue;case o:t=this.Identifier();break;case s:t=this.MediaFeature();break;default:break e}if(r!==null){e.push(r);r=null}e.push(t)}if(t===null){this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}}},94791:(e,t,r)=>{var n=r(61063).TYPE.Comma;e.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(e){var t=this.createList();this.scanner.skipSC();while(!this.scanner.eof){t.push(this.MediaQuery(e));if(this.scanner.tokenType!==n){break}this.scanner.next()}return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e,function(){this.chunk(",")})}}},51615:e=>{e.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(e){this.scanner.skipSC();var t=this.scanner.tokenStart;var r=t;var n=null;var i;if(this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")){i=this.Identifier()}else{i=this.AnPlusB()}this.scanner.skipSC();if(e&&this.scanner.lookupValue(0,"of")){this.scanner.next();n=this.SelectorList();if(this.needPositions){r=this.getLastListNode(n.children).loc.end.offset}}else{if(this.needPositions){r=i.loc.end.offset}}return{type:"Nth",loc:this.getLocation(t,r),nth:i,selector:n}},generate:function(e){this.node(e.nth);if(e.selector!==null){this.chunk(" of ");this.node(e.selector)}}}},78993:(e,t,r)=>{var n=r(61063).TYPE.Number;e.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(n)}},generate:function(e){this.chunk(e.value)}}},97374:e=>{e.exports={name:"Operator",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;this.scanner.next();return{type:"Operator",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}}},27019:(e,t,r)=>{var n=r(61063).TYPE;var i=n.LeftParenthesis;var a=n.RightParenthesis;e.exports={name:"Parentheses",structure:{children:[[]]},parse:function(e,t){var r=this.scanner.tokenStart;var n=null;this.eat(i);n=e.call(this,t);if(!this.scanner.eof){this.eat(a)}return{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("(");this.children(e);this.chunk(")")}}},61107:(e,t,r)=>{var n=r(86716).consumeNumber;var i=r(61063).TYPE;var a=i.Percentage;e.exports={name:"Percentage",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;var t=n(this.scanner.source,e);this.eat(a);return{type:"Percentage",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t)}},generate:function(e){this.chunk(e.value);this.chunk("%")}}},24419:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Ident;var a=n.Function;var o=n.Colon;var s=n.RightParenthesis;e.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e=this.scanner.tokenStart;var t=null;var r;var n;this.eat(o);if(this.scanner.tokenType===a){r=this.consumeFunctionName();n=r.toLowerCase();if(this.pseudo.hasOwnProperty(n)){this.scanner.skipSC();t=this.pseudo[n].call(this);this.scanner.skipSC()}else{t=this.createList();t.push(this.Raw(this.scanner.tokenIndex,null,false))}this.eat(s)}else{r=this.consume(i)}return{type:"PseudoClassSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:r,children:t}},generate:function(e){this.chunk(":");this.chunk(e.name);if(e.children!==null){this.chunk("(");this.children(e);this.chunk(")")}},walkContext:"function"}},59201:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Ident;var a=n.Function;var o=n.Colon;var s=n.RightParenthesis;e.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e=this.scanner.tokenStart;var t=null;var r;var n;this.eat(o);this.eat(o);if(this.scanner.tokenType===a){r=this.consumeFunctionName();n=r.toLowerCase();if(this.pseudo.hasOwnProperty(n)){this.scanner.skipSC();t=this.pseudo[n].call(this);this.scanner.skipSC()}else{t=this.createList();t.push(this.Raw(this.scanner.tokenIndex,null,false))}this.eat(s)}else{r=this.consume(i)}return{type:"PseudoElementSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:r,children:t}},generate:function(e){this.chunk("::");this.chunk(e.name);if(e.children!==null){this.chunk("(");this.children(e);this.chunk(")")}},walkContext:"function"}},62765:(e,t,r)=>{var n=r(61063).isDigit;var i=r(61063).TYPE;var a=i.Number;var o=i.Delim;var s=47;var l=46;function consumeNumber(){this.scanner.skipWS();var e=this.consume(a);for(var t=0;t{var n=r(61063);var i=n.TYPE;var a=i.WhiteSpace;var o=i.Semicolon;var s=i.LeftCurlyBracket;var l=i.Delim;var c=33;function getOffsetExcludeWS(){if(this.scanner.tokenIndex>0){if(this.scanner.lookupType(-1)===a){return this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset}}return this.scanner.tokenStart}function balanceEnd(){return 0}function leftCurlyBracket(e){return e===s?1:0}function leftCurlyBracketOrSemicolon(e){return e===s||e===o?1:0}function exclamationMarkOrSemicolon(e,t,r){if(e===l&&t.charCodeAt(r)===c){return 1}return e===o?1:0}function semicolonIncluded(e){return e===o?2:0}e.exports={name:"Raw",structure:{value:String},parse:function(e,t,r){var n=this.scanner.getTokenStart(e);var i;this.scanner.skip(this.scanner.getRawLength(e,t||balanceEnd));if(r&&this.scanner.tokenStart>n){i=getOffsetExcludeWS.call(this)}else{i=this.scanner.tokenStart}return{type:"Raw",loc:this.getLocation(n,i),value:this.scanner.source.substring(n,i)}},generate:function(e){this.chunk(e.value)},mode:{default:balanceEnd,leftCurlyBracket:leftCurlyBracket,leftCurlyBracketOrSemicolon:leftCurlyBracketOrSemicolon,exclamationMarkOrSemicolon:exclamationMarkOrSemicolon,semicolonIncluded:semicolonIncluded}}},41835:(e,t,r)=>{var n=r(61063).TYPE;var i=r(18204).mode;var a=n.LeftCurlyBracket;function consumeRaw(e){return this.Raw(e,i.leftCurlyBracket,true)}function consumePrelude(){var e=this.SelectorList();if(e.type!=="Raw"&&this.scanner.eof===false&&this.scanner.tokenType!==a){this.error()}return e}e.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var e=this.scanner.tokenIndex;var t=this.scanner.tokenStart;var r;var n;if(this.parseRulePrelude){r=this.parseWithFallback(consumePrelude,consumeRaw)}else{r=consumeRaw.call(this,e)}n=this.Block(true);return{type:"Rule",loc:this.getLocation(t,this.scanner.tokenStart),prelude:r,block:n}},generate:function(e){this.node(e.prelude);this.node(e.block)},walkContext:"rule"}},33877:e=>{e.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var e=this.readSequence(this.scope.Selector);if(this.getFirstListNode(e)===null){this.error("Selector is expected")}return{type:"Selector",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}}},64829:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Comma;e.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){var e=this.createList();while(!this.scanner.eof){e.push(this.Selector());if(this.scanner.tokenType===i){this.scanner.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,function(){this.chunk(",")})},walkContext:"selector"}},30682:(e,t,r)=>{var n=r(61063).TYPE.String;e.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(n)}},generate:function(e){this.chunk(e.value)}}},52157:(e,t,r)=>{var n=r(61063).TYPE;var i=n.WhiteSpace;var a=n.Comment;var o=n.AtKeyword;var s=n.CDO;var l=n.CDC;var c=33;function consumeRaw(e){return this.Raw(e,null,false)}e.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){var e=this.scanner.tokenStart;var t=this.createList();var r;e:while(!this.scanner.eof){switch(this.scanner.tokenType){case i:this.scanner.next();continue;case a:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==c){this.scanner.next();continue}r=this.Comment();break;case s:r=this.CDO();break;case l:r=this.CDC();break;case o:r=this.parseWithFallback(this.Atrule,consumeRaw);break;default:r=this.parseWithFallback(this.Rule,consumeRaw)}t.push(r)}return{type:"StyleSheet",loc:this.getLocation(e,this.scanner.tokenStart),children:t}},generate:function(e){this.children(e)},walkContext:"stylesheet"}},56316:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Ident;var a=42;var o=124;function eatIdentifierOrAsterisk(){if(this.scanner.tokenType!==i&&this.scanner.isDelim(a)===false){this.error("Identifier or asterisk is expected")}this.scanner.next()}e.exports={name:"TypeSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;if(this.scanner.isDelim(o)){this.scanner.next();eatIdentifierOrAsterisk.call(this)}else{eatIdentifierOrAsterisk.call(this);if(this.scanner.isDelim(o)){this.scanner.next();eatIdentifierOrAsterisk.call(this)}}return{type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},31201:(e,t,r)=>{var n=r(61063).isHexDigit;var i=r(61063).cmpChar;var a=r(61063).TYPE;var o=r(61063).NAME;var s=a.Ident;var l=a.Number;var c=a.Dimension;var u=43;var d=45;var p=63;var m=117;function eatHexSequence(e,t){for(var r=this.scanner.tokenStart+e,i=0;r6){this.error("Too many hex digits",r)}}this.scanner.next();return i}function eatQuestionMarkSequence(e){var t=0;while(this.scanner.isDelim(p)){if(++t>e){this.error("Too many question marks")}this.scanner.next()}}function startsWith(e){if(this.scanner.source.charCodeAt(this.scanner.tokenStart)!==e){this.error(o[e]+" is expected")}}function scanUnicodeRange(){var e=0;if(this.scanner.isDelim(u)){this.scanner.next();if(this.scanner.tokenType===s){e=eatHexSequence.call(this,0,true);if(e>0){eatQuestionMarkSequence.call(this,6-e)}return}if(this.scanner.isDelim(p)){this.scanner.next();eatQuestionMarkSequence.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===l){startsWith.call(this,u);e=eatHexSequence.call(this,1,true);if(this.scanner.isDelim(p)){eatQuestionMarkSequence.call(this,6-e);return}if(this.scanner.tokenType===c||this.scanner.tokenType===l){startsWith.call(this,d);eatHexSequence.call(this,1,false);return}return}if(this.scanner.tokenType===c){startsWith.call(this,u);e=eatHexSequence.call(this,1,true);if(e>0){eatQuestionMarkSequence.call(this,6-e)}return}this.error()}e.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;if(!i(this.scanner.source,e,m)){this.error("U is expected")}if(!i(this.scanner.source,e+1,u)){this.error("Plus sign is expected")}this.scanner.next();scanUnicodeRange.call(this);return{type:"UnicodeRange",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}}},17724:(e,t,r)=>{var n=r(61063).isWhiteSpace;var i=r(61063).cmpStr;var a=r(61063).TYPE;var o=a.Function;var s=a.Url;var l=a.RightParenthesis;e.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var e=this.scanner.tokenStart;var t;switch(this.scanner.tokenType){case s:var r=e+4;var a=this.scanner.tokenEnd-1;while(r{e.exports={name:"Value",structure:{children:[[]]},parse:function(){var e=this.scanner.tokenStart;var t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.scanner.tokenStart),children:t}},generate:function(e){this.children(e)}}},44788:(e,t,r)=>{var n=r(61063).TYPE.WhiteSpace;var i=Object.freeze({type:"WhiteSpace",loc:null,value:" "});e.exports={name:"WhiteSpace",structure:{value:String},parse:function(){this.eat(n);return i},generate:function(e){this.chunk(e.value)}}},85369:(e,t,r)=>{e.exports={AnPlusB:r(99546),Atrule:r(1673),AtrulePrelude:r(24272),AttributeSelector:r(33434),Block:r(5163),Brackets:r(96809),CDC:r(4351),CDO:r(37691),ClassSelector:r(79058),Combinator:r(70654),Comment:r(24602),Declaration:r(25826),DeclarationList:r(61695),Dimension:r(92058),Function:r(59346),HexColor:r(44938),Identifier:r(70162),IdSelector:r(43374),MediaFeature:r(15983),MediaQuery:r(41981),MediaQueryList:r(94791),Nth:r(51615),Number:r(78993),Operator:r(97374),Parentheses:r(27019),Percentage:r(61107),PseudoClassSelector:r(24419),PseudoElementSelector:r(59201),Ratio:r(62765),Raw:r(18204),Rule:r(41835),Selector:r(33877),SelectorList:r(64829),String:r(30682),StyleSheet:r(52157),TypeSelector:r(56316),UnicodeRange:r(31201),Url:r(17724),Value:r(2254),WhiteSpace:r(44788)}},23302:e=>{var t=false;e.exports={parse:function nth(){return this.createSingleNodeList(this.Nth(t))}}},28958:e=>{var t=true;e.exports={parse:function nthWithOfClause(){return this.createSingleNodeList(this.Nth(t))}}},85958:e=>{e.exports={parse:function selectorList(){return this.createSingleNodeList(this.SelectorList())}}},92628:e=>{e.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},54938:e=>{e.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},69302:(e,t,r)=>{e.exports={dir:r(92628),has:r(54938),lang:r(97189),matches:r(55373),not:r(170),"nth-child":r(99946),"nth-last-child":r(36714),"nth-last-of-type":r(59586),"nth-of-type":r(40254),slotted:r(49409)}},97189:e=>{e.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},55373:(e,t,r)=>{e.exports=r(85958)},170:(e,t,r)=>{e.exports=r(85958)},99946:(e,t,r)=>{e.exports=r(28958)},36714:(e,t,r)=>{e.exports=r(28958)},59586:(e,t,r)=>{e.exports=r(23302)},40254:(e,t,r)=>{e.exports=r(23302)},49409:e=>{e.exports={parse:function compoundSelector(){return this.createSingleNodeList(this.Selector())}}},4318:(e,t,r)=>{e.exports={getNode:r(74356)}},74356:(e,t,r)=>{var n=r(61063).cmpChar;var i=r(61063).cmpStr;var a=r(61063).TYPE;var o=a.Ident;var s=a.String;var l=a.Number;var c=a.Function;var u=a.Url;var d=a.Hash;var p=a.Dimension;var m=a.Percentage;var f=a.LeftParenthesis;var h=a.LeftSquareBracket;var g=a.Comma;var y=a.Delim;var v=35;var b=42;var S=43;var x=45;var w=47;var C=117;e.exports=function defaultRecognizer(e){switch(this.scanner.tokenType){case d:return this.HexColor();case g:e.space=null;e.ignoreWSAfter=true;return this.Operator();case f:return this.Parentheses(this.readSequence,e.recognizer);case h:return this.Brackets(this.readSequence,e.recognizer);case s:return this.String();case p:return this.Dimension();case m:return this.Percentage();case l:return this.Number();case c:return i(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case u:return this.Url();case o:if(n(this.scanner.source,this.scanner.tokenStart,C)&&n(this.scanner.source,this.scanner.tokenStart+1,S)){return this.UnicodeRange()}else{return this.Identifier()}case y:var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(t===w||t===b||t===S||t===x){return this.Operator()}if(t===v){this.error("Hex or identifier is expected",this.scanner.tokenStart+1)}break}}},38141:(e,t,r)=>{e.exports={AtrulePrelude:r(4318),Selector:r(4508),Value:r(81953)}},4508:(e,t,r)=>{var n=r(61063).TYPE;var i=n.Delim;var a=n.Ident;var o=n.Dimension;var s=n.Percentage;var l=n.Number;var c=n.Hash;var u=n.Colon;var d=n.LeftSquareBracket;var p=35;var m=42;var f=43;var h=47;var g=46;var y=62;var v=124;var b=126;function getNode(e){switch(this.scanner.tokenType){case d:return this.AttributeSelector();case c:return this.IdSelector();case u:if(this.scanner.lookupType(1)===u){return this.PseudoElementSelector()}else{return this.PseudoClassSelector()}case a:return this.TypeSelector();case l:case s:return this.Percentage();case o:if(this.scanner.source.charCodeAt(this.scanner.tokenStart)===g){this.error("Identifier is expected",this.scanner.tokenStart+1)}break;case i:var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(t){case f:case y:case b:e.space=null;e.ignoreWSAfter=true;return this.Combinator();case h:return this.Combinator();case g:return this.ClassSelector();case m:case v:return this.TypeSelector();case p:return this.IdSelector()}break}}e.exports={getNode:getNode}},81953:(e,t,r)=>{e.exports={getNode:r(74356),"-moz-element":r(59537),element:r(59537),expression:r(21264),var:r(88036)}},39367:e=>{var t=0;function isDigit(e){return e>=48&&e<=57}function isHexDigit(e){return isDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isUppercaseLetter(e){return e>=65&&e<=90}function isLowercaseLetter(e){return e>=97&&e<=122}function isLetter(e){return isUppercaseLetter(e)||isLowercaseLetter(e)}function isNonAscii(e){return e>=128}function isNameStart(e){return isLetter(e)||isNonAscii(e)||e===95}function isName(e){return isNameStart(e)||isDigit(e)||e===45}function isNonPrintable(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function isNewline(e){return e===10||e===13||e===12}function isWhiteSpace(e){return isNewline(e)||e===32||e===9}function isValidEscape(e,r){if(e!==92){return false}if(isNewline(r)||r===t){return false}return true}function isIdentifierStart(e,t,r){if(e===45){return isNameStart(t)||t===45||isValidEscape(t,r)}if(isNameStart(e)){return true}if(e===92){return isValidEscape(e,t)}return false}function isNumberStart(e,t,r){if(e===43||e===45){if(isDigit(t)){return 2}return t===46&&isDigit(r)?3:0}if(e===46){return isDigit(t)?2:0}if(isDigit(e)){return 1}return 0}function isBOM(e){if(e===65279){return 1}if(e===65534){return 1}return 0}var r=new Array(128);charCodeCategory.Eof=128;charCodeCategory.WhiteSpace=130;charCodeCategory.Digit=131;charCodeCategory.NameStart=132;charCodeCategory.NonPrintable=133;for(var n=0;n{var t={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25};var r=Object.keys(t).reduce(function(e,r){e[t[r]]=r;return e},{});e.exports={TYPE:t,NAME:r}},61063:(e,t,r)=>{var n=r(83058);var i=r(58248);var a=r(21713);var o=a.TYPE;var s=r(39367);var l=s.isNewline;var c=s.isName;var u=s.isValidEscape;var d=s.isNumberStart;var p=s.isIdentifierStart;var m=s.charCodeCategory;var f=s.isBOM;var h=r(86716);var g=h.cmpStr;var y=h.getNewlineLength;var v=h.findWhiteSpaceEnd;var b=h.consumeEscaped;var S=h.consumeName;var x=h.consumeNumber;var w=h.consumeBadUrlRemnants;var C=16777215;var k=24;function tokenize(e,t){function getCharCode(t){return t=e.length){if(E>k;s[h]=z;s[z++]=h;for(;z{var n=r(39367);var i=n.isDigit;var a=n.isHexDigit;var o=n.isUppercaseLetter;var s=n.isName;var l=n.isWhiteSpace;var c=n.isValidEscape;function getCharCode(e,t){return te.length){return false}for(var i=t;i=0;t--){if(!l(e.charCodeAt(t))){break}}return t+1}function findWhiteSpaceEnd(e,t){for(;t{var n=r(5355);e.exports=function clone(e){var t={};for(var r in e){var i=e[r];if(i){if(Array.isArray(i)||i instanceof n){i=i.map(clone)}else if(i.constructor===Object){i=clone(i)}}t[r]=i}return t}},41187:e=>{e.exports=function createCustomError(e,t){var r=Object.create(SyntaxError.prototype);var n=new Error;r.name=e;r.message=t;Object.defineProperty(r,"stack",{get:function(){return(n.stack||"").replace(/^(.+\n){1,3}/,e+": "+t+"\n")}});return r}},87453:e=>{var t=Object.prototype.hasOwnProperty;var r=Object.create(null);var n=Object.create(null);var i=45;function isCustomProperty(e,t){t=t||0;return e.length-t>=2&&e.charCodeAt(t)===i&&e.charCodeAt(t+1)===i}function getVendorPrefix(e,t){t=t||0;if(e.length-t>=3){if(e.charCodeAt(t)===i&&e.charCodeAt(t+1)!==i){var r=e.indexOf("-",t+2);if(r!==-1){return e.substring(t,r+1)}}}return""}function getKeywordDescriptor(e){if(t.call(r,e)){return r[e]}var n=e.toLowerCase();if(t.call(r,n)){return r[e]=r[n]}var i=isCustomProperty(n,0);var a=!i?getVendorPrefix(n,0):"";return r[e]=Object.freeze({basename:n.substr(a.length),name:n,vendor:a,prefix:a,custom:i})}function getPropertyDescriptor(e){if(t.call(n,e)){return n[e]}var r=e;var i=e[0];if(i==="/"){i=e[1]==="/"?"//":"/"}else if(i!=="_"&&i!=="*"&&i!=="$"&&i!=="#"&&i!=="+"&&i!=="&"){i=""}var a=isCustomProperty(r,i.length);if(!a){r=r.toLowerCase();if(t.call(n,r)){return n[e]=n[r]}}var o=!a?getVendorPrefix(r,i.length):"";var s=r.substr(0,i.length+o.length);return n[e]=Object.freeze({basename:r.substr(s.length),name:r.substr(i.length),hack:i,vendor:o,prefix:s,custom:a})}e.exports={keyword:getKeywordDescriptor,property:getPropertyDescriptor,isCustomProperty:isCustomProperty,vendorPrefix:getVendorPrefix}},87760:e=>{var t=Object.prototype.hasOwnProperty;var r=function(){};function ensureFunction(e){return typeof e==="function"?e:r}function invokeForType(e,t){return function(r,n,i){if(r.type===t){e.call(this,r,n,i)}}}function getWalkersFromStructure(e,r){var n=r.structure;var i=[];for(var a in n){if(t.call(n,a)===false){continue}var o=n[a];var s={name:a,type:false,nullable:false};if(!Array.isArray(n[a])){o=[n[a]]}for(var l=0;l{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parse;var r=/^[^\\]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/;var n=/\\([\da-f]{1,6}\s?|(\s)|.)/gi;var i=/^\s*((?:\\.|[\w\u00b0-\uFFFF-])+)\s*(?:(\S?)=\s*(?:(['"])((?:[^\\]|\\[^])*?)\3|(#?(?:\\.|[\w\u00b0-\uFFFF-])*)|)|)\s*(i)?\]/;var a={undefined:"exists","":"equals","~":"element","^":"start",$:"end","*":"any","!":"not","|":"hyphen"};var o={">":"child","<":"parent","~":"sibling","+":"adjacent"};var s={"#":["id","equals"],".":["class","element"]};var l=new Set(["has","not","matches","is","host","host-context"]);var c=new Set(["contains","icontains"]);var u=new Set(['"',"'"]);function funescape(e,t,r){var n=parseInt(t,16)-65536;return n!==n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function unescapeCSS(e){return e.replace(n,funescape)}function isWhitespace(e){return e===" "||e==="\n"||e==="\t"||e==="\f"||e==="\r"}function parse(e,t){var r=[];e=parseSelector(r,""+e,t);if(e!==""){throw new Error("Unmatched selector: "+e)}return r}function parseSelector(e,t,n){var d,p;if(n===void 0){n={}}var m=[];var f=false;function getName(){var e=t.match(r);if(!e){throw new Error("Expected name, found "+t)}var n=e[0];t=t.substr(n.length);return unescapeCSS(n)}function stripWhitespace(e){while(isWhitespace(t.charAt(e)))e++;t=t.substr(e)}function isEscaped(e){var r=0;while(t.charAt(--e)==="\\")r++;return(r&1)===1}stripWhitespace(0);while(t!==""){var h=t.charAt(0);if(isWhitespace(h)){f=true;stripWhitespace(1)}else if(h in o){m.push({type:o[h]});f=false;stripWhitespace(1)}else if(h===","){if(m.length===0){throw new Error("Empty sub-selector")}e.push(m);m=[];f=false;stripWhitespace(1)}else{if(f){if(m.length>0){m.push({type:"descendant"})}f=false}if(h==="*"){t=t.substr(1);m.push({type:"universal"})}else if(h in s){var g=s[h],y=g[0],v=g[1];t=t.substr(1);m.push({type:"attribute",name:y,action:v,value:getName(),ignoreCase:false})}else if(h==="["){t=t.substr(1);var b=t.match(i);if(!b){throw new Error("Malformed attribute selector: "+t)}var S=b[0],x=b[1],w=b[2],C=b[4],k=C===void 0?"":C,T=b[5],E=T===void 0?k:T,A=b[6];t=t.substr(S.length);var O=unescapeCSS(x);if((d=n.lowerCaseAttributeNames)!==null&&d!==void 0?d:!n.xmlMode){O=O.toLowerCase()}m.push({type:"attribute",name:O,action:a[w],value:unescapeCSS(E),ignoreCase:!!A})}else if(h===":"){if(t.charAt(1)===":"){t=t.substr(2);m.push({type:"pseudo-element",name:getName().toLowerCase()});continue}t=t.substr(1);var z=getName().toLowerCase();var P=null;if(t.startsWith("(")){if(l.has(z)){var _=t.charAt(1);var W=u.has(_);t=t.substr(W?2:1);P=[];t=parseSelector(P,t,n);if(W){if(!t.startsWith(_)){throw new Error("Unmatched quotes in :"+z)}else{t=t.substr(1)}}if(!t.startsWith(")")){throw new Error("Missing closing parenthesis in :"+z+" ("+t+")")}t=t.substr(1)}else{var q=1;var B=1;for(;B>0&&q0&&t.length===0){throw new Error("Empty sub-selector")}e.push(t)}},94853:function(e,t){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t ";case"parent":return" < ";case"sibling":return" ~ ";case"adjacent":return" + ";case"descendant":return" ";case"universal":return"*";case"tag":return escapeName(e.name);case"pseudo-element":return"::"+escapeName(e.name);case"pseudo":if(e.data===null)return":"+escapeName(e.name);if(typeof e.data==="string"){return":"+escapeName(e.name)+"("+e.data+")"}return":"+escapeName(e.name)+"("+stringify(e.data)+")";case"attribute":if(e.action==="exists"){return"["+escapeName(e.name)+"]"}if(e.name==="id"&&e.action==="equals"&&!e.ignoreCase){return"#"+escapeName(e.value)}if(e.name==="class"&&e.action==="element"&&!e.ignoreCase){return"."+escapeName(e.value)}return"["+escapeName(e.name)+n[e.action]+"='"+escapeName(e.value)+"'"+(e.ignoreCase?"i":"")+"]"}}function escapeName(e){return e.split("").map(function(e){return i.has(e)?"\\"+e:e}).join("")}},59836:(e,t,r)=>{var n=r(39202).keyword;var{hasNoChildren:i}=r(57354);e.exports=function cleanAtrule(e,t,r){if(e.block){if(this.stylesheet!==null){this.stylesheet.firstAtrulesAllowed=false}if(i(e.block)){r.remove(t);return}}switch(e.name){case"charset":if(i(e.prelude)){r.remove(t);return}if(t.prev){r.remove(t);return}break;case"import":if(this.stylesheet===null||!this.stylesheet.firstAtrulesAllowed){r.remove(t);return}r.prevUntil(t.prev,function(e){if(e.type==="Atrule"){if(e.name==="import"||e.name==="charset"){return}}this.root.firstAtrulesAllowed=false;r.remove(t);return true},this);break;default:var a=n(e.name).basename;if(a==="keyframes"||a==="media"||a==="supports"){if(i(e.prelude)||i(e.block)){r.remove(t)}}}}},25562:e=>{e.exports=function cleanComment(e,t,r){r.remove(t)}},76228:e=>{e.exports=function cleanDeclartion(e,t,r){if(e.value.children&&e.value.children.isEmpty()){r.remove(t)}}},4417:(e,t,r)=>{var{isNodeChildrenList:n}=r(57354);e.exports=function cleanRaw(e,t,r){if(n(this.stylesheet,r)||n(this.block,r)){r.remove(t)}}},1986:(e,t,r)=>{var n=Object.prototype.hasOwnProperty;var i=r(39202).walk;var{hasNoChildren:a}=r(57354);function cleanUnused(e,t){e.children.each(function(r,a,o){var s=false;i(r,function(r){if(this.selector===null||this.selector===e){switch(r.type){case"SelectorList":if(this.function===null||this.function.name.toLowerCase()!=="not"){if(cleanUnused(r,t)){s=true}}break;case"ClassSelector":if(t.whitelist!==null&&t.whitelist.classes!==null&&!n.call(t.whitelist.classes,r.name)){s=true}if(t.blacklist!==null&&t.blacklist.classes!==null&&n.call(t.blacklist.classes,r.name)){s=true}break;case"IdSelector":if(t.whitelist!==null&&t.whitelist.ids!==null&&!n.call(t.whitelist.ids,r.name)){s=true}if(t.blacklist!==null&&t.blacklist.ids!==null&&n.call(t.blacklist.ids,r.name)){s=true}break;case"TypeSelector":if(r.name.charAt(r.name.length-1)!=="*"){if(t.whitelist!==null&&t.whitelist.tags!==null&&!n.call(t.whitelist.tags,r.name.toLowerCase())){s=true}if(t.blacklist!==null&&t.blacklist.tags!==null&&n.call(t.blacklist.tags,r.name.toLowerCase())){s=true}}break}}});if(s){o.remove(a)}});return e.children.isEmpty()}e.exports=function cleanRule(e,t,r,n){if(a(e.prelude)||a(e.block)){r.remove(t);return}var i=n.usage;if(i&&(i.whitelist!==null||i.blacklist!==null)){cleanUnused(e.prelude,i);if(a(e.prelude)){r.remove(t);return}}}},8969:e=>{e.exports=function cleanTypeSelector(e,t,r){var n=t.data.name;if(n!=="*"){return}var i=t.next&&t.next.data.type;if(i==="IdSelector"||i==="ClassSelector"||i==="AttributeSelector"||i==="PseudoClassSelector"||i==="PseudoElementSelector"){r.remove(t)}}},22459:(e,t,r)=>{var{isNodeChildrenList:n}=r(57354);function isSafeOperator(e){return e.type==="Operator"&&e.value!=="+"&&e.value!=="-"}e.exports=function cleanWhitespace(e,t,r){if(t.next===null||t.prev===null){r.remove(t);return}if(n(this.stylesheet,r)||n(this.block,r)){r.remove(t);return}if(t.next.data.type==="WhiteSpace"){r.remove(t);return}if(isSafeOperator(t.prev.data)||isSafeOperator(t.next.data)){r.remove(t);return}}},92746:(e,t,r)=>{var n=r(39202).walk;var i={Atrule:r(59836),Comment:r(25562),Declaration:r(76228),Raw:r(4417),Rule:r(1986),TypeSelector:r(8969),WhiteSpace:r(22459)};e.exports=function(e,t){n(e,{leave:function(e,r,n){if(i.hasOwnProperty(e.type)){i[e.type].call(this,e,r,n,t)}}})}},57354:e=>{e.exports={hasNoChildren:function(e){return!e||!e.children||e.children.isEmpty()},isNodeChildrenList:function(e,t){return e!==null&&e.children===t}}},92887:(e,t,r)=>{var n=r(39202).List;var i=r(39202).clone;var a=r(66411);var o=r(92746);var s=r(36493);var l=r(86320);var c=r(39202).walk;function readChunk(e,t){var r=new n;var i=false;var a;e.nextUntil(e.head,function(e,n,o){if(e.type==="Comment"){if(!t||e.value.charAt(0)!=="!"){o.remove(n);return}if(i||a){return true}o.remove(n);a=e;return}if(e.type!=="WhiteSpace"){i=true}r.insert(o.remove(n))});return{comment:a,stylesheet:{type:"StyleSheet",loc:null,children:r}}}function compressChunk(e,t,r,n){n.logger("Compress block #"+r,null,true);var i=1;if(e.type==="StyleSheet"){e.firstAtrulesAllowed=t;e.id=i++}c(e,{visit:"Atrule",enter:function markScopes(e){if(e.block!==null){e.block.id=i++}}});n.logger("init",e);o(e,n);n.logger("clean",e);s(e,n);n.logger("replace",e);if(n.restructuring){l(e,n)}return e}function getCommentsOption(e){var t="comments"in e?e.comments:"exclamation";if(typeof t==="boolean"){t=t?"exclamation":false}else if(t!=="exclamation"&&t!=="first-exclamation"){t=false}return t}function getRestructureOption(e){if("restructure"in e){return e.restructure}return"restructuring"in e?e.restructuring:true}function wrapBlock(e){return(new n).appendData({type:"Rule",loc:null,prelude:{type:"SelectorList",loc:null,children:(new n).appendData({type:"Selector",loc:null,children:(new n).appendData({type:"TypeSelector",loc:null,name:"x"})})},block:e})}e.exports=function compress(e,t){e=e||{type:"StyleSheet",loc:null,children:new n};t=t||{};var r={logger:typeof t.logger==="function"?t.logger:function(){},restructuring:getRestructureOption(t),forceMediaMerge:Boolean(t.forceMediaMerge),usage:t.usage?a.buildIndex(t.usage):false};var o=getCommentsOption(t);var s=true;var l;var c=new n;var u;var d=1;var p;if(t.clone){e=i(e)}if(e.type==="StyleSheet"){l=e.children;e.children=c}else{l=wrapBlock(e)}do{u=readChunk(l,Boolean(o));compressChunk(u.stylesheet,s,d++,r);p=u.stylesheet.children;if(u.comment){if(!c.isEmpty()){c.insert(n.createItem({type:"Raw",value:"\n"}))}c.insert(n.createItem(u.comment));if(!p.isEmpty()){c.insert(n.createItem({type:"Raw",value:"\n"}))}}if(s&&!p.isEmpty()){var m=p.last();if(m.type!=="Atrule"||m.name!=="import"&&m.name!=="charset"){s=false}}if(o!=="exclamation"){o=false}c.appendList(p)}while(!l.isEmpty());return{ast:e}}},465:(e,t,r)=>{var n=r(39202);var i=n.parse;var a=r(92887);var o=n.generate;function debugOutput(e,t,r,n){if(t.debug){console.error("## "+e+" done in %d ms\n",Date.now()-r)}return n}function createDefaultLogger(e){var t;return function logger(r,n){var i=r;if(n){i="["+((Date.now()-t)/1e3).toFixed(3)+"s] "+i}if(e>1&&n){var a=o(n);if(e===2&&a.length>256){a=a.substr(0,256)+"..."}i+="\n "+a+"\n"}console.error(i);t=Date.now()}}function copy(e){var t={};for(var r in e){t[r]=e[r]}return t}function buildCompressOptions(e){e=copy(e);if(typeof e.logger!=="function"&&e.debug){e.logger=createDefaultLogger(e.debug)}return e}function runHandler(e,t,r){if(!Array.isArray(r)){r=[r]}r.forEach(function(r){r(e,t)})}function minify(e,t,r){r=r||{};var n=r.filename||"";var s;var l=debugOutput("parsing",r,Date.now(),i(t,{context:e,filename:n,positions:Boolean(r.sourceMap)}));if(r.beforeCompress){debugOutput("beforeCompress",r,Date.now(),runHandler(l,r,r.beforeCompress))}var c=debugOutput("compress",r,Date.now(),a(l,buildCompressOptions(r)));if(r.afterCompress){debugOutput("afterCompress",r,Date.now(),runHandler(c,r,r.afterCompress))}if(r.sourceMap){s=debugOutput("generate(sourceMap: true)",r,Date.now(),function(){var e=o(c.ast,{sourceMap:true});e.map._file=n;e.map.setSourceContent(n,t);return e}())}else{s=debugOutput("generate",r,Date.now(),{css:o(c.ast),map:null})}return s}function minifyStylesheet(e,t){return minify("stylesheet",e,t)}function minifyBlock(e,t){return minify("declarationList",e,t)}e.exports={version:r(75723).i8,minify:minifyStylesheet,minifyBlock:minifyBlock,syntax:Object.assign({compress:a},n)}},80354:(e,t,r)=>{var n=r(39202).keyword;var i=r(68777);e.exports=function(e){if(n(e.name).basename==="keyframes"){i(e)}}},79506:e=>{var t=/\\([0-9A-Fa-f]{1,6})(\r\n|[ \t\n\f\r])?|\\./g;var r=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;function canUnquote(e){if(e===""||e==="-"){return}e=e.replace(t,"a");return!r.test(e)}e.exports=function(e){var t=e.value;if(!t||t.type!=="String"){return}var r=t.value.replace(/^(.)(.*)\1$/,"$2");if(canUnquote(r)){e.value={type:"Identifier",loc:t.loc,name:r}}}},41447:(e,t,r)=>{var n=r(33977).pack;var i={px:true,mm:true,cm:true,in:true,pt:true,pc:true,em:true,ex:true,ch:true,rem:true,vh:true,vw:true,vmin:true,vmax:true,vm:true};e.exports=function compressDimension(e,t){var r=n(e.value,t);e.value=r;if(r==="0"&&this.declaration!==null&&this.atrulePrelude===null){var a=e.unit.toLowerCase();if(!i.hasOwnProperty(a)){return}if(this.declaration.property==="-ms-flex"||this.declaration.property==="flex"){return}if(this.function&&this.function.name==="calc"){return}t.data={type:"Number",loc:e.loc,value:r}}}},33977:e=>{var t=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/;var r=/^([\+\-])?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/;var n={Dimension:true,HexColor:true,Identifier:true,Number:true,Raw:true,UnicodeRange:true};function packNumber(e,i){var a=i&&i.prev!==null&&n.hasOwnProperty(i.prev.data.type)?r:t;e=String(e).replace(a,"$1$2$3");if(e===""||e==="-"){e="0"}return e}e.exports=function(e,t){e.value=packNumber(e.value,t)};e.exports.pack=packNumber},93894:(e,t,r)=>{var n=r(39202).lexer;var i=r(33977).pack;var a=new Set(["width","min-width","max-width","height","min-height","max-height","flex","-ms-flex"]);e.exports=function compressPercentage(e,t){e.value=i(e.value,t);if(e.value==="0"&&this.declaration&&!a.has(this.declaration.property)){t.data={type:"Number",loc:e.loc,value:e.value};if(!n.matchDeclaration(this.declaration).isType(t.data,"length")){t.data=e}}}},71878:e=>{e.exports=function(e){var t=e.value;t=t.replace(/\\(\r\n|\r|\n|\f)/g,"");e.value=t}},39250:e=>{var t="\\\\[0-9a-f]{1,6}(\\r\\n|[ \\n\\r\\t\\f])?";var r="("+t+"|\\\\[^\\n\\r\\f0-9a-fA-F])";var n="\0\b\v-";var i=new RegExp("^("+r+"|[^\"'\\(\\)\\\\\\s"+n+"])*$","i");e.exports=function(e){var t=e.value;if(t.type!=="String"){return}var r=t.value[0];var n=t.value.substr(1,t.value.length-2);n=n.replace(/\\\\/g,"/");if(i.test(n)){e.value={type:"Raw",loc:e.value.loc,value:n}}else{e.value.value=n.indexOf('"')===-1?'"'+n+'"':r+n+r}}},54527:(e,t,r)=>{var n=r(39202).property;var i={font:r(29270),"font-weight":r(92980),background:r(9945),border:r(55141),outline:r(55141)};e.exports=function compressValue(e){if(!this.declaration){return}var t=n(this.declaration.property);if(i.hasOwnProperty(t.basename)){i[t.basename](e)}}},68777:e=>{e.exports=function(e){e.block.children.each(function(e){e.prelude.children.each(function(e){e.children.each(function(e,t){if(e.type==="Percentage"&&e.value==="100"){t.data={type:"TypeSelector",loc:e.loc,name:"to"}}else if(e.type==="TypeSelector"&&e.name==="from"){t.data={type:"Percentage",loc:e.loc,value:"0"}}})})})}},47734:(e,t,r)=>{var n=r(39202).lexer;var i=r(33977).pack;var a={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var o={800000:"maroon",800080:"purple",808000:"olive",808080:"gray","00ffff":"cyan",f0ffff:"azure",f5f5dc:"beige",ffe4c4:"bisque","000000":"black","0000ff":"blue",a52a2a:"brown",ff7f50:"coral",ffd700:"gold","008000":"green","4b0082":"indigo",fffff0:"ivory",f0e68c:"khaki","00ff00":"lime",faf0e6:"linen","000080":"navy",ffa500:"orange",da70d6:"orchid",cd853f:"peru",ffc0cb:"pink",dda0dd:"plum",f00:"red",ff0000:"red",fa8072:"salmon",a0522d:"sienna",c0c0c0:"silver",fffafa:"snow",d2b48c:"tan","008080":"teal",ff6347:"tomato",ee82ee:"violet",f5deb3:"wheat",ffffff:"white",ffff00:"yellow"};function hueToRgb(e,t,r){if(r<0){r+=1}if(r>1){r-=1}if(r<1/6){return e+(t-e)*6*r}if(r<1/2){return t}if(r<2/3){return e+(t-e)*(2/3-r)*6}return e}function hslToRgb(e,t,r,n){var i;var a;var o;if(t===0){i=a=o=r}else{var s=r<.5?r*(1+t):r+t-r*t;var l=2*r-s;i=hueToRgb(l,s,e+1/3);a=hueToRgb(l,s,e);o=hueToRgb(l,s,e-1/3)}return[Math.round(i*255),Math.round(a*255),Math.round(o*255),n]}function toHex(e){e=e.toString(16);return e.length===1?"0"+e:e}function parseFunctionArgs(e,t,r){var n=e.head;var i=[];var a=false;while(n!==null){var o=n.data;var s=o.type;switch(s){case"Number":case"Percentage":if(a){return}a=true;i.push({type:s,value:Number(o.value)});break;case"Operator":if(o.value===","){if(!a){return}a=false}else if(a||o.value!=="+"){return}break;default:return}n=n.next}if(i.length!==t){return}if(i.length===4){if(i[3].type!=="Number"){return}i[3].type="Alpha"}if(r){if(i[0].type!==i[1].type||i[0].type!==i[2].type){return}}else{if(i[0].type!=="Number"||i[1].type!=="Percentage"||i[2].type!=="Percentage"){return}i[0].type="Angle"}return i.map(function(e){var t=Math.max(0,e.value);switch(e.type){case"Number":t=Math.min(t,255);break;case"Percentage":t=Math.min(t,100)/100;if(!r){return t}t=255*t;break;case"Angle":return(t%360+360)%360/360;case"Alpha":return Math.min(t,1)}return Math.round(t)})}function compressFunction(e,t,r){var n=e.name;var a;if(n==="rgba"||n==="hsla"){a=parseFunctionArgs(e.children,4,n==="rgba");if(!a){return}if(n==="hsla"){a=hslToRgb.apply(null,a);e.name="rgba"}if(a[3]===0){var o=this.function&&this.function.name;if(a[0]===0&&a[1]===0&&a[2]===0||!/^(?:to|from|color-stop)$|gradient$/i.test(o)){t.data={type:"Identifier",loc:e.loc,name:"transparent"};return}}if(a[3]!==1){e.children.each(function(e,t,r){if(e.type==="Operator"){if(e.value!==","){r.remove(t)}return}t.data={type:"Number",loc:e.loc,value:i(a.shift(),null)}});return}n="rgb"}if(n==="hsl"){a=a||parseFunctionArgs(e.children,3,false);if(!a){return}a=hslToRgb.apply(null,a);n="rgb"}if(n==="rgb"){a=a||parseFunctionArgs(e.children,3,true);if(!a){return}var s=t.next;if(s&&s.data.type!=="WhiteSpace"){r.insert(r.createItem({type:"WhiteSpace",value:" "}),s)}t.data={type:"HexColor",loc:e.loc,value:toHex(a[0])+toHex(a[1])+toHex(a[2])};compressHex(t.data,t)}}function compressIdent(e,t){if(this.declaration===null){return}var r=e.name.toLowerCase();if(a.hasOwnProperty(r)&&n.matchDeclaration(this.declaration).isType(e,"color")){var i=a[r];if(i.length+1<=r.length){t.data={type:"HexColor",loc:e.loc,value:i}}else{if(r==="grey"){r="gray"}e.name=r}}}function compressHex(e,t){var r=e.value.toLowerCase();if(r.length===6&&r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]){r=r[0]+r[2]+r[4]}if(o[r]){t.data={type:"Identifier",loc:e.loc,name:o[r]}}else{e.value=r}}e.exports={compressFunction:compressFunction,compressIdent:compressIdent,compressHex:compressHex}},36493:(e,t,r)=>{var n=r(39202).walk;var i={Atrule:r(80354),AttributeSelector:r(79506),Value:r(54527),Dimension:r(41447),Percentage:r(93894),Number:r(33977),String:r(71878),Url:r(39250),HexColor:r(47734).compressHex,Identifier:r(47734).compressIdent,Function:r(47734).compressFunction};e.exports=function(e){n(e,{leave:function(e,t,r){if(i.hasOwnProperty(e.type)){i[e.type].call(this,e,t,r)}}})}},9945:(e,t,r)=>{var n=r(39202).List;e.exports=function compressBackground(e){function lastType(){if(r.length){return r[r.length-1].type}}function flush(){if(lastType()==="WhiteSpace"){r.pop()}if(!r.length){r.unshift({type:"Number",loc:null,value:"0"},{type:"WhiteSpace",value:" "},{type:"Number",loc:null,value:"0"})}t.push.apply(t,r);r=[]}var t=[];var r=[];e.children.each(function(e){if(e.type==="Operator"&&e.value===","){flush();t.push(e);return}if(e.type==="Identifier"){if(e.name==="transparent"||e.name==="none"||e.name==="repeat"||e.name==="scroll"){return}}if(e.type==="WhiteSpace"&&(!r.length||lastType()==="WhiteSpace")){return}r.push(e)});flush();e.children=(new n).fromArray(t)}},55141:e=>{function removeItemAndRedundantWhiteSpace(e,t){var r=t.prev;var n=t.next;if(n!==null){if(n.data.type==="WhiteSpace"&&(r===null||r.data.type==="WhiteSpace")){e.remove(n)}}else if(r!==null&&r.data.type==="WhiteSpace"){e.remove(r)}e.remove(t)}e.exports=function compressBorder(e){e.children.each(function(e,t,r){if(e.type==="Identifier"&&e.name.toLowerCase()==="none"){if(r.head===r.tail){t.data={type:"Number",loc:e.loc,value:"0"}}else{removeItemAndRedundantWhiteSpace(r,t)}}})}},92980:e=>{e.exports=function compressFontWeight(e){var t=e.children.head.data;if(t.type==="Identifier"){switch(t.name){case"normal":e.children.head.data={type:"Number",loc:t.loc,value:"400"};break;case"bold":e.children.head.data={type:"Number",loc:t.loc,value:"700"};break}}}},29270:e=>{e.exports=function compressFont(e){var t=e.children;t.eachRight(function(e,t){if(e.type==="Identifier"){if(e.name==="bold"){t.data={type:"Number",loc:e.loc,value:"700"}}else if(e.name==="normal"){var r=t.prev;if(r&&r.data.type==="Operator"&&r.data.value==="/"){this.remove(r)}this.remove(t)}else if(e.name==="medium"){var n=t.next;if(!n||n.data.type!=="Operator"){this.remove(t)}}}});t.each(function(e,t){if(e.type==="WhiteSpace"){if(!t.prev||!t.next||t.next.data.type==="WhiteSpace"){this.remove(t)}}});if(t.isEmpty()){t.insert(t.createItem({type:"Identifier",name:"normal"}))}}},60245:(e,t,r)=>{var n=r(39202).List;var i=r(39202).keyword;var a=Object.prototype.hasOwnProperty;var o=r(39202).walk;function addRuleToMap(e,t,r,o){var s=t.data;var l=i(s.name).basename;var c=s.name.toLowerCase()+"/"+(s.prelude?s.prelude.id:null);if(!a.call(e,l)){e[l]=Object.create(null)}if(o){delete e[l][c]}if(!a.call(e[l],c)){e[l][c]=new n}e[l][c].append(r.remove(t))}function relocateAtrules(e,t){var r=Object.create(null);var n=null;e.children.each(function(e,a,o){if(e.type==="Atrule"){var s=i(e.name).basename;switch(s){case"keyframes":addRuleToMap(r,a,o,true);return;case"media":if(t.forceMediaMerge){addRuleToMap(r,a,o,false);return}break}if(n===null&&s!=="charset"&&s!=="import"){n=a}}else{if(n===null){n=a}}});for(var a in r){for(var o in r[a]){e.children.insertList(r[a][o],a==="media"?null:n)}}}function isMediaRule(e){return e.type==="Atrule"&&e.name==="media"}function processAtrule(e,t,r){if(!isMediaRule(e)){return}var n=t.prev&&t.prev.data;if(!n||!isMediaRule(n)){return}if(e.prelude&&n.prelude&&e.prelude.id===n.prelude.id){n.block.children.appendList(e.block.children);r.remove(t)}}e.exports=function rejoinAtrule(e,t){relocateAtrules(e,t);o(e,{visit:"Atrule",reverse:true,enter:processAtrule})}},10341:(e,t,r)=>{var n=r(39202).walk;var i=r(50326);function processRule(e,t,r){var n=e.prelude.children;var a=e.block.children;r.prevUntil(t.prev,function(o){if(o.type!=="Rule"){return i.unsafeToSkipNode.call(n,o)}var s=o.prelude.children;var l=o.block.children;if(e.pseudoSignature===o.pseudoSignature){if(i.isEqualSelectors(s,n)){l.appendList(a);r.remove(t);return true}if(i.isEqualDeclarations(a,l)){i.addSelectors(s,n);r.remove(t);return true}}return i.hasSimilarSelectors(n,s)})}e.exports=function initialMergeRule(e){n(e,{visit:"Rule",enter:processRule})}},66028:(e,t,r)=>{var n=r(39202).List;var i=r(39202).walk;function processRule(e,t,r){var i=e.prelude.children;while(i.head!==i.tail){var a=new n;a.insert(i.remove(i.head));r.insert(r.createItem({type:"Rule",loc:e.loc,prelude:{type:"SelectorList",loc:e.prelude.loc,children:a},block:{type:"Block",loc:e.block.loc,children:e.block.children.copy()},pseudoSignature:e.pseudoSignature}),t)}}e.exports=function disjoinRule(e){i(e,{visit:"Rule",reverse:true,enter:processRule})}},72704:(e,t,r)=>{var n=r(39202).List;var i=r(39202).generate;var a=r(39202).walk;var o=1;var s=2;var l=0;var c=1;var u=2;var d=3;var p=["top","right","bottom","left"];var m={"margin-top":"top","margin-right":"right","margin-bottom":"bottom","margin-left":"left","padding-top":"top","padding-right":"right","padding-bottom":"bottom","padding-left":"left","border-top-color":"top","border-right-color":"right","border-bottom-color":"bottom","border-left-color":"left","border-top-width":"top","border-right-width":"right","border-bottom-width":"bottom","border-left-width":"left","border-top-style":"top","border-right-style":"right","border-bottom-style":"bottom","border-left-style":"left"};var f={margin:"margin","margin-top":"margin","margin-right":"margin","margin-bottom":"margin","margin-left":"margin",padding:"padding","padding-top":"padding","padding-right":"padding","padding-bottom":"padding","padding-left":"padding","border-color":"border-color","border-top-color":"border-color","border-right-color":"border-color","border-bottom-color":"border-color","border-left-color":"border-color","border-width":"border-width","border-top-width":"border-width","border-right-width":"border-width","border-bottom-width":"border-width","border-left-width":"border-width","border-style":"border-style","border-top-style":"border-style","border-right-style":"border-style","border-bottom-style":"border-style","border-left-style":"border-style"};function TRBL(e){this.name=e;this.loc=null;this.iehack=undefined;this.sides={top:null,right:null,bottom:null,left:null}}TRBL.prototype.getValueSequence=function(e,t){var r=[];var n="";var i=e.value.children.some(function(t){var i=false;switch(t.type){case"Identifier":switch(t.name){case"\\0":case"\\9":n=t.name;return;case"inherit":case"initial":case"unset":case"revert":i=t.name;break}break;case"Dimension":switch(t.unit){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":i=t.unit;break}break;case"HexColor":case"Number":case"Percentage":break;case"Function":i=t.name;break;case"WhiteSpace":return false;default:return true}r.push({node:t,special:i,important:e.important})});if(i||r.length>t){return false}if(typeof this.iehack==="string"&&this.iehack!==n){return false}this.iehack=n;return r};TRBL.prototype.canOverride=function(e,t){var r=this.sides[e];return!r||t.important&&!r.important};TRBL.prototype.add=function(e,t){function attemptToAdd(){var r=this.sides;var n=m[e];if(n){if(n in r===false){return false}var i=this.getValueSequence(t,1);if(!i||!i.length){return false}for(var a in r){if(r[a]!==null&&r[a].special!==i[0].special){return false}}if(!this.canOverride(n,i[0])){return true}r[n]=i[0];return true}else if(e===this.name){var i=this.getValueSequence(t,4);if(!i||!i.length){return false}switch(i.length){case 1:i[c]=i[l];i[u]=i[l];i[d]=i[l];break;case 2:i[u]=i[l];i[d]=i[c];break;case 3:i[d]=i[c];break}for(var o=0;o<4;o++){for(var a in r){if(r[a]!==null&&r[a].special!==i[o].special){return false}}}for(var o=0;o<4;o++){if(this.canOverride(p[o],i[o])){r[p[o]]=i[o]}}return true}}if(!attemptToAdd.call(this)){return false}if(!this.loc){this.loc=t.loc}return true};TRBL.prototype.isOkToMinimize=function(){var e=this.sides.top;var t=this.sides.right;var r=this.sides.bottom;var n=this.sides.left;if(e&&t&&r&&n){var i=e.important+t.important+r.important+n.important;return i===0||i===4}return false};TRBL.prototype.getValue=function(){var e=new n;var t=this.sides;var r=[t.top,t.right,t.bottom,t.left];var a=[i(t.top.node),i(t.right.node),i(t.bottom.node),i(t.left.node)];if(a[d]===a[c]){r.pop();if(a[u]===a[l]){r.pop();if(a[c]===a[l]){r.pop()}}}for(var o=0;o{var n=r(39202).property;var i=r(39202).keyword;var a=r(39202).walk;var o=r(39202).generate;var s=1;var l={src:1};var c={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i};var u=["auto","crosshair","default","move","text","wait","help","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","pointer","progress","not-allowed","no-drop","vertical-text","all-scroll","col-resize","row-resize"];var d=["static","relative","absolute","fixed"];var p={"border-width":["border"],"border-style":["border"],"border-color":["border"],"border-top":["border"],"border-right":["border"],"border-bottom":["border"],"border-left":["border"],"border-top-width":["border-top","border-width","border"],"border-right-width":["border-right","border-width","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left-width":["border-left","border-width","border"],"border-top-style":["border-top","border-style","border"],"border-right-style":["border-right","border-style","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-left-style":["border-left","border-style","border"],"border-top-color":["border-top","border-color","border"],"border-right-color":["border-right","border-color","border"],"border-bottom-color":["border-bottom","border-color","border"],"border-left-color":["border-left","border-color","border"],"margin-top":["margin"],"margin-right":["margin"],"margin-bottom":["margin"],"margin-left":["margin"],"padding-top":["padding"],"padding-right":["padding"],"padding-bottom":["padding"],"padding-left":["padding"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"font-size":["font"],"font-family":["font"],"list-style-type":["list-style"],"list-style-position":["list-style"],"list-style-image":["list-style"]};function getPropertyFingerprint(e,t,r){var a=n(e).basename;if(a==="background"){return e+":"+o(t.value)}var l=t.id;var p=r[l];if(!p){switch(t.value.type){case"Value":var m="";var f="";var h={};var g=false;t.value.children.each(function walk(e){switch(e.type){case"Value":case"Brackets":case"Parentheses":e.children.each(walk);break;case"Raw":g=true;break;case"Identifier":var t=e.name;if(!m){m=i(t).vendor}if(/\\[09]/.test(t)){f=RegExp.lastMatch}if(a==="cursor"){if(u.indexOf(t)===-1){h[t]=true}}else if(a==="position"){if(d.indexOf(t)===-1){h[t]=true}}else if(c.hasOwnProperty(a)){if(c[a].test(t)){h[t]=true}}break;case"Function":var t=e.name;if(!m){m=i(t).vendor}if(t==="rect"){var r=e.children.some(function(e){return e.type==="Operator"&&e.value===","});if(!r){t="rect-backward"}}h[t+"()"]=true;e.children.each(walk);break;case"Dimension":var n=e.unit;if(/\\[09]/.test(n)){f=RegExp.lastMatch}switch(n){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":h[n]=true;break}break}});p=g?"!"+s++:"!"+Object.keys(h).sort()+"|"+f+m;break;case"Raw":p="!"+t.value.value;break;default:p=o(t.value)}r[l]=p}return e+p}function needless(e,t,r){var i=n(t.property);if(p.hasOwnProperty(i.basename)){var a=p[i.basename];for(var o=0;o{var n=r(39202).walk;var i=r(50326);function processRule(e,t,r){var n=e.prelude.children;var a=e.block.children;var o=n.first().compareMarker;var s={};r.nextUntil(t.next,function(t,l){if(t.type!=="Rule"){return i.unsafeToSkipNode.call(n,t)}if(e.pseudoSignature!==t.pseudoSignature){return true}var c=t.prelude.children.head;var u=t.block.children;var d=c.data.compareMarker;if(d in s){return true}if(n.head===n.tail){if(n.first().id===c.data.id){a.appendList(u);r.remove(l);return}}if(i.isEqualDeclarations(a,u)){var p=c.data.id;n.some(function(e,t){var r=e.id;if(p{var n=r(39202).List;var i=r(39202).walk;var a=r(50326);function calcSelectorLength(e){var t=0;e.each(function(e){t+=e.id.length+1});return t-1}function calcDeclarationsLength(e){var t=0;for(var r=0;r=w){var C=r.createItem({type:"Rule",loc:null,prelude:x,block:{type:"Block",loc:null,children:(new n).fromArray(v.eq)},pseudoSignature:e.pseudoSignature});l.children=(new n).fromArray(v.ne1);f.children=(new n).fromArray(v.ne2overrided);if(u){r.insert(C,m)}else{r.insert(C,t)}return true}}}}if(u){u=!y.some(function(e){return s.some(function(t){return t.compareMarker===e.compareMarker})})}y.each(function(e){c[e.compareMarker]=true})})}e.exports=function restructRule(e){i(e,{visit:"Rule",reverse:true,enter:processRule})}},86320:(e,t,r)=>{var n=r(97511);var i=r(60245);var a=r(10341);var o=r(66028);var s=r(72704);var l=r(40140);var c=r(72329);var u=r(17616);e.exports=function(e,t){var r=n(e,t);t.logger("prepare",e);i(e,t);t.logger("mergeAtrule",e);a(e);t.logger("initialMergeRuleset",e);o(e);t.logger("disjoinRuleset",e);s(e,r);t.logger("restructShorthand",e);l(e);t.logger("restructBlock",e);c(e);t.logger("mergeRuleset",e);u(e);t.logger("restructRuleset",e)}},21631:(e,t,r)=>{var n=r(39202).generate;function Index(){this.seed=0;this.map=Object.create(null)}Index.prototype.resolve=function(e){var t=this.map[e];if(!t){t=++this.seed;this.map[e]=t}return t};e.exports=function createDeclarationIndexer(){var e=new Index;return function markDeclaration(t){var r=n(t);t.id=e.resolve(r);t.length=r.length;t.fingerprint=null;return t}}},97511:(e,t,r)=>{var n=r(39202).keyword;var i=r(39202).walk;var a=r(39202).generate;var o=r(21631);var s=r(249);e.exports=function prepare(e,t){var r=o();i(e,{visit:"Rule",enter:function processRule(e){e.block.children.each(r);s(e,t.usage)}});i(e,{visit:"Atrule",enter:function(e){if(e.prelude){e.prelude.id=null;e.prelude.id=a(e.prelude)}if(n(e.name).basename==="keyframes"){e.block.avoidRulesMerge=true;e.block.children.each(function(e){e.prelude.children.each(function(e){e.compareMarker=e.id})})}}});return{declaration:r}}},249:(e,t,r)=>{var n=r(39202).generate;var i=r(77755);var a={"first-letter":true,"first-line":true,after:true,before:true};var o={link:true,visited:true,hover:true,active:true,"first-letter":true,"first-line":true,after:true,before:true};e.exports=function freeze(e,t){var r=Object.create(null);var s=false;e.prelude.children.each(function(e){var l="*";var c=0;e.children.each(function(i){switch(i.type){case"ClassSelector":if(t&&t.scopes){var u=t.scopes[i.name]||0;if(c!==0&&u!==c){throw new Error("Selector can't has classes from different scopes: "+n(e))}c=u}break;case"PseudoClassSelector":var d=i.name.toLowerCase();if(!o.hasOwnProperty(d)){r[d]=true;s=true}break;case"PseudoElementSelector":var d=i.name.toLowerCase();if(!a.hasOwnProperty(d)){r[d]=true;s=true}break;case"TypeSelector":l=i.name.toLowerCase();break;case"AttributeSelector":if(i.flags){r["["+i.flags.toLowerCase()+"]"]=true;s=true}break;case"WhiteSpace":case"Combinator":l="*";break}});e.compareMarker=i(e).toString();e.id=null;e.id=n(e);if(c){e.compareMarker+=":"+c}if(l!=="*"){e.compareMarker+=","+l}});e.pseudoSignature=s&&Object.keys(r).sort().join(",")}},77755:e=>{e.exports=function specificity(e){var t=0;var r=0;var n=0;e.children.each(function walk(e){switch(e.type){case"SelectorList":case"Selector":e.children.each(walk);break;case"IdSelector":t++;break;case"ClassSelector":case"AttributeSelector":r++;break;case"PseudoClassSelector":switch(e.name.toLowerCase()){case"not":e.children.each(walk);break;case"before":case"after":case"first-line":case"first-letter":n++;break;default:r++}break;case"PseudoElementSelector":n++;break;case"TypeSelector":if(e.name.charAt(e.name.length-1)!=="*"){n++}break}});return[t,r,n]}},50326:e=>{var t=Object.prototype.hasOwnProperty;function isEqualSelectors(e,t){var r=e.head;var n=t.head;while(r!==null&&n!==null&&r.data.id===n.data.id){r=r.next;n=n.next}return r===null&&n===null}function isEqualDeclarations(e,t){var r=e.head;var n=t.head;while(r!==null&&n!==null&&r.data.id===n.data.id){r=r.next;n=n.next}return r===null&&n===null}function compareDeclarations(e,r){var n={eq:[],ne1:[],ne2:[],ne2overrided:[]};var i=Object.create(null);var a=Object.create(null);for(var o=r.head;o;o=o.next){a[o.data.id]=true}for(var o=e.head;o;o=o.next){var s=o.data;if(s.fingerprint){i[s.fingerprint]=s.important}if(a[s.id]){a[s.id]=false;n.eq.push(s)}else{n.ne1.push(s)}}for(var o=r.head;o;o=o.next){var s=o.data;if(a[s.id]){if(!t.call(i,s.fingerprint)||!i[s.fingerprint]&&s.important){n.ne2.push(s)}n.ne2overrided.push(s)}}return n}function addSelectors(e,t){t.each(function(t){var r=t.id;var n=e.head;while(n){var i=n.data.id;if(i===r){return}if(i>r){break}n=n.next}e.insert(e.createItem(t),n)});return e}function hasSimilarSelectors(e,t){var r=e.head;while(r!==null){var n=t.head;while(n!==null){if(r.data.compareMarker===n.data.compareMarker){return true}n=n.next}r=r.next}return false}function unsafeToSkipNode(e){switch(e.type){case"Rule":return hasSimilarSelectors(e.prelude.children,this);case"Atrule":if(e.block){return e.block.children.some(unsafeToSkipNode,this)}break;case"Declaration":return false}return true}e.exports={isEqualSelectors:isEqualSelectors,isEqualDeclarations:isEqualDeclarations,compareDeclarations:compareDeclarations,addSelectors:addSelectors,hasSimilarSelectors:hasSimilarSelectors,unsafeToSkipNode:unsafeToSkipNode}},66411:e=>{var t=Object.prototype.hasOwnProperty;function buildMap(e,t){var r=Object.create(null);if(!Array.isArray(e)){return null}for(var n=0;n{var n=r(38365);var i=r(53501);var a=r(37363);var o=r(71826);function preprocessAtrules(e){var t=Object.create(null);for(var r in e){var n=e[r];var i=null;if(n.descriptors){i=Object.create(null);for(var a in n.descriptors){i[a]=n.descriptors[a].syntax}}t[r.substr(1)]={prelude:n.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:i}}return t}function buildDictionary(e,t){var r={};for(var n in e){r[n]=e[n].syntax}for(var n in t){if(n in e){if(t[n].syntax){r[n]=t[n].syntax}else{delete r[n]}}else{if(t[n].syntax){r[n]=t[n].syntax}}}return r}e.exports={types:buildDictionary(a,o.syntaxes),atrules:preprocessAtrules(n),properties:buildDictionary(i,o.properties)}},35855:e=>{function createItem(e){return{prev:null,next:null,data:e}}function allocateCursor(e,r,n){var i;if(t!==null){i=t;t=t.cursor;i.prev=r;i.next=n;i.cursor=e.cursor}else{i={prev:r,next:n,cursor:e.cursor}}e.cursor=i;return i}function releaseCursor(e){var r=e.cursor;e.cursor=r.cursor;r.prev=null;r.next=null;r.cursor=t;t=r}var t=null;var r=function(){this.cursor=null;this.head=null;this.tail=null};r.createItem=createItem;r.prototype.createItem=createItem;r.prototype.updateCursors=function(e,t,r,n){var i=this.cursor;while(i!==null){if(i.prev===e){i.prev=t}if(i.next===r){i.next=n}i=i.cursor}};r.prototype.getSize=function(){var e=0;var t=this.head;while(t){e++;t=t.next}return e};r.prototype.fromArray=function(e){var t=null;this.head=null;for(var r=0;r{var n=r(1136);var i=r(22802).isBOM;var a=10;var o=12;var s=13;function computeLinesAndColumns(e,t){var r=t.length;var l=n(e.lines,r);var c=e.startLine;var u=n(e.columns,r);var d=e.startColumn;var p=t.length>0?i(t.charCodeAt(0)):0;for(var m=p;m{var n=r(89308);var i=100;var a=60;var o=" ";function sourceFragment(e,t){function processLines(e,t){return r.slice(e,t).map(function(t,r){var n=String(e+r+1);while(n.lengthi){d=s-a+3;s=a-2}for(var p=l;p<=c;p++){if(p>=0&&p0&&r[p].length>d?"…":"")+r[p].substr(d,i-2)+(r[p].length>d+i-1?"…":"")}}return[processLines(l,n),new Array(s+u+2).join("-")+"^",processLines(n,c)].filter(Boolean).join("\n")}var s=function(e,t,r,i,a){var o=n("SyntaxError",e);o.source=t;o.offset=r;o.line=i;o.column=a;o.sourceFragment=function(e){return sourceFragment(o,isNaN(e)?0:e)};Object.defineProperty(o,"formattedMessage",{get:function(){return"Parse error: "+o.message+"\n"+sourceFragment(o,2)}});o.parseError={offset:r,line:i,column:a};return o};e.exports=s},34884:(e,t,r)=>{var n=r(48600);var i=n.TYPE;var a=n.NAME;var o=r(74501);var s=o.cmpStr;var l=i.EOF;var c=i.WhiteSpace;var u=i.Comment;var d=16777215;var p=24;var m=function(){this.offsetAndType=null;this.balance=null;this.reset()};m.prototype={reset:function(){this.eof=false;this.tokenIndex=-1;this.tokenType=0;this.tokenStart=this.firstCharOffset;this.tokenEnd=this.firstCharOffset},lookupType:function(e){e+=this.tokenIndex;if(e>p}return l},lookupOffset:function(e){e+=this.tokenIndex;if(e0){return e>p;switch(t(a,this.source,i)){case 1:break e;case 2:r++;break e;default:i=this.offsetAndType[r]&d;if(this.balance[n]===r){r=n}}}return r-this.tokenIndex},isBalanceEdge:function(e){return this.balance[this.tokenIndex]>p!==c){break}}if(t>0){this.skip(t)}},skipSC:function(){while(this.tokenType===c||this.tokenType===u){this.next()}},skip:function(e){var t=this.tokenIndex+e;if(t>p;this.tokenEnd=t&d}else{this.tokenIndex=this.tokenCount;this.next()}},next:function(){var e=this.tokenIndex+1;if(e>p;this.tokenEnd=e&d}else{this.tokenIndex=this.tokenCount;this.eof=true;this.tokenType=l;this.tokenStart=this.tokenEnd=this.source.length}},dump:function(){var e=this.firstCharOffset;return Array.prototype.slice.call(this.offsetAndType,0,this.tokenCount).map(function(t,r){var n=e;var i=t&d;e=i;return{idx:r,type:a[t>>p],chunk:this.source.substring(n,i),balance:this.balance[r]}},this)}};e.exports=m},1136:e=>{var t=16*1024;var r=typeof Uint32Array!=="undefined"?Uint32Array:Array;e.exports=function adoptBuffer(e,n){if(e===null||e.length{var n=r(35855);e.exports=function createConvertors(e){return{fromPlainObject:function(t){e(t,{enter:function(e){if(e.children&&e.children instanceof n===false){e.children=(new n).fromArray(e.children)}}});return t},toPlainObject:function(t){e(t,{leave:function(e){if(e.children&&e.children instanceof n){e.children=e.children.toArray()}}});return t}}}},5935:(e,t,r)=>{var n=r(89308);e.exports=function SyntaxError(e,t,r){var i=n("SyntaxError",e);i.input=t;i.offset=r;i.rawMessage=e;i.message=i.rawMessage+"\n"+" "+i.input+"\n"+"--"+new Array((i.offset||i.input.length)+1).join("-")+"^";return i}},13423:e=>{function noop(e){return e}function generateMultiplier(e){if(e.min===0&&e.max===0){return"*"}if(e.min===0&&e.max===1){return"?"}if(e.min===1&&e.max===0){return e.comma?"#":"+"}if(e.min===1&&e.max===1){return""}return(e.comma?"#":"")+(e.min===e.max?"{"+e.min+"}":"{"+e.min+","+(e.max!==0?e.max:"")+"}")}function generateTypeOpts(e){switch(e.type){case"Range":return" ["+(e.min===null?"-∞":e.min)+","+(e.max===null?"∞":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function generateSequence(e,t,r,n){var i=e.combinator===" "||n?e.combinator:" "+e.combinator+" ";var a=e.terms.map(function(e){return generate(e,t,r,n)}).join(i);if(e.explicit||r){a=(n||a[0]===","?"[":"[ ")+a+(n?"]":" ]")}return a}function generate(e,t,r,n){var i;switch(e.type){case"Group":i=generateSequence(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return generate(e.term,t,r,n)+t(generateMultiplier(e),e);case"Type":i="<"+e.name+(e.opts?t(generateTypeOpts(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}e.exports=function(e,t){var r=noop;var n=false;var i=false;if(typeof t==="function"){r=t}else if(t){n=Boolean(t.forceBraces);i=Boolean(t.compact);if(typeof t.decorate==="function"){r=t.decorate}}return generate(e,r,n,i)}},57596:(e,t,r)=>{e.exports={SyntaxError:r(5935),parse:r(31617),generate:r(13423),walk:r(96718)}},31617:(e,t,r)=>{var n=r(18493);var i=9;var a=10;var o=12;var s=13;var l=32;var c=33;var u=35;var d=38;var p=39;var m=40;var f=41;var h=42;var g=43;var y=44;var v=45;var b=60;var S=62;var x=63;var w=64;var C=91;var k=93;var T=123;var E=124;var A=125;var O=8734;var z=createCharMap(function(e){return/[a-zA-Z0-9\-]/.test(e)});var P={" ":1,"&&":2,"||":3,"|":4};function createCharMap(e){var t=typeof Uint32Array==="function"?new Uint32Array(128):new Array(128);for(var r=0;r<128;r++){t[r]=e(String.fromCharCode(r))?1:0}return t}function scanSpaces(e){return e.substringToPos(e.findWsEnd(e.pos))}function scanWord(e){var t=e.pos;for(;t=128||z[r]===0){break}}if(e.pos===t){e.error("Expect a keyword")}return e.substringToPos(t)}function scanNumber(e){var t=e.pos;for(;t57){break}}if(e.pos===t){e.error("Expect a number")}return e.substringToPos(t)}function scanString(e){var t=e.str.indexOf("'",e.pos+1);if(t===-1){e.pos=e.str.length;e.error("Expect an apostrophe")}return e.substringToPos(t+1)}function readMultiplierRange(e){var t=null;var r=null;e.eat(T);t=scanNumber(e);if(e.charCode()===y){e.pos++;if(e.charCode()!==A){r=scanNumber(e)}}else{r=t}e.eat(A);return{min:Number(t),max:r?Number(r):0}}function readMultiplier(e){var t=null;var r=false;switch(e.charCode()){case h:e.pos++;t={min:0,max:0};break;case g:e.pos++;t={min:1,max:0};break;case x:e.pos++;t={min:0,max:1};break;case u:e.pos++;r=true;if(e.charCode()===T){t=readMultiplierRange(e)}else{t={min:1,max:0}}break;case T:t=readMultiplierRange(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function maybeMultiplied(e,t){var r=readMultiplier(e);if(r!==null){r.term=t;return r}return t}function maybeToken(e){var t=e.peek();if(t===""){return null}return{type:"Token",value:t}}function readProperty(e){var t;e.eat(b);e.eat(p);t=scanWord(e);e.eat(p);e.eat(S);return maybeMultiplied(e,{type:"Property",name:t})}function readTypeRange(e){var t=null;var r=null;var n=1;e.eat(C);if(e.charCode()===v){e.peek();n=-1}if(n==-1&&e.charCode()===O){e.peek()}else{t=n*Number(scanNumber(e))}scanSpaces(e);e.eat(y);scanSpaces(e);if(e.charCode()===O){e.peek()}else{n=1;if(e.charCode()===v){e.peek();n=-1}r=n*Number(scanNumber(e))}e.eat(k);if(t===null&&r===null){return null}return{type:"Range",min:t,max:r}}function readType(e){var t;var r=null;e.eat(b);t=scanWord(e);if(e.charCode()===m&&e.nextCharCode()===f){e.pos+=2;t+="()"}if(e.charCodeAt(e.findWsEnd(e.pos))===C){scanSpaces(e);r=readTypeRange(e)}e.eat(S);return maybeMultiplied(e,{type:"Type",name:t,opts:r})}function readKeywordOrFunction(e){var t;t=scanWord(e);if(e.charCode()===m){e.pos++;return{type:"Function",name:t}}return maybeMultiplied(e,{type:"Keyword",name:t})}function regroupTerms(e,t){function createGroup(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:false,explicit:false}}t=Object.keys(t).sort(function(e,t){return P[e]-P[t]});while(t.length>0){var r=t.shift();for(var n=0,i=0;n1){e.splice(i,n-i,createGroup(e.slice(i,n),r));n=i+1}i=-1}}}if(i!==-1&&t.length){e.splice(i,n-i,createGroup(e.slice(i,n),r))}}return r}function readImplicitGroup(e){var t=[];var r={};var n;var i=null;var a=e.pos;while(n=peek(e)){if(n.type!=="Spaces"){if(n.type==="Combinator"){if(i===null||i.type==="Combinator"){e.pos=a;e.error("Unexpected combinator")}r[n.value]=true}else if(i!==null&&i.type!=="Combinator"){r[" "]=true;t.push({type:"Combinator",value:" "})}t.push(n);i=n;a=e.pos}}if(i!==null&&i.type==="Combinator"){e.pos-=a;e.error("Unexpected combinator")}return{type:"Group",terms:t,combinator:regroupTerms(t,r)||" ",disallowEmpty:false,explicit:false}}function readGroup(e){var t;e.eat(C);t=readImplicitGroup(e);e.eat(k);t.explicit=true;if(e.charCode()===c){e.pos++;t.disallowEmpty=true}return t}function peek(e){var t=e.charCode();if(t<128&&z[t]===1){return readKeywordOrFunction(e)}switch(t){case k:break;case C:return maybeMultiplied(e,readGroup(e));case b:return e.nextCharCode()===p?readProperty(e):readType(e);case E:return{type:"Combinator",value:e.substringToPos(e.nextCharCode()===E?e.pos+2:e.pos+1)};case d:e.pos++;e.eat(d);return{type:"Combinator",value:"&&"};case y:e.pos++;return{type:"Comma"};case p:return maybeMultiplied(e,{type:"String",value:scanString(e)});case l:case i:case a:case s:case o:return{type:"Spaces",value:scanSpaces(e)};case w:t=e.nextCharCode();if(t<128&&z[t]===1){e.pos++;return{type:"AtKeyword",name:scanWord(e)}}return maybeToken(e);case h:case g:case x:case u:case c:break;case T:t=e.nextCharCode();if(t<48||t>57){return maybeToken(e)}break;default:return maybeToken(e)}}function parse(e){var t=new n(e);var r=readImplicitGroup(t);if(t.pos!==e.length){t.error("Unexpected input")}if(r.terms.length===1&&r.terms[0].type==="Group"){r=r.terms[0]}return r}parse("[a&&#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!");e.exports=parse},18493:(e,t,r)=>{var n=r(5935);var i=9;var a=10;var o=12;var s=13;var l=32;var c=function(e){this.str=e;this.pos=0};c.prototype={charCodeAt:function(e){return e{var t=function(){};function ensureFunction(e){return typeof e==="function"?e:t}e.exports=function(e,r,n){function walk(e){i.call(n,e);switch(e.type){case"Group":e.terms.forEach(walk);break;case"Multiplier":walk(e.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+e.type)}a.call(n,e)}var i=t;var a=t;if(typeof r==="function"){i=r}else if(r){i=ensureFunction(r.enter);a=ensureFunction(r.leave)}if(i===t&&a===t){throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function")}walk(e,n)}},34570:(e,t,r)=>{var n=r(34650);var i=Object.prototype.hasOwnProperty;function processChildren(e,t){var r=e.children;var n=null;if(typeof t!=="function"){r.forEach(this.node,this)}else{r.forEach(function(e){if(n!==null){t.call(this,n)}this.node(e);n=e},this)}}e.exports=function createGenerator(e){function processNode(e){if(i.call(t,e.type)){t[e.type].call(this,e)}else{throw new Error("Unknown node type: "+e.type)}}var t={};if(e.node){for(var r in e.node){t[r]=e.node[r].generate}}return function(e,t){var r="";var i={children:processChildren,node:processNode,chunk:function(e){r+=e},result:function(){return r}};if(t){if(typeof t.decorator==="function"){i=t.decorator(i)}if(t.sourceMap){i=n(i)}}i.node(e);return i.result()}}},34650:(e,t,r)=>{var n=r(28265).h;var i={Atrule:true,Selector:true,Declaration:true};e.exports=function generateSourceMap(e){var t=new n;var r=1;var a=0;var o={line:1,column:0};var s={line:0,column:0};var l=false;var c={line:1,column:0};var u={generated:c};var d=e.node;e.node=function(e){if(e.loc&&e.loc.start&&i.hasOwnProperty(e.type)){var n=e.loc.start.line;var p=e.loc.start.column-1;if(s.line!==n||s.column!==p){s.line=n;s.column=p;o.line=r;o.column=a;if(l){l=false;if(o.line!==c.line||o.column!==c.column){t.addMapping(u)}}l=true;t.addMapping({source:e.loc.source,original:s,generated:o})}}d.call(this,e);if(l&&i.hasOwnProperty(e.type)){c.line=r;c.column=a}};var p=e.chunk;e.chunk=function(e){for(var t=0;t{e.exports=r(10572)},46218:(e,t,r)=>{var n=r(86279).SyntaxReferenceError;var i=r(86279).MatchError;var a=r(50411);var o=r(19040);var s=r(31617);var l=r(13423);var c=r(96718);var u=r(32211);var d=r(10879).buildMatchGraph;var p=r(73019).matchAsTree;var m=r(13810);var f=r(81975);var h=r(73169).getStructureFromConfig;var g=d("inherit | initial | unset");var y=d("inherit | initial | unset | <-ms-legacy-expression>");function dumpMapSyntax(e,t,r){var n={};for(var i in e){if(e[i].syntax){n[i]=r?e[i].syntax:l(e[i].syntax,{compact:t})}}return n}function valueHasVar(e){for(var t=0;t{e[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r);return e},{}):null}},addProperty_:function(e,t){this.properties[e]=this.createDescriptor(t,"Property",e)},addType_:function(e,t){this.types[e]=this.createDescriptor(t,"Type",e);if(t===o["-ms-legacy-expression"]){this.valueCommonSyntax=y}},matchAtrulePrelude:function(e,t){var r=a.keyword(e);var i=r.vendor?this.getAtrulePrelude(r.name)||this.getAtrulePrelude(r.basename):this.getAtrulePrelude(r.name);if(!i){if(r.basename in this.atrules){return buildMatchResult(null,new Error("At-rule `"+e+"` should not contain a prelude"))}return buildMatchResult(null,new n("Unknown at-rule",e))}return matchSyntax(this,i,t,true)},matchAtruleDescriptor:function(e,t,r){var i=a.keyword(e);var o=a.keyword(t);var s=i.vendor?this.atrules[i.name]||this.atrules[i.basename]:this.atrules[i.name];if(!s){return buildMatchResult(null,new n("Unknown at-rule",e))}if(!s.descriptors){return buildMatchResult(null,new Error("At-rule `"+e+"` has no known descriptors"))}var l=o.vendor?s.descriptors[o.name]||s.descriptors[o.basename]:s.descriptors[o.name];if(!l){return buildMatchResult(null,new n("Unknown at-rule descriptor",t))}return matchSyntax(this,l,r,true)},matchDeclaration:function(e){if(e.type!=="Declaration"){return buildMatchResult(null,new Error("Not a Declaration node"))}return this.matchProperty(e.property,e.value)},matchProperty:function(e,t){var r=a.property(e);if(r.custom){return buildMatchResult(null,new Error("Lexer matching doesn't applicable for custom properties"))}var i=r.vendor?this.getProperty(r.name)||this.getProperty(r.basename):this.getProperty(r.name);if(!i){return buildMatchResult(null,new n("Unknown property",e))}return matchSyntax(this,i,t,true)},matchType:function(e,t){var r=this.getType(e);if(!r){return buildMatchResult(null,new n("Unknown type",e))}return matchSyntax(this,r,t,false)},match:function(e,t){if(typeof e!=="string"&&(!e||!e.type)){return buildMatchResult(null,new n("Bad syntax"))}if(typeof e==="string"||!e.match){e=this.createDescriptor(e,"Type","anonymous")}return matchSyntax(this,e,t,false)},findValueFragments:function(e,t,r,n){return f.matchFragments(this,t,this.matchProperty(e,t),r,n)},findDeclarationValueFragments:function(e,t,r){return f.matchFragments(this,e.value,this.matchDeclaration(e),t,r)},findAllFragments:function(e,t,r){var n=[];this.syntax.walk(e,{visit:"Declaration",enter:function(e){n.push.apply(n,this.findDeclarationValueFragments(e,t,r))}.bind(this)});return n},getAtrulePrelude:function(e){return this.atrules.hasOwnProperty(e)?this.atrules[e].prelude:null},getAtruleDescriptor:function(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators?this.atrules[e].declarators[t]||null:null},getProperty:function(e){return this.properties.hasOwnProperty(e)?this.properties[e]:null},getType:function(e){return this.types.hasOwnProperty(e)?this.types[e]:null},validate:function(){function validate(r,n,i,a){if(i.hasOwnProperty(n)){return i[n]}i[n]=false;if(a.syntax!==null){c(a.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property"){return}var o=a.type==="Type"?r.types:r.properties;var s=a.type==="Type"?e:t;if(!o.hasOwnProperty(a.name)||validate(r,a.name,s,o[a.name])){i[n]=true}},this)}}var e={};var t={};for(var r in this.types){validate(this,r,e,this.types[r])}for(var r in this.properties){validate(this,r,t,this.properties[r])}e=Object.keys(e).filter(function(t){return e[t]});t=Object.keys(t).filter(function(e){return t[e]});if(e.length||t.length){return{types:e,properties:t}}return null},dump:function(e,t){return{generic:this.generic,types:dumpMapSyntax(this.types,!t,e),properties:dumpMapSyntax(this.properties,!t,e)}},toString:function(){return JSON.stringify(this.dump())}};e.exports=v},86279:(e,t,r)=>{var n=r(89308);var i=r(13423);function fromMatchResult(e){var t=e.tokens;var r=e.longestMatch;var n=r1}}function getLocation(e,t){var r=e&&e.loc&&e.loc[t];if(r){return{offset:r.offset,line:r.line,column:r.column}}return null}var a=function(e,t){var r=n("SyntaxReferenceError",e+(t?" `"+t+"`":""));r.reference=t;return r};var o=function(e,t,r,a){var o=n("SyntaxMatchError",e);var s=fromMatchResult(a);var l=s.mismatchOffset||0;var c=s.node||r;var u=getLocation(c,"end");var d=s.last?u:getLocation(c,"start");var p=s.css;o.rawMessage=e;o.syntax=t?i(t):"";o.css=p;o.mismatchOffset=l;o.loc={source:c&&c.loc&&c.loc.source||"",start:d,end:u};o.line=d?d.line:undefined;o.column=d?d.column:undefined;o.offset=d?d.offset:undefined;o.message=e+"\n"+" syntax: "+o.syntax+"\n"+" value: "+(o.css||"")+"\n"+" --------"+new Array(o.mismatchOffset+1).join("-")+"^";return o};e.exports={SyntaxReferenceError:a,MatchError:o}},56215:(e,t,r)=>{var n=r(22802).isDigit;var i=r(22802).cmpChar;var a=r(22802).TYPE;var o=a.Delim;var s=a.WhiteSpace;var l=a.Comment;var c=a.Ident;var u=a.Number;var d=a.Dimension;var p=43;var m=45;var f=110;var h=true;var g=false;function isDelim(e,t){return e!==null&&e.type===o&&e.value.charCodeAt(0)===t}function skipSC(e,t,r){while(e!==null&&(e.type===s||e.type===l)){e=r(++t)}return t}function checkInteger(e,t,r,i){if(!e){return 0}var a=e.value.charCodeAt(t);if(a===p||a===m){if(r){return 0}t++}for(;t{var n=r(22802).isHexDigit;var i=r(22802).cmpChar;var a=r(22802).TYPE;var o=a.Ident;var s=a.Delim;var l=a.Number;var c=a.Dimension;var u=43;var d=45;var p=63;var m=117;function isDelim(e,t){return e!==null&&e.type===s&&e.value.charCodeAt(0)===t}function startsWith(e,t){return e.value.charCodeAt(0)===t}function hexSequence(e,t,r){for(var i=t,a=0;i0){return 6}return 0}if(!n(o)){return 0}if(++a>6){return 0}}return a}function withQuestionMarkSequence(e,t,r){if(!e){return 0}while(isDelim(r(t),p)){if(++e>6){return 0}t++}return t}e.exports=function urange(e,t){var r=0;if(e===null||e.type!==o||!i(e.value,0,m)){return 0}e=t(++r);if(e===null){return 0}if(isDelim(e,u)){e=t(++r);if(e===null){return 0}if(e.type===o){return withQuestionMarkSequence(hexSequence(e,0,true),++r,t)}if(isDelim(e,p)){return withQuestionMarkSequence(1,++r,t)}return 0}if(e.type===l){if(!startsWith(e,u)){return 0}var n=hexSequence(e,1,true);if(n===0){return 0}e=t(++r);if(e===null){return r}if(e.type===c||e.type===l){if(!startsWith(e,d)||!hexSequence(e,1,false)){return 0}return r+1}return withQuestionMarkSequence(n,r,t)}if(e.type===c){if(!startsWith(e,u)){return 0}return withQuestionMarkSequence(hexSequence(e,1,true),++r,t)}return 0}},19040:(e,t,r)=>{var n=r(22802);var i=n.isIdentifierStart;var a=n.isHexDigit;var o=n.isDigit;var s=n.cmpStr;var l=n.consumeNumber;var c=n.TYPE;var u=r(56215);var d=r(21750);var p=["unset","initial","inherit"];var m=["calc(","-moz-calc(","-webkit-calc("];var f={px:true,mm:true,cm:true,in:true,pt:true,pc:true,q:true,em:true,ex:true,ch:true,rem:true,vh:true,vw:true,vmin:true,vmax:true,vm:true};var h={deg:true,grad:true,rad:true,turn:true};var g={s:true,ms:true};var y={hz:true,khz:true};var v={dpi:true,dpcm:true,dppx:true,x:true};var b={fr:true};var S={db:true};var x={st:true};function charCode(e,t){return te.max){return true}}return false}function consumeFunction(e,t){var r=e.index;var n=0;do{n++;if(e.balance<=r){break}}while(e=t(n));return n}function calc(e){return function(t,r,n){if(t===null){return 0}if(t.type===c.Function&&eqStrAny(t.value,m)){return consumeFunction(t,r)}return e(t,r,n)}}function tokenType(e){return function(t){if(t===null||t.type!==e){return 0}return 1}}function func(e){e=e+"(";return function(t,r){if(t!==null&&eqStr(t.value,e)){return consumeFunction(t,r)}return 0}}function customIdent(e){if(e===null||e.type!==c.Ident){return 0}var t=e.value.toLowerCase();if(eqStrAny(t,p)){return 0}if(eqStr(t,"default")){return 0}return 1}function customPropertyName(e){if(e===null||e.type!==c.Ident){return 0}if(charCode(e.value,0)!==45||charCode(e.value,1)!==45){return 0}return 1}function hexColor(e){if(e===null||e.type!==c.Hash){return 0}var t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9){return 0}for(var r=1;re.index||e.balancee.index||e.balance{var n=r(31617);var i={type:"Match"};var a={type:"Mismatch"};var o={type:"DisallowEmpty"};var s=40;var l=41;function createCondition(e,t,r){if(t===i&&r===a){return e}if(e===i&&t===i&&r===i){return e}if(e.type==="If"&&e.else===a&&t===i){t=e.then;e=e.match}return{type:"If",match:e,then:t,else:r}}function isFunctionType(e){return e.length>2&&e.charCodeAt(e.length-2)===s&&e.charCodeAt(e.length-1)===l}function isEnumCapatible(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&isFunctionType(e.name)}function buildGroupMatchGraph(e,t,r){switch(e){case" ":var n=i;for(var o=t.length-1;o>=0;o--){var s=t[o];n=createCondition(s,n,a)};return n;case"|":var n=a;var l=null;for(var o=t.length-1;o>=0;o--){var s=t[o];if(isEnumCapatible(s)){if(l===null&&o>0&&isEnumCapatible(t[o-1])){l=Object.create(null);n=createCondition({type:"Enum",map:l},i,n)}if(l!==null){var c=(isFunctionType(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(c in l===false){l[c]=s;continue}}}l=null;n=createCondition(s,i,n)};return n;case"&&":if(t.length>5){return{type:"MatchOnce",terms:t,all:true}}var n=a;for(var o=t.length-1;o>=0;o--){var s=t[o];var u;if(t.length>1){u=buildGroupMatchGraph(e,t.filter(function(e){return e!==s}),false)}else{u=i}n=createCondition(s,u,n)};return n;case"||":if(t.length>5){return{type:"MatchOnce",terms:t,all:false}}var n=r?i:a;for(var o=t.length-1;o>=0;o--){var s=t[o];var u;if(t.length>1){u=buildGroupMatchGraph(e,t.filter(function(e){return e!==s}),true)}else{u=i}n=createCondition(s,u,n)};return n}}function buildMultiplierMatchGraph(e){var t=i;var r=buildMatchGraph(e.term);if(e.max===0){r=createCondition(r,o,a);t=createCondition(r,null,a);t.then=createCondition(i,i,t);if(e.comma){t.then.else=createCondition({type:"Comma",syntax:e},t,a)}}else{for(var n=e.min||1;n<=e.max;n++){if(e.comma&&t!==i){t=createCondition({type:"Comma",syntax:e},t,a)}t=createCondition(r,createCondition(i,i,t),a)}}if(e.min===0){t=createCondition(i,i,t)}else{for(var n=0;n{var n=Object.prototype.hasOwnProperty;var i=r(10879);var a=i.MATCH;var o=i.MISMATCH;var s=i.DISALLOW_EMPTY;var l=r(48600).TYPE;var c=0;var u=1;var d=2;var p=3;var m="Match";var f="Mismatch";var h="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)";var g=15e3;var y=0;function reverseList(e){var t=null;var r=null;var n=e;while(n!==null){r=n.prev;n.prev=t;t=n;n=r}return t}function areStringsEqualCaseInsensitive(e,t){if(e.length!==t.length){return false}for(var r=0;r=65&&n<=90){n=n|32}if(n!==i){return false}}return true}function isCommaContextStart(e){if(e===null){return true}return e.type===l.Comma||e.type===l.Function||e.type===l.LeftParenthesis||e.type===l.LeftSquareBracket||e.type===l.LeftCurlyBracket||e.type===l.Delim}function isCommaContextEnd(e){if(e===null){return true}return e.type===l.RightParenthesis||e.type===l.RightSquareBracket||e.type===l.RightCurlyBracket||e.type===l.Delim}function internalMatch(e,t,r){function moveToNextToken(){do{k++;C=kT){T=k}}function openSyntax(){i={syntax:t.syntax,opts:t.syntax.opts||i!==null&&i.opts||null,prev:i};E={type:d,syntax:t.syntax,token:E.token,prev:E}}function closeSyntax(){if(E.type===d){E=E.prev}else{E={type:p,syntax:i.syntax,token:E.token,prev:E}}i=i.prev}var i=null;var v=null;var b=null;var S=null;var x=0;var w=null;var C=null;var k=-1;var T=0;var E={type:c,syntax:null,token:null,prev:null};moveToNextToken();while(w===null&&++xb.tokenIndex){b=S;S=false}}else if(b===null){w=f;break}t=b.nextState;v=b.thenStack;i=b.syntaxStack;E=b.matchStack;k=b.tokenIndex;C=kk){while(k<_){addTokenToMatch()}t=a}else{t=o}break;case"Type":case"Property":var W=t.type==="Type"?"types":"properties";var q=n.call(r,W)?r[W][t.name]:null;if(!q||!q.match){throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"))}if(S!==false&&C!==null&&t.type==="Type"){var B=t.name==="custom-ident"&&C.type===l.Ident||t.name==="length"&&C.value==="0";if(B){if(S===null){S=stateSnapshotFromSyntax(t,b)}t=o;break}}openSyntax();t=q.match;break;case"Keyword":var z=t.name;if(C!==null){var R=C.value;if(R.indexOf("\\")!==-1){R=R.replace(/\\[09].*$/,"")}if(areStringsEqualCaseInsensitive(R,z)){addTokenToMatch();t=a;break}}t=o;break;case"AtKeyword":case"Function":if(C!==null&&areStringsEqualCaseInsensitive(C.value,t.name)){addTokenToMatch();t=a;break}t=o;break;case"Token":if(C!==null&&C.value===t.value){addTokenToMatch();t=a;break}t=o;break;case"Comma":if(C!==null&&C.type===l.Comma){if(isCommaContextStart(E.token)){t=o}else{addTokenToMatch();t=isCommaContextEnd(C)?o:a}}else{t=isCommaContextStart(E.token)||isCommaContextEnd(C)?a:o}break;case"String":var L="";for(var _=k;_{var n=r(22802);var i=r(34884);var a=new i;var o={decorator:function(e){var t=null;var r={len:0,node:null};var n=[r];var i="";return{children:e.children,node:function(r){var n=t;t=r;e.node.call(this,r);t=n},chunk:function(e){i+=e;if(r.node!==t){n.push({len:e.length,node:t})}else{r.len+=e.length}},result:function(){return prepareTokens(i,n)}}}};function prepareTokens(e,t){var r=[];var i=0;var o=0;var s=t?t[o].node:null;n(e,a);while(!a.eof){if(t){while(o{var n=r(35855);function getFirstMatchNode(e){if("node"in e){return e.node}return getFirstMatchNode(e.match[0])}function getLastMatchNode(e){if("node"in e){return e.node}return getLastMatchNode(e.match[e.match.length-1])}function matchFragments(e,t,r,i,a){function findFragments(r){if(r.syntax!==null&&r.syntax.type===i&&r.syntax.name===a){var s=getFirstMatchNode(r);var l=getLastMatchNode(r);e.syntax.walk(t,function(e,t,r){if(e===s){var i=new n;do{i.appendData(t.data);if(t.data===l){break}t=t.next}while(t!==null);o.push({parent:r,nodes:i})}})}if(Array.isArray(r.match)){r.match.forEach(findFragments)}}var o=[];if(r.matched!==null){findFragments(r.matched)}return o}e.exports={matchFragments:matchFragments}},73169:(e,t,r)=>{var n=r(35855);var i=Object.prototype.hasOwnProperty;function isValidNumber(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function isValidLocation(e){return Boolean(e)&&isValidNumber(e.offset)&&isValidNumber(e.line)&&isValidNumber(e.column)}function createNodeStructureChecker(e,t){return function checkNode(r,a){if(!r||r.constructor!==Object){return a(r,"Type of node should be an Object")}for(var o in r){var s=true;if(i.call(r,o)===false){continue}if(o==="type"){if(r.type!==e){a(r,"Wrong node type `"+r.type+"`, expected `"+e+"`")}}else if(o==="loc"){if(r.loc===null){continue}else if(r.loc&&r.loc.constructor===Object){if(typeof r.loc.source!=="string"){o+=".source"}else if(!isValidLocation(r.loc.start)){o+=".start"}else if(!isValidLocation(r.loc.end)){o+=".end"}else{continue}}s=false}else if(t.hasOwnProperty(o)){for(var l=0,s=false;!s&&l")}else if(Array.isArray(u)){s.push("List")}else{throw new Error("Wrong value `"+u+"` in `"+e+"."+o+"` structure definition")}}a[o]=s.join(" | ")}return{docs:a,check:createNodeStructureChecker(e,n)}}e.exports={getStructureFromConfig:function(e){var t={};if(e.node){for(var r in e.node){if(i.call(e.node,r)){var n=e.node[r];if(n.structure){t[r]=processStructure(r,n)}else{throw new Error("Missed `structure` field in `"+r+"` node type definition")}}}}return t}}},13810:e=>{function getTrace(e){function shouldPutToTrace(e){if(e===null){return false}return e.type==="Type"||e.type==="Property"||e.type==="Keyword"}function hasMatch(r){if(Array.isArray(r.match)){for(var n=0;n{var n=r(25892);var i=r(29032);var a=r(34884);var o=r(35855);var s=r(22802);var l=r(48600);var c=r(74501).findWhiteSpaceStart;var u=r(69294);var d=function(){};var p=l.TYPE;var m=l.NAME;var f=p.WhiteSpace;var h=p.Ident;var g=p.Function;var y=p.Url;var v=p.Hash;var b=p.Percentage;var S=p.Number;var x=35;var w=0;function createParseContext(e){return function(){return this[e]()}}function processConfig(e){var t={context:{},scope:{},atrule:{},pseudo:{}};if(e.parseContext){for(var r in e.parseContext){switch(typeof e.parseContext[r]){case"function":t.context[r]=e.parseContext[r];break;case"string":t.context[r]=createParseContext(e.parseContext[r]);break}}}if(e.scope){for(var r in e.scope){t.scope[r]=e.scope[r]}}if(e.atrule){for(var r in e.atrule){var n=e.atrule[r];if(n.parse){t.atrule[r]=n.parse}}}if(e.pseudo){for(var r in e.pseudo){var i=e.pseudo[r];if(i.parse){t.pseudo[r]=i.parse}}}if(e.node){for(var r in e.node){t[r]=e.node[r].parse}}return t}e.exports=function createParser(e){var t={scanner:new a,locationMap:new n,filename:"",needPositions:false,onParseError:d,onParseErrorThrow:false,parseAtrulePrelude:true,parseRulePrelude:true,parseValue:true,parseCustomProperty:false,readSequence:u,createList:function(){return new o},createSingleNodeList:function(e){return(new o).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,t){var r=this.scanner.tokenIndex;try{return e.call(this)}catch(e){if(this.onParseErrorThrow){throw e}var n=t.call(this,r);this.onParseErrorThrow=true;this.onParseError(e,n);this.onParseErrorThrow=false;return n}},lookupNonWSType:function(e){do{var t=this.scanner.lookupType(e++);if(t!==f){return t}}while(t!==w);return w},eat:function(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart;var r=m[e]+" is expected";switch(e){case h:if(this.scanner.tokenType===g||this.scanner.tokenType===y){t=this.scanner.tokenEnd-1;r="Identifier is expected but function found"}else{r="Identifier is expected"}break;case v:if(this.scanner.isDelim(x)){this.scanner.next();t++;r="Name is expected"}break;case b:if(this.scanner.tokenType===S){t=this.scanner.tokenEnd;r="Percent sign is expected"}break;default:if(this.scanner.source.charCodeAt(this.scanner.tokenStart)===e){t=t+1}}this.error(r,t)}this.scanner.next()},consume:function(e){var t=this.scanner.getTokenValue();this.eat(e);return t},consumeFunctionName:function(){var e=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);this.eat(g);return e},getLocation:function(e,t){if(this.needPositions){return this.locationMap.getLocationRange(e,t,this.filename)}return null},getLocationFromList:function(e){if(this.needPositions){var t=this.getFirstListNode(e);var r=this.getLastListNode(e);return this.locationMap.getLocationRange(t!==null?t.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,r!==null?r.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(e,t){var r=typeof t!=="undefined"&&t";t.needPositions=Boolean(r.positions);t.onParseError=typeof r.onParseError==="function"?r.onParseError:d;t.onParseErrorThrow=false;t.parseAtrulePrelude="parseAtrulePrelude"in r?Boolean(r.parseAtrulePrelude):true;t.parseRulePrelude="parseRulePrelude"in r?Boolean(r.parseRulePrelude):true;t.parseValue="parseValue"in r?Boolean(r.parseValue):true;t.parseCustomProperty="parseCustomProperty"in r?Boolean(r.parseCustomProperty):false;if(!t.context.hasOwnProperty(n)){throw new Error("Unknown context `"+n+"`")}i=t.context[n].call(t,r);if(!t.scanner.eof){t.error()}return i}}},69294:(e,t,r)=>{var n=r(22802).TYPE;var i=n.WhiteSpace;var a=n.Comment;e.exports=function readSequence(e){var t=this.createList();var r=null;var n={recognizer:e,space:null,ignoreWS:false,ignoreWSAfter:false};this.scanner.skipSC();while(!this.scanner.eof){switch(this.scanner.tokenType){case a:this.scanner.next();continue;case i:if(n.ignoreWS){this.scanner.next()}else{n.space=this.WhiteSpace()}continue}r=e.getNode.call(this,n);if(r===undefined){break}if(n.space!==null){t.push(n.space);n.space=null}t.push(r);if(n.ignoreWSAfter){n.ignoreWSAfter=false;n.ignoreWS=true}else{n.ignoreWS=false}}return t}},33132:e=>{e.exports={parse:{prelude:null,block:function(){return this.Block(true)}}}},12610:(e,t,r)=>{var n=r(22802).TYPE;var i=n.String;var a=n.Ident;var o=n.Url;var s=n.Function;var l=n.LeftParenthesis;e.exports={parse:{prelude:function(){var e=this.createList();this.scanner.skipSC();switch(this.scanner.tokenType){case i:e.push(this.String());break;case o:case s:e.push(this.Url());break;default:this.error("String or url() is expected")}if(this.lookupNonWSType(0)===a||this.lookupNonWSType(0)===l){e.push(this.WhiteSpace());e.push(this.MediaQueryList())}return e},block:null}}},24445:(e,t,r)=>{e.exports={"font-face":r(33132),import:r(12610),media:r(40042),page:r(11118),supports:r(90352)}},40042:e=>{e.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(false)}}}},11118:e=>{e.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(true)}}}},90352:(e,t,r)=>{var n=r(22802).TYPE;var i=n.WhiteSpace;var a=n.Comment;var o=n.Ident;var s=n.Function;var l=n.Colon;var c=n.LeftParenthesis;function consumeRaw(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,false))}function parentheses(){this.scanner.skipSC();if(this.scanner.tokenType===o&&this.lookupNonWSType(1)===l){return this.createSingleNodeList(this.Declaration())}return readSequence.call(this)}function readSequence(){var e=this.createList();var t=null;var r;this.scanner.skipSC();e:while(!this.scanner.eof){switch(this.scanner.tokenType){case i:t=this.WhiteSpace();continue;case a:this.scanner.next();continue;case s:r=this.Function(consumeRaw,this.scope.AtrulePrelude);break;case o:r=this.Identifier();break;case c:r=this.Parentheses(parentheses,this.scope.AtrulePrelude);break;default:break e}if(t!==null){e.push(t);t=null}e.push(r)}return e}e.exports={parse:{prelude:function(){var e=readSequence.call(this);if(this.getFirstListNode(e)===null){this.error("Condition is expected")}return e},block:function(){return this.Block(false)}}}},65776:(e,t,r)=>{var n=r(63965);e.exports={generic:true,types:n.types,atrules:n.atrules,properties:n.properties,node:r(48362)}},33872:e=>{var t=Object.prototype.hasOwnProperty;var r={generic:true,types:{},atrules:{},properties:{},parseContext:{},scope:{},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function isObject(e){return e&&e.constructor===Object}function copy(e){if(isObject(e)){return Object.assign({},e)}else{return e}}function extend(e,r){for(var n in r){if(t.call(r,n)){if(isObject(e[n])){extend(e[n],copy(r[n]))}else{e[n]=copy(r[n])}}}}function mix(e,r,n){for(var i in n){if(t.call(n,i)===false){continue}if(n[i]===true){if(i in r){if(t.call(r,i)){e[i]=copy(r[i])}}}else if(n[i]){if(isObject(n[i])){var a={};extend(a,e[i]);extend(a,r[i]);e[i]=a}else if(Array.isArray(n[i])){var a={};var o=n[i].reduce(function(e,t){e[t]=true;return e},{});for(var s in e[i]){if(t.call(e[i],s)){a[s]={};if(e[i]&&e[i][s]){mix(a[s],e[i][s],o)}}}for(var s in r[i]){if(t.call(r[i],s)){if(!a[s]){a[s]={}}if(r[i]&&r[i][s]){mix(a[s],r[i][s],o)}}}e[i]=a}}}return e}e.exports=function(e,t){return mix(e,t,r)}},34025:(e,t,r)=>{e.exports={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(true)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:r(64610),atrule:r(24445),pseudo:r(19732),node:r(48362)}},50263:(e,t,r)=>{e.exports={node:r(48362)}},14712:(e,t,r)=>{var n=r(35855);var i=r(29032);var a=r(34884);var o=r(46218);var s=r(57596);var l=r(22802);var c=r(14122);var u=r(34570);var d=r(83949);var p=r(57514);var m=r(39702);var f=r(50411);var h=r(33872);function createSyntax(e){var t=c(e);var r=p(e);var g=u(e);var y=d(r);var v={List:n,SyntaxError:i,TokenStream:a,Lexer:o,vendorPrefix:f.vendorPrefix,keyword:f.keyword,property:f.property,isCustomProperty:f.isCustomProperty,definitionSyntax:s,lexer:null,createLexer:function(e){return new o(e,v,v.lexer.structure)},tokenize:l,parse:t,walk:r,generate:g,find:r.find,findLast:r.findLast,findAll:r.findAll,clone:m,fromPlainObject:y.fromPlainObject,toPlainObject:y.toPlainObject,createSyntax:function(e){return createSyntax(h({},e))},fork:function(t){var r=h({},e);return createSyntax(typeof t==="function"?t(r,Object.assign):h(r,t))}};v.lexer=new o({generic:true,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},v);return v}t.create=function(e){return createSyntax(h({},e))}},21960:e=>{e.exports=function(){this.scanner.skipSC();var e=this.createSingleNodeList(this.IdSelector());this.scanner.skipSC();return e}},97372:e=>{e.exports=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,false))}},67348:(e,t,r)=>{var n=r(22802).TYPE;var i=r(1797).mode;var a=n.Comma;e.exports=function(){var e=this.createList();this.scanner.skipSC();e.push(this.Identifier());this.scanner.skipSC();if(this.scanner.tokenType===a){e.push(this.Operator());e.push(this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,i.exclamationMarkOrSemicolon,false))}return e}},10572:(e,t,r)=>{function merge(){var e={};for(var t=0;t{var n=r(22802).cmpChar;var i=r(22802).isDigit;var a=r(22802).TYPE;var o=a.WhiteSpace;var s=a.Comment;var l=a.Ident;var c=a.Number;var u=a.Dimension;var d=43;var p=45;var m=110;var f=true;var h=false;function checkInteger(e,t){var r=this.scanner.tokenStart+e;var n=this.scanner.source.charCodeAt(r);if(n===d||n===p){if(t){this.error("Number sign is not allowed")}r++}for(;r0){this.scanner.skip(e)}if(t===0){r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r!==d&&r!==p){this.error("Number sign is expected")}}checkTokenIsInteger.call(this,t!==0);return t===p?"-"+this.consume(c):this.consume(c)}e.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var e=this.scanner.tokenStart;var t=null;var r=null;if(this.scanner.tokenType===c){checkTokenIsInteger.call(this,h);r=this.consume(c)}else if(this.scanner.tokenType===l&&n(this.scanner.source,this.scanner.tokenStart,p)){t="-1";expectCharCode.call(this,1,m);switch(this.scanner.getTokenLength()){case 2:this.scanner.next();r=consumeB.call(this);break;case 3:expectCharCode.call(this,2,p);this.scanner.next();this.scanner.skipSC();checkTokenIsInteger.call(this,f);r="-"+this.consume(c);break;default:expectCharCode.call(this,2,p);checkInteger.call(this,3,f);this.scanner.next();r=this.scanner.substrToCursor(e+2)}}else if(this.scanner.tokenType===l||this.scanner.isDelim(d)&&this.scanner.lookupType(1)===l){var a=0;t="1";if(this.scanner.isDelim(d)){a=1;this.scanner.next()}expectCharCode.call(this,0,m);switch(this.scanner.getTokenLength()){case 1:this.scanner.next();r=consumeB.call(this);break;case 2:expectCharCode.call(this,1,p);this.scanner.next();this.scanner.skipSC();checkTokenIsInteger.call(this,f);r="-"+this.consume(c);break;default:expectCharCode.call(this,1,p);checkInteger.call(this,2,f);this.scanner.next();r=this.scanner.substrToCursor(e+a+1)}}else if(this.scanner.tokenType===u){var o=this.scanner.source.charCodeAt(this.scanner.tokenStart);var a=o===d||o===p;for(var s=this.scanner.tokenStart+a;s{var n=r(22802).TYPE;var i=r(1797).mode;var a=n.AtKeyword;var o=n.Semicolon;var s=n.LeftCurlyBracket;var l=n.RightCurlyBracket;function consumeRaw(e){return this.Raw(e,i.leftCurlyBracketOrSemicolon,true)}function isDeclarationBlockAtrule(){for(var e=1,t;t=this.scanner.lookupType(e);e++){if(t===l){return true}if(t===s||t===a){return false}}return false}e.exports={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var e=this.scanner.tokenStart;var t;var r;var n=null;var i=null;this.eat(a);t=this.scanner.substrToCursor(e+1);r=t.toLowerCase();this.scanner.skipSC();if(this.scanner.eof===false&&this.scanner.tokenType!==s&&this.scanner.tokenType!==o){if(this.parseAtrulePrelude){n=this.parseWithFallback(this.AtrulePrelude.bind(this,t),consumeRaw);if(n.type==="AtrulePrelude"&&n.children.head===null){n=null}}else{n=consumeRaw.call(this,this.scanner.tokenIndex)}this.scanner.skipSC()}switch(this.scanner.tokenType){case o:this.scanner.next();break;case s:if(this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block==="function"){i=this.atrule[r].block.call(this)}else{i=this.Block(isDeclarationBlockAtrule.call(this))}break}return{type:"Atrule",loc:this.getLocation(e,this.scanner.tokenStart),name:t,prelude:n,block:i}},generate:function(e){this.chunk("@");this.chunk(e.name);if(e.prelude!==null){this.chunk(" ");this.node(e.prelude)}if(e.block){this.node(e.block)}else{this.chunk(";")}},walkContext:"atrule"}},41959:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Semicolon;var a=n.LeftCurlyBracket;e.exports={name:"AtrulePrelude",structure:{children:[[]]},parse:function(e){var t=null;if(e!==null){e=e.toLowerCase()}this.scanner.skipSC();if(this.atrule.hasOwnProperty(e)&&typeof this.atrule[e].prelude==="function"){t=this.atrule[e].prelude.call(this)}else{t=this.readSequence(this.scope.AtrulePrelude)}this.scanner.skipSC();if(this.scanner.eof!==true&&this.scanner.tokenType!==a&&this.scanner.tokenType!==i){this.error("Semicolon or block is expected")}if(t===null){t=this.createList()}return{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e)},walkContext:"atrulePrelude"}},28543:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Ident;var a=n.String;var o=n.Colon;var s=n.LeftSquareBracket;var l=n.RightSquareBracket;var c=36;var u=42;var d=61;var p=94;var m=124;var f=126;function getAttributeName(){if(this.scanner.eof){this.error("Unexpected end of input")}var e=this.scanner.tokenStart;var t=false;var r=true;if(this.scanner.isDelim(u)){t=true;r=false;this.scanner.next()}else if(!this.scanner.isDelim(m)){this.eat(i)}if(this.scanner.isDelim(m)){if(this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==d){this.scanner.next();this.eat(i)}else if(t){this.error("Identifier is expected",this.scanner.tokenEnd)}}else if(t){this.error("Vertical line is expected")}if(r&&this.scanner.tokenType===o){this.scanner.next();this.eat(i)}return{type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}}function getOperator(){var e=this.scanner.tokenStart;var t=this.scanner.source.charCodeAt(e);if(t!==d&&t!==f&&t!==p&&t!==c&&t!==u&&t!==m){this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected")}this.scanner.next();if(t!==d){if(!this.scanner.isDelim(d)){this.error("Equal sign is expected")}this.scanner.next()}return this.scanner.substrToCursor(e)}e.exports={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var e=this.scanner.tokenStart;var t;var r=null;var n=null;var o=null;this.eat(s);this.scanner.skipSC();t=getAttributeName.call(this);this.scanner.skipSC();if(this.scanner.tokenType!==l){if(this.scanner.tokenType!==i){r=getOperator.call(this);this.scanner.skipSC();n=this.scanner.tokenType===a?this.String():this.Identifier();this.scanner.skipSC()}if(this.scanner.tokenType===i){o=this.scanner.getTokenValue();this.scanner.next();this.scanner.skipSC()}}this.eat(l);return{type:"AttributeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:t,matcher:r,value:n,flags:o}},generate:function(e){var t=" ";this.chunk("[");this.node(e.name);if(e.matcher!==null){this.chunk(e.matcher);if(e.value!==null){this.node(e.value);if(e.value.type==="String"){t=""}}}if(e.flags!==null){this.chunk(t);this.chunk(e.flags)}this.chunk("]")}}},28874:(e,t,r)=>{var n=r(22802).TYPE;var i=r(1797).mode;var a=n.WhiteSpace;var o=n.Comment;var s=n.Semicolon;var l=n.AtKeyword;var c=n.LeftCurlyBracket;var u=n.RightCurlyBracket;function consumeRaw(e){return this.Raw(e,null,true)}function consumeRule(){return this.parseWithFallback(this.Rule,consumeRaw)}function consumeRawDeclaration(e){return this.Raw(e,i.semicolonIncluded,true)}function consumeDeclaration(){if(this.scanner.tokenType===s){return consumeRawDeclaration.call(this,this.scanner.tokenIndex)}var e=this.parseWithFallback(this.Declaration,consumeRawDeclaration);if(this.scanner.tokenType===s){this.scanner.next()}return e}e.exports={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(e){var t=e?consumeDeclaration:consumeRule;var r=this.scanner.tokenStart;var n=this.createList();this.eat(c);e:while(!this.scanner.eof){switch(this.scanner.tokenType){case u:break e;case a:case o:this.scanner.next();break;case l:n.push(this.parseWithFallback(this.Atrule,consumeRaw));break;default:n.push(t.call(this))}}if(!this.scanner.eof){this.eat(u)}return{type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("{");this.children(e,function(e){if(e.type==="Declaration"){this.chunk(";")}});this.chunk("}")},walkContext:"block"}},97033:(e,t,r)=>{var n=r(22802).TYPE;var i=n.LeftSquareBracket;var a=n.RightSquareBracket;e.exports={name:"Brackets",structure:{children:[[]]},parse:function(e,t){var r=this.scanner.tokenStart;var n=null;this.eat(i);n=e.call(this,t);if(!this.scanner.eof){this.eat(a)}return{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("[");this.children(e);this.chunk("]")}}},6962:(e,t,r)=>{var n=r(22802).TYPE.CDC;e.exports={name:"CDC",structure:[],parse:function(){var e=this.scanner.tokenStart;this.eat(n);return{type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}}},58368:(e,t,r)=>{var n=r(22802).TYPE.CDO;e.exports={name:"CDO",structure:[],parse:function(){var e=this.scanner.tokenStart;this.eat(n);return{type:"CDO",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}}},84043:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Ident;var a=46;e.exports={name:"ClassSelector",structure:{name:String},parse:function(){if(!this.scanner.isDelim(a)){this.error("Full stop is expected")}this.scanner.next();return{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(i)}},generate:function(e){this.chunk(".");this.chunk(e.name)}}},40306:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Ident;var a=43;var o=47;var s=62;var l=126;e.exports={name:"Combinator",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(t){case s:case a:case l:this.scanner.next();break;case o:this.scanner.next();if(this.scanner.tokenType!==i||this.scanner.lookupValue(0,"deep")===false){this.error("Identifier `deep` is expected")}this.scanner.next();if(!this.scanner.isDelim(o)){this.error("Solidus is expected")}this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},12030:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Comment;var a=42;var o=47;e.exports={name:"Comment",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;var t=this.scanner.tokenEnd;this.eat(i);if(t-e+2>=2&&this.scanner.source.charCodeAt(t-2)===a&&this.scanner.source.charCodeAt(t-1)===o){t-=2}return{type:"Comment",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e+2,t)}},generate:function(e){this.chunk("/*");this.chunk(e.value);this.chunk("*/")}}},85319:(e,t,r)=>{var n=r(50411).isCustomProperty;var i=r(22802).TYPE;var a=r(1797).mode;var o=i.Ident;var s=i.Hash;var l=i.Colon;var c=i.Semicolon;var u=i.Delim;var d=33;var p=35;var m=36;var f=38;var h=42;var g=43;var y=47;function consumeValueRaw(e){return this.Raw(e,a.exclamationMarkOrSemicolon,true)}function consumeCustomPropertyRaw(e){return this.Raw(e,a.exclamationMarkOrSemicolon,false)}function consumeValue(){var e=this.scanner.tokenIndex;var t=this.Value();if(t.type!=="Raw"&&this.scanner.eof===false&&this.scanner.tokenType!==c&&this.scanner.isDelim(d)===false&&this.scanner.isBalanceEdge(e)===false){this.error()}return t}e.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var e=this.scanner.tokenStart;var t=this.scanner.tokenIndex;var r=readProperty.call(this);var i=n(r);var a=i?this.parseCustomProperty:this.parseValue;var o=i?consumeCustomPropertyRaw:consumeValueRaw;var s=false;var u;this.scanner.skipSC();this.eat(l);if(!i){this.scanner.skipSC()}if(a){u=this.parseWithFallback(consumeValue,o)}else{u=o.call(this,this.scanner.tokenIndex)}if(this.scanner.isDelim(d)){s=getImportant.call(this);this.scanner.skipSC()}if(this.scanner.eof===false&&this.scanner.tokenType!==c&&this.scanner.isBalanceEdge(t)===false){this.error()}return{type:"Declaration",loc:this.getLocation(e,this.scanner.tokenStart),important:s,property:r,value:u}},generate:function(e){this.chunk(e.property);this.chunk(":");this.node(e.value);if(e.important){this.chunk(e.important===true?"!important":"!"+e.important)}},walkContext:"declaration"};function readProperty(){var e=this.scanner.tokenStart;var t=0;if(this.scanner.tokenType===u){switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case h:case m:case g:case p:case f:this.scanner.next();break;case y:this.scanner.next();if(this.scanner.isDelim(y)){this.scanner.next()}break}}if(t){this.scanner.skip(t)}if(this.scanner.tokenType===s){this.eat(s)}else{this.eat(o)}return this.scanner.substrToCursor(e)}function getImportant(){this.eat(u);this.scanner.skipSC();var e=this.consume(o);return e==="important"?true:e}},55745:(e,t,r)=>{var n=r(22802).TYPE;var i=r(1797).mode;var a=n.WhiteSpace;var o=n.Comment;var s=n.Semicolon;function consumeRaw(e){return this.Raw(e,i.semicolonIncluded,true)}e.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){var e=this.createList();e:while(!this.scanner.eof){switch(this.scanner.tokenType){case a:case o:case s:this.scanner.next();break;default:e.push(this.parseWithFallback(this.Declaration,consumeRaw))}}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,function(e){if(e.type==="Declaration"){this.chunk(";")}})}}},35824:(e,t,r)=>{var n=r(74501).consumeNumber;var i=r(22802).TYPE;var a=i.Dimension;e.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart;var t=n(this.scanner.source,e);this.eat(a);return{type:"Dimension",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t),unit:this.scanner.source.substring(t,this.scanner.tokenStart)}},generate:function(e){this.chunk(e.value);this.chunk(e.unit)}}},79802:(e,t,r)=>{var n=r(22802).TYPE;var i=n.RightParenthesis;e.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(e,t){var r=this.scanner.tokenStart;var n=this.consumeFunctionName();var a=n.toLowerCase();var o;o=t.hasOwnProperty(a)?t[a].call(this,t):e.call(this,t);if(!this.scanner.eof){this.eat(i)}return{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:n,children:o}},generate:function(e){this.chunk(e.name);this.chunk("(");this.children(e);this.chunk(")")},walkContext:"function"}},74721:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Hash;e.exports={name:"HexColor",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;this.eat(i);return{type:"HexColor",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#");this.chunk(e.value)}}},91882:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Hash;e.exports={name:"IdSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;this.eat(i);return{type:"IdSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#");this.chunk(e.name)}}},61113:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Ident;e.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(i)}},generate:function(e){this.chunk(e.name)}}},62080:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Ident;var a=n.Number;var o=n.Dimension;var s=n.LeftParenthesis;var l=n.RightParenthesis;var c=n.Colon;var u=n.Delim;e.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var e=this.scanner.tokenStart;var t;var r=null;this.eat(s);this.scanner.skipSC();t=this.consume(i);this.scanner.skipSC();if(this.scanner.tokenType!==l){this.eat(c);this.scanner.skipSC();switch(this.scanner.tokenType){case a:if(this.lookupNonWSType(1)===u){r=this.Ratio()}else{r=this.Number()}break;case o:r=this.Dimension();break;case i:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}this.eat(l);return{type:"MediaFeature",loc:this.getLocation(e,this.scanner.tokenStart),name:t,value:r}},generate:function(e){this.chunk("(");this.chunk(e.name);if(e.value!==null){this.chunk(":");this.node(e.value)}this.chunk(")")}}},7454:(e,t,r)=>{var n=r(22802).TYPE;var i=n.WhiteSpace;var a=n.Comment;var o=n.Ident;var s=n.LeftParenthesis;e.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var e=this.createList();var t=null;var r=null;e:while(!this.scanner.eof){switch(this.scanner.tokenType){case a:this.scanner.next();continue;case i:r=this.WhiteSpace();continue;case o:t=this.Identifier();break;case s:t=this.MediaFeature();break;default:break e}if(r!==null){e.push(r);r=null}e.push(t)}if(t===null){this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}}},51614:(e,t,r)=>{var n=r(22802).TYPE.Comma;e.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(e){var t=this.createList();this.scanner.skipSC();while(!this.scanner.eof){t.push(this.MediaQuery(e));if(this.scanner.tokenType!==n){break}this.scanner.next()}return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e,function(){this.chunk(",")})}}},60491:e=>{e.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(e){this.scanner.skipSC();var t=this.scanner.tokenStart;var r=t;var n=null;var i;if(this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")){i=this.Identifier()}else{i=this.AnPlusB()}this.scanner.skipSC();if(e&&this.scanner.lookupValue(0,"of")){this.scanner.next();n=this.SelectorList();if(this.needPositions){r=this.getLastListNode(n.children).loc.end.offset}}else{if(this.needPositions){r=i.loc.end.offset}}return{type:"Nth",loc:this.getLocation(t,r),nth:i,selector:n}},generate:function(e){this.node(e.nth);if(e.selector!==null){this.chunk(" of ");this.node(e.selector)}}}},38433:(e,t,r)=>{var n=r(22802).TYPE.Number;e.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(n)}},generate:function(e){this.chunk(e.value)}}},28915:e=>{e.exports={name:"Operator",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;this.scanner.next();return{type:"Operator",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}}},11585:(e,t,r)=>{var n=r(22802).TYPE;var i=n.LeftParenthesis;var a=n.RightParenthesis;e.exports={name:"Parentheses",structure:{children:[[]]},parse:function(e,t){var r=this.scanner.tokenStart;var n=null;this.eat(i);n=e.call(this,t);if(!this.scanner.eof){this.eat(a)}return{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("(");this.children(e);this.chunk(")")}}},62198:(e,t,r)=>{var n=r(74501).consumeNumber;var i=r(22802).TYPE;var a=i.Percentage;e.exports={name:"Percentage",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;var t=n(this.scanner.source,e);this.eat(a);return{type:"Percentage",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t)}},generate:function(e){this.chunk(e.value);this.chunk("%")}}},83385:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Ident;var a=n.Function;var o=n.Colon;var s=n.RightParenthesis;e.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e=this.scanner.tokenStart;var t=null;var r;var n;this.eat(o);if(this.scanner.tokenType===a){r=this.consumeFunctionName();n=r.toLowerCase();if(this.pseudo.hasOwnProperty(n)){this.scanner.skipSC();t=this.pseudo[n].call(this);this.scanner.skipSC()}else{t=this.createList();t.push(this.Raw(this.scanner.tokenIndex,null,false))}this.eat(s)}else{r=this.consume(i)}return{type:"PseudoClassSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:r,children:t}},generate:function(e){this.chunk(":");this.chunk(e.name);if(e.children!==null){this.chunk("(");this.children(e);this.chunk(")")}},walkContext:"function"}},50900:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Ident;var a=n.Function;var o=n.Colon;var s=n.RightParenthesis;e.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e=this.scanner.tokenStart;var t=null;var r;var n;this.eat(o);this.eat(o);if(this.scanner.tokenType===a){r=this.consumeFunctionName();n=r.toLowerCase();if(this.pseudo.hasOwnProperty(n)){this.scanner.skipSC();t=this.pseudo[n].call(this);this.scanner.skipSC()}else{t=this.createList();t.push(this.Raw(this.scanner.tokenIndex,null,false))}this.eat(s)}else{r=this.consume(i)}return{type:"PseudoElementSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:r,children:t}},generate:function(e){this.chunk("::");this.chunk(e.name);if(e.children!==null){this.chunk("(");this.children(e);this.chunk(")")}},walkContext:"function"}},34728:(e,t,r)=>{var n=r(22802).isDigit;var i=r(22802).TYPE;var a=i.Number;var o=i.Delim;var s=47;var l=46;function consumeNumber(){this.scanner.skipWS();var e=this.consume(a);for(var t=0;t{var n=r(22802);var i=n.TYPE;var a=i.WhiteSpace;var o=i.Semicolon;var s=i.LeftCurlyBracket;var l=i.Delim;var c=33;function getOffsetExcludeWS(){if(this.scanner.tokenIndex>0){if(this.scanner.lookupType(-1)===a){return this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset}}return this.scanner.tokenStart}function balanceEnd(){return 0}function leftCurlyBracket(e){return e===s?1:0}function leftCurlyBracketOrSemicolon(e){return e===s||e===o?1:0}function exclamationMarkOrSemicolon(e,t,r){if(e===l&&t.charCodeAt(r)===c){return 1}return e===o?1:0}function semicolonIncluded(e){return e===o?2:0}e.exports={name:"Raw",structure:{value:String},parse:function(e,t,r){var n=this.scanner.getTokenStart(e);var i;this.scanner.skip(this.scanner.getRawLength(e,t||balanceEnd));if(r&&this.scanner.tokenStart>n){i=getOffsetExcludeWS.call(this)}else{i=this.scanner.tokenStart}return{type:"Raw",loc:this.getLocation(n,i),value:this.scanner.source.substring(n,i)}},generate:function(e){this.chunk(e.value)},mode:{default:balanceEnd,leftCurlyBracket:leftCurlyBracket,leftCurlyBracketOrSemicolon:leftCurlyBracketOrSemicolon,exclamationMarkOrSemicolon:exclamationMarkOrSemicolon,semicolonIncluded:semicolonIncluded}}},25850:(e,t,r)=>{var n=r(22802).TYPE;var i=r(1797).mode;var a=n.LeftCurlyBracket;function consumeRaw(e){return this.Raw(e,i.leftCurlyBracket,true)}function consumePrelude(){var e=this.SelectorList();if(e.type!=="Raw"&&this.scanner.eof===false&&this.scanner.tokenType!==a){this.error()}return e}e.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var e=this.scanner.tokenIndex;var t=this.scanner.tokenStart;var r;var n;if(this.parseRulePrelude){r=this.parseWithFallback(consumePrelude,consumeRaw)}else{r=consumeRaw.call(this,e)}n=this.Block(true);return{type:"Rule",loc:this.getLocation(t,this.scanner.tokenStart),prelude:r,block:n}},generate:function(e){this.node(e.prelude);this.node(e.block)},walkContext:"rule"}},45423:e=>{e.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var e=this.readSequence(this.scope.Selector);if(this.getFirstListNode(e)===null){this.error("Selector is expected")}return{type:"Selector",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}}},25967:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Comma;e.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){var e=this.createList();while(!this.scanner.eof){e.push(this.Selector());if(this.scanner.tokenType===i){this.scanner.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,function(){this.chunk(",")})},walkContext:"selector"}},63433:(e,t,r)=>{var n=r(22802).TYPE.String;e.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(n)}},generate:function(e){this.chunk(e.value)}}},13352:(e,t,r)=>{var n=r(22802).TYPE;var i=n.WhiteSpace;var a=n.Comment;var o=n.AtKeyword;var s=n.CDO;var l=n.CDC;var c=33;function consumeRaw(e){return this.Raw(e,null,false)}e.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){var e=this.scanner.tokenStart;var t=this.createList();var r;e:while(!this.scanner.eof){switch(this.scanner.tokenType){case i:this.scanner.next();continue;case a:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==c){this.scanner.next();continue}r=this.Comment();break;case s:r=this.CDO();break;case l:r=this.CDC();break;case o:r=this.parseWithFallback(this.Atrule,consumeRaw);break;default:r=this.parseWithFallback(this.Rule,consumeRaw)}t.push(r)}return{type:"StyleSheet",loc:this.getLocation(e,this.scanner.tokenStart),children:t}},generate:function(e){this.children(e)},walkContext:"stylesheet"}},83490:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Ident;var a=42;var o=124;function eatIdentifierOrAsterisk(){if(this.scanner.tokenType!==i&&this.scanner.isDelim(a)===false){this.error("Identifier or asterisk is expected")}this.scanner.next()}e.exports={name:"TypeSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;if(this.scanner.isDelim(o)){this.scanner.next();eatIdentifierOrAsterisk.call(this)}else{eatIdentifierOrAsterisk.call(this);if(this.scanner.isDelim(o)){this.scanner.next();eatIdentifierOrAsterisk.call(this)}}return{type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},39658:(e,t,r)=>{var n=r(22802).isHexDigit;var i=r(22802).cmpChar;var a=r(22802).TYPE;var o=r(22802).NAME;var s=a.Ident;var l=a.Number;var c=a.Dimension;var u=43;var d=45;var p=63;var m=117;function eatHexSequence(e,t){for(var r=this.scanner.tokenStart+e,i=0;r6){this.error("Too many hex digits",r)}}this.scanner.next();return i}function eatQuestionMarkSequence(e){var t=0;while(this.scanner.isDelim(p)){if(++t>e){this.error("Too many question marks")}this.scanner.next()}}function startsWith(e){if(this.scanner.source.charCodeAt(this.scanner.tokenStart)!==e){this.error(o[e]+" is expected")}}function scanUnicodeRange(){var e=0;if(this.scanner.isDelim(u)){this.scanner.next();if(this.scanner.tokenType===s){e=eatHexSequence.call(this,0,true);if(e>0){eatQuestionMarkSequence.call(this,6-e)}return}if(this.scanner.isDelim(p)){this.scanner.next();eatQuestionMarkSequence.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===l){startsWith.call(this,u);e=eatHexSequence.call(this,1,true);if(this.scanner.isDelim(p)){eatQuestionMarkSequence.call(this,6-e);return}if(this.scanner.tokenType===c||this.scanner.tokenType===l){startsWith.call(this,d);eatHexSequence.call(this,1,false);return}return}if(this.scanner.tokenType===c){startsWith.call(this,u);e=eatHexSequence.call(this,1,true);if(e>0){eatQuestionMarkSequence.call(this,6-e)}return}this.error()}e.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;if(!i(this.scanner.source,e,m)){this.error("U is expected")}if(!i(this.scanner.source,e+1,u)){this.error("Plus sign is expected")}this.scanner.next();scanUnicodeRange.call(this);return{type:"UnicodeRange",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}}},14315:(e,t,r)=>{var n=r(22802).isWhiteSpace;var i=r(22802).cmpStr;var a=r(22802).TYPE;var o=a.Function;var s=a.Url;var l=a.RightParenthesis;e.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var e=this.scanner.tokenStart;var t;switch(this.scanner.tokenType){case s:var r=e+4;var a=this.scanner.tokenEnd-1;while(r{e.exports={name:"Value",structure:{children:[[]]},parse:function(){var e=this.scanner.tokenStart;var t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.scanner.tokenStart),children:t}},generate:function(e){this.children(e)}}},7070:(e,t,r)=>{var n=r(22802).TYPE.WhiteSpace;var i=Object.freeze({type:"WhiteSpace",loc:null,value:" "});e.exports={name:"WhiteSpace",structure:{value:String},parse:function(){this.eat(n);return i},generate:function(e){this.chunk(e.value)}}},48362:(e,t,r)=>{e.exports={AnPlusB:r(70979),Atrule:r(83044),AtrulePrelude:r(41959),AttributeSelector:r(28543),Block:r(28874),Brackets:r(97033),CDC:r(6962),CDO:r(58368),ClassSelector:r(84043),Combinator:r(40306),Comment:r(12030),Declaration:r(85319),DeclarationList:r(55745),Dimension:r(35824),Function:r(79802),HexColor:r(74721),Identifier:r(61113),IdSelector:r(91882),MediaFeature:r(62080),MediaQuery:r(7454),MediaQueryList:r(51614),Nth:r(60491),Number:r(38433),Operator:r(28915),Parentheses:r(11585),Percentage:r(62198),PseudoClassSelector:r(83385),PseudoElementSelector:r(50900),Ratio:r(34728),Raw:r(1797),Rule:r(25850),Selector:r(45423),SelectorList:r(25967),String:r(63433),StyleSheet:r(13352),TypeSelector:r(83490),UnicodeRange:r(39658),Url:r(14315),Value:r(85923),WhiteSpace:r(7070)}},9572:e=>{var t=false;e.exports={parse:function nth(){return this.createSingleNodeList(this.Nth(t))}}},30182:e=>{var t=true;e.exports={parse:function nthWithOfClause(){return this.createSingleNodeList(this.Nth(t))}}},61905:e=>{e.exports={parse:function selectorList(){return this.createSingleNodeList(this.SelectorList())}}},18553:e=>{e.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},63300:e=>{e.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},19732:(e,t,r)=>{e.exports={dir:r(18553),has:r(63300),lang:r(60527),matches:r(99068),not:r(59750),"nth-child":r(68995),"nth-last-child":r(89472),"nth-last-of-type":r(34483),"nth-of-type":r(89242),slotted:r(98417)}},60527:e=>{e.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},99068:(e,t,r)=>{e.exports=r(61905)},59750:(e,t,r)=>{e.exports=r(61905)},68995:(e,t,r)=>{e.exports=r(30182)},89472:(e,t,r)=>{e.exports=r(30182)},34483:(e,t,r)=>{e.exports=r(9572)},89242:(e,t,r)=>{e.exports=r(9572)},98417:e=>{e.exports={parse:function compoundSelector(){return this.createSingleNodeList(this.Selector())}}},46138:(e,t,r)=>{e.exports={getNode:r(71987)}},71987:(e,t,r)=>{var n=r(22802).cmpChar;var i=r(22802).cmpStr;var a=r(22802).TYPE;var o=a.Ident;var s=a.String;var l=a.Number;var c=a.Function;var u=a.Url;var d=a.Hash;var p=a.Dimension;var m=a.Percentage;var f=a.LeftParenthesis;var h=a.LeftSquareBracket;var g=a.Comma;var y=a.Delim;var v=35;var b=42;var S=43;var x=45;var w=47;var C=117;e.exports=function defaultRecognizer(e){switch(this.scanner.tokenType){case d:return this.HexColor();case g:e.space=null;e.ignoreWSAfter=true;return this.Operator();case f:return this.Parentheses(this.readSequence,e.recognizer);case h:return this.Brackets(this.readSequence,e.recognizer);case s:return this.String();case p:return this.Dimension();case m:return this.Percentage();case l:return this.Number();case c:return i(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case u:return this.Url();case o:if(n(this.scanner.source,this.scanner.tokenStart,C)&&n(this.scanner.source,this.scanner.tokenStart+1,S)){return this.UnicodeRange()}else{return this.Identifier()}case y:var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(t===w||t===b||t===S||t===x){return this.Operator()}if(t===v){this.error("Hex or identifier is expected",this.scanner.tokenStart+1)}break}}},64610:(e,t,r)=>{e.exports={AtrulePrelude:r(46138),Selector:r(34390),Value:r(39993)}},34390:(e,t,r)=>{var n=r(22802).TYPE;var i=n.Delim;var a=n.Ident;var o=n.Dimension;var s=n.Percentage;var l=n.Number;var c=n.Hash;var u=n.Colon;var d=n.LeftSquareBracket;var p=35;var m=42;var f=43;var h=47;var g=46;var y=62;var v=124;var b=126;function getNode(e){switch(this.scanner.tokenType){case d:return this.AttributeSelector();case c:return this.IdSelector();case u:if(this.scanner.lookupType(1)===u){return this.PseudoElementSelector()}else{return this.PseudoClassSelector()}case a:return this.TypeSelector();case l:case s:return this.Percentage();case o:if(this.scanner.source.charCodeAt(this.scanner.tokenStart)===g){this.error("Identifier is expected",this.scanner.tokenStart+1)}break;case i:var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(t){case f:case y:case b:e.space=null;e.ignoreWSAfter=true;return this.Combinator();case h:return this.Combinator();case g:return this.ClassSelector();case m:case v:return this.TypeSelector();case p:return this.IdSelector()}break}}e.exports={getNode:getNode}},39993:(e,t,r)=>{e.exports={getNode:r(71987),"-moz-element":r(21960),element:r(21960),expression:r(97372),var:r(67348)}},98946:e=>{var t=0;function isDigit(e){return e>=48&&e<=57}function isHexDigit(e){return isDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isUppercaseLetter(e){return e>=65&&e<=90}function isLowercaseLetter(e){return e>=97&&e<=122}function isLetter(e){return isUppercaseLetter(e)||isLowercaseLetter(e)}function isNonAscii(e){return e>=128}function isNameStart(e){return isLetter(e)||isNonAscii(e)||e===95}function isName(e){return isNameStart(e)||isDigit(e)||e===45}function isNonPrintable(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function isNewline(e){return e===10||e===13||e===12}function isWhiteSpace(e){return isNewline(e)||e===32||e===9}function isValidEscape(e,r){if(e!==92){return false}if(isNewline(r)||r===t){return false}return true}function isIdentifierStart(e,t,r){if(e===45){return isNameStart(t)||t===45||isValidEscape(t,r)}if(isNameStart(e)){return true}if(e===92){return isValidEscape(e,t)}return false}function isNumberStart(e,t,r){if(e===43||e===45){if(isDigit(t)){return 2}return t===46&&isDigit(r)?3:0}if(e===46){return isDigit(t)?2:0}if(isDigit(e)){return 1}return 0}function isBOM(e){if(e===65279){return 1}if(e===65534){return 1}return 0}var r=new Array(128);charCodeCategory.Eof=128;charCodeCategory.WhiteSpace=130;charCodeCategory.Digit=131;charCodeCategory.NameStart=132;charCodeCategory.NonPrintable=133;for(var n=0;n{var t={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25};var r=Object.keys(t).reduce(function(e,r){e[t[r]]=r;return e},{});e.exports={TYPE:t,NAME:r}},22802:(e,t,r)=>{var n=r(34884);var i=r(1136);var a=r(48600);var o=a.TYPE;var s=r(98946);var l=s.isNewline;var c=s.isName;var u=s.isValidEscape;var d=s.isNumberStart;var p=s.isIdentifierStart;var m=s.charCodeCategory;var f=s.isBOM;var h=r(74501);var g=h.cmpStr;var y=h.getNewlineLength;var v=h.findWhiteSpaceEnd;var b=h.consumeEscaped;var S=h.consumeName;var x=h.consumeNumber;var w=h.consumeBadUrlRemnants;var C=16777215;var k=24;function tokenize(e,t){function getCharCode(t){return t=e.length){if(E>k;s[h]=z;s[z++]=h;for(;z{var n=r(98946);var i=n.isDigit;var a=n.isHexDigit;var o=n.isUppercaseLetter;var s=n.isName;var l=n.isWhiteSpace;var c=n.isValidEscape;function getCharCode(e,t){return te.length){return false}for(var i=t;i=0;t--){if(!l(e.charCodeAt(t))){break}}return t+1}function findWhiteSpaceEnd(e,t){for(;t{var n=r(35855);e.exports=function clone(e){var t={};for(var r in e){var i=e[r];if(i){if(Array.isArray(i)||i instanceof n){i=i.map(clone)}else if(i.constructor===Object){i=clone(i)}}t[r]=i}return t}},89308:e=>{e.exports=function createCustomError(e,t){var r=Object.create(SyntaxError.prototype);var n=new Error;r.name=e;r.message=t;Object.defineProperty(r,"stack",{get:function(){return(n.stack||"").replace(/^(.+\n){1,3}/,e+": "+t+"\n")}});return r}},50411:e=>{var t=Object.prototype.hasOwnProperty;var r=Object.create(null);var n=Object.create(null);var i=45;function isCustomProperty(e,t){t=t||0;return e.length-t>=2&&e.charCodeAt(t)===i&&e.charCodeAt(t+1)===i}function getVendorPrefix(e,t){t=t||0;if(e.length-t>=3){if(e.charCodeAt(t)===i&&e.charCodeAt(t+1)!==i){var r=e.indexOf("-",t+2);if(r!==-1){return e.substring(t,r+1)}}}return""}function getKeywordDescriptor(e){if(t.call(r,e)){return r[e]}var n=e.toLowerCase();if(t.call(r,n)){return r[e]=r[n]}var i=isCustomProperty(n,0);var a=!i?getVendorPrefix(n,0):"";return r[e]=Object.freeze({basename:n.substr(a.length),name:n,vendor:a,prefix:a,custom:i})}function getPropertyDescriptor(e){if(t.call(n,e)){return n[e]}var r=e;var i=e[0];if(i==="/"){i=e[1]==="/"?"//":"/"}else if(i!=="_"&&i!=="*"&&i!=="$"&&i!=="#"&&i!=="+"&&i!=="&"){i=""}var a=isCustomProperty(r,i.length);if(!a){r=r.toLowerCase();if(t.call(n,r)){return n[e]=n[r]}}var o=!a?getVendorPrefix(r,i.length):"";var s=r.substr(0,i.length+o.length);return n[e]=Object.freeze({basename:r.substr(s.length),name:r.substr(i.length),hack:i,vendor:o,prefix:s,custom:a})}e.exports={keyword:getKeywordDescriptor,property:getPropertyDescriptor,isCustomProperty:isCustomProperty,vendorPrefix:getVendorPrefix}},57514:e=>{var t=Object.prototype.hasOwnProperty;var r=function(){};function ensureFunction(e){return typeof e==="function"?e:r}function invokeForType(e,t){return function(r,n,i){if(r.type===t){e.call(this,r,n,i)}}}function getWalkersFromStructure(e,r){var n=r.structure;var i=[];for(var a in n){if(t.call(n,a)===false){continue}var o=n[a];var s={name:a,type:false,nullable:false};if(!Array.isArray(n[a])){o=[n[a]]}for(var l=0;l{t=e.exports=r(21920);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){a=i}});e.splice(a,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},21920:(e,t,r)=>{t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(64994);t.names=[];t.skips=[];t.formatters={};var n;function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){function debug(){if(!debug.enabled)return;var e=debug;var r=+new Date;var i=r-(n||r);e.diff=i;e.prev=n;e.curr=r;n=r;var a=new Array(arguments.length);for(var o=0;o{if(typeof process!=="undefined"&&process.type==="renderer"){e.exports=r(84360)}else{e.exports=r(96488)}},96488:(e,t,r)=>{var n=r(33867);var i=r(31669);t=e.exports=r(21920);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});var a=parseInt(process.env.DEBUG_FD,10)||2;if(1!==a&&2!==a){i.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")()}var o=1===a?process.stdout:2===a?process.stderr:createWritableStdioStream(a);function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(a)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var a=" [3"+i+";1m"+r+" "+"";e[0]=a+e[0].split("\n").join("\n"+a);e.push("[3"+i+"m+"+t.humanize(this.diff)+"")}else{e[0]=(new Date).toUTCString()+" "+r+" "+e[0]}}function log(){return o.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function createWritableStdioStream(e){var t;var i=process.binding("tty_wrap");switch(i.guessHandleType(e)){case"TTY":t=new n.WriteStream(e);t._type="tty";if(t._handle&&t._handle.unref){t._handle.unref()}break;case"FILE":var a=r(35747);t=new a.SyncWriteStream(e,{autoClose:false});t._type="fs";break;case"PIPE":case"TCP":var o=r(11631);t=new o.Socket({fd:e,readable:false,writable:true});t.readable=false;t.read=null;t._type="pipe";if(t._handle&&t._handle.unref){t._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}t.fd=e;t._isStdio=true;return t}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n{"use strict";var n=r(76045);var i=typeof Symbol==="function"&&typeof Symbol("foo")==="symbol";var a=Object.prototype.toString;var o=Array.prototype.concat;var s=Object.defineProperty;var l=function(e){return typeof e==="function"&&a.call(e)==="[object Function]"};var c=function(){var e={};try{s(e,"x",{enumerable:false,value:e});for(var t in e){return false}return e.x===e}catch(e){return false}};var u=s&&c();var d=function(e,t,r,n){if(t in e&&(!l(n)||!n())){return}if(u){s(e,t,{configurable:true,enumerable:false,value:r,writable:true})}else{e[t]=r}};var p=function(e,t){var r=arguments.length>2?arguments[2]:{};var a=n(t);if(i){a=o.call(a,Object.getOwnPropertySymbols(t))}for(var s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},1702:(e,t,r)=>{var n=r(43402);var i=r(83982);var a=r(53958);a.elementNames.__proto__=null;a.attributeNames.__proto__=null;var o={__proto__:null,style:true,script:true,xmp:true,iframe:true,noembed:true,noframes:true,plaintext:true,noscript:true};function formatAttrs(e,t){if(!e)return;var r="";var n;for(var o in e){n=e[o];if(r){r+=" "}if(t.xmlMode==="foreign"){o=a.attributeNames[o]||o}r+=o;if(n!==null&&n!==""||t.xmlMode){r+='="'+(t.decodeEntities?i.encodeXML(n):n.replace(/\"/g,"""))+'"'}}return r}var s={__proto__:null,area:true,base:true,basefont:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,isindex:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true};var l=e.exports=function(e,t){if(!Array.isArray(e)&&!e.cheerio)e=[e];t=t||{};var r="";for(var i=0;i=0)t=Object.assign({},t,{xmlMode:false})}if(!t.xmlMode&&["svg","math"].indexOf(e.name)>=0){t=Object.assign({},t,{xmlMode:"foreign"})}var r="<"+e.name;var n=formatAttrs(e.attribs,t);if(n){r+=" "+n}if(t.xmlMode&&(!e.children||e.children.length===0)){r+="/>"}else{r+=">";if(e.children){r+=l(e.children,t)}if(!s[e.name]||t.xmlMode){r+=""}}return r}function renderDirective(e){return"<"+e.data+">"}function renderText(e,t){var r=e.data||"";if(t.decodeEntities&&!(e.parent&&e.parent.name in o)){r=i.encodeXML(r)}return r}function renderCdata(e){return""}function renderComment(e){return"\x3c!--"+e.data+"--\x3e"}},43402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.isTag=void 0;function isTag(e){return e.type==="tag"||e.type==="script"||e.type==="style"}t.isTag=isTag;t.Text="text";t.Directive="directive";t.Comment="comment";t.Script="script";t.Style="style";t.Tag="tag";t.CDATA="cdata";t.Doctype="doctype"},42515:e=>{e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return e.type==="tag"||e.type==="script"||e.type==="style"}}},43370:(e,t,r)=>{var n=e.exports;[r(64144),r(86755),r(69009),r(87431),r(75718),r(4614)].forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t].bind(n)})})},4614:(e,t)=>{t.removeSubsets=function(e){var t=e.length,r,n,i;while(--t>-1){r=n=e[t];e[t]=null;i=true;while(n){if(e.indexOf(n)>-1){i=false;e.splice(t,1);break}n=n.parent}if(i){e[t]=r}}return e};var r={DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16};var n=t.compareDocumentPosition=function(e,t){var n=[];var i=[];var a,o,s,l,c,u;if(e===t){return 0}a=e;while(a){n.unshift(a);a=a.parent}a=t;while(a){i.unshift(a);a=a.parent}u=0;while(n[u]===i[u]){u++}if(u===0){return r.DISCONNECTED}o=n[u-1];s=o.children;l=n[u];c=i[u];if(s.indexOf(l)>s.indexOf(c)){if(o===t){return r.FOLLOWING|r.CONTAINED_BY}return r.FOLLOWING}else{if(o===e){return r.PRECEDING|r.CONTAINS}return r.PRECEDING}};t.uniqueSort=function(e){var t=e.length,i,a;e=e.slice();while(--t>-1){i=e[t];a=e.indexOf(i);if(a>-1&&a{var n=r(42515);var i=t.isTag=n.isTag;t.testElement=function(e,t){for(var r in e){if(!e.hasOwnProperty(r)) ;else if(r==="tag_name"){if(!i(t)||!e.tag_name(t.name)){return false}}else if(r==="tag_type"){if(!e.tag_type(t.type))return false}else if(r==="tag_contains"){if(i(t)||!e.tag_contains(t.data)){return false}}else if(!t.attribs||!e[r](t.attribs[r])){return false}}return true};var a={tag_name:function(e){if(typeof e==="function"){return function(t){return i(t)&&e(t.name)}}else if(e==="*"){return i}else{return function(t){return i(t)&&t.name===e}}},tag_type:function(e){if(typeof e==="function"){return function(t){return e(t.type)}}else{return function(t){return t.type===e}}},tag_contains:function(e){if(typeof e==="function"){return function(t){return!i(t)&&e(t.data)}}else{return function(t){return!i(t)&&t.data===e}}}};function getAttribCheck(e,t){if(typeof t==="function"){return function(r){return r.attribs&&t(r.attribs[e])}}else{return function(r){return r.attribs&&r.attribs[e]===t}}}function combineFuncs(e,t){return function(r){return e(r)||t(r)}}t.getElements=function(e,t,r,n){var i=Object.keys(e).map(function(t){var r=e[t];return t in a?a[t](r):getAttribCheck(t,r)});return i.length===0?[]:this.filter(i.reduce(combineFuncs),t,r,n)};t.getElementById=function(e,t,r){if(!Array.isArray(t))t=[t];return this.findOne(getAttribCheck("id",e),t,r!==false)};t.getElementsByTagName=function(e,t,r,n){return this.filter(a.tag_name(e),t,r,n)};t.getElementsByTagType=function(e,t,r,n){return this.filter(a.tag_type(e),t,r,n)}},69009:(e,t)=>{t.removeElement=function(e){if(e.prev)e.prev.next=e.next;if(e.next)e.next.prev=e.prev;if(e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}};t.replaceElement=function(e,t){var r=t.prev=e.prev;if(r){r.next=t}var n=t.next=e.next;if(n){n.prev=t}var i=t.parent=e.parent;if(i){var a=i.children;a[a.lastIndexOf(e)]=t}};t.appendChild=function(e,t){t.parent=e;if(e.children.push(t)!==1){var r=e.children[e.children.length-2];r.next=t;t.prev=r;t.next=null}};t.append=function(e,t){var r=e.parent,n=e.next;t.next=n;t.prev=e;e.next=t;t.parent=r;if(n){n.prev=t;if(r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else if(r){r.children.push(t)}};t.prepend=function(e,t){var r=e.parent;if(r){var n=r.children;n.splice(n.lastIndexOf(e),0,t)}if(e.prev){e.prev.next=t}t.parent=r;t.prev=e.prev;t.next=e;e.prev=t}},87431:(e,t,r)=>{var n=r(42515).isTag;e.exports={filter:filter,find:find,findOneChild:findOneChild,findOne:findOne,existsOne:existsOne,findAll:findAll};function filter(e,t,r,n){if(!Array.isArray(t))t=[t];if(typeof n!=="number"||!isFinite(n)){n=Infinity}return find(e,t,r!==false,n)}function find(e,t,r,n){var i=[],a;for(var o=0,s=t.length;o0){a=find(e,a,r,n);i=i.concat(a);n-=a.length;if(n<=0)break}}return i}function findOneChild(e,t){for(var r=0,n=t.length;r0){r=findOne(e,t[i].children)}}return r}function existsOne(e,t){for(var r=0,i=t.length;r0&&existsOne(e,t[r].children))){return true}}return false}function findAll(e,t){var r=[];var i=t.slice();while(i.length){var a=i.shift();if(!n(a))continue;if(a.children&&a.children.length>0){i.unshift.apply(i,a.children)}if(e(a))r.push(a)}return r}},64144:(e,t,r)=>{var n=r(42515),i=r(1702),a=n.isTag;e.exports={getInnerHTML:getInnerHTML,getOuterHTML:i,getText:getText};function getInnerHTML(e,t){return e.children?e.children.map(function(e){return i(e,t)}).join(""):""}function getText(e){if(Array.isArray(e))return e.map(getText).join("");if(a(e))return e.name==="br"?"\n":getText(e.children);if(e.type===n.CDATA)return getText(e.children);if(e.type===n.Text)return e.data;return""}},86755:(e,t)=>{var r=t.getChildren=function(e){return e.children};var n=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=n(e);return t?r(t):[e]};t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]};t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)};t.getName=function(e){return e.name}},27235:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=n(r(20933));var a=n(r(19151));var o=n(r(44816));var s=n(r(62190));t.decodeXML=getStrictDecoder(o.default);t.decodeHTMLStrict=getStrictDecoder(i.default);function getStrictDecoder(e){var t=Object.keys(e).join("|");var r=getReplacer(e);t+="|#[xX][\\da-fA-F]+|#\\d+";var n=new RegExp("&(?:"+t+");","g");return function(e){return String(e).replace(n,r)}}var l=function(e,t){return e=55296&&e<=57343||e>1114111){return"�"}if(e in i.default){e=i.default[e]}var t="";if(e>65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|e&1023}t+=String.fromCharCode(e);return t}t.default=decodeCodePoint},4414:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.escape=t.encodeHTML=t.encodeXML=void 0;var i=n(r(44816));var a=getInverseObj(i.default);var o=getInverseReplacer(a);t.encodeXML=getInverse(a,o);var s=n(r(20933));var l=getInverseObj(s.default);var c=getInverseReplacer(l);t.encodeHTML=getInverse(l,c);function getInverseObj(e){return Object.keys(e).sort().reduce(function(t,r){t[e[r]]="&"+r+";";return t},{})}function getInverseReplacer(e){var t=[];var r=[];for(var n=0,i=Object.keys(e);n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encode=t.decodeStrict=t.decode=void 0;var n=r(27235);var i=r(4414);function decode(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)}t.decode=decode;function decodeStrict(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)}t.decodeStrict=decodeStrict;function encode(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)}t.encode=encode;var a=r(4414);Object.defineProperty(t,"encodeXML",{enumerable:true,get:function(){return a.encodeXML}});Object.defineProperty(t,"encodeHTML",{enumerable:true,get:function(){return a.encodeHTML}});Object.defineProperty(t,"escape",{enumerable:true,get:function(){return a.escape}});Object.defineProperty(t,"encodeHTML4",{enumerable:true,get:function(){return a.encodeHTML}});Object.defineProperty(t,"encodeHTML5",{enumerable:true,get:function(){return a.encodeHTML}});var o=r(27235);Object.defineProperty(t,"decodeXML",{enumerable:true,get:function(){return o.decodeXML}});Object.defineProperty(t,"decodeHTML",{enumerable:true,get:function(){return o.decodeHTML}});Object.defineProperty(t,"decodeHTMLStrict",{enumerable:true,get:function(){return o.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML4",{enumerable:true,get:function(){return o.decodeHTML}});Object.defineProperty(t,"decodeHTML5",{enumerable:true,get:function(){return o.decodeHTML}});Object.defineProperty(t,"decodeHTML4Strict",{enumerable:true,get:function(){return o.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML5Strict",{enumerable:true,get:function(){return o.decodeHTMLStrict}});Object.defineProperty(t,"decodeXMLStrict",{enumerable:true,get:function(){return o.decodeXML}})},61421:(e,t,r)=>{"use strict";e.exports=r(93008)},93008:(e,t,r)=>{"use strict";var n=r(32260);var i=n("%TypeError%");e.exports=function CheckObjectCoercible(e,t){if(e==null){throw new i(t||"Cannot call method on "+e)}return e}},32260:(e,t,r)=>{"use strict";var n;var i=TypeError;var a=Object.getOwnPropertyDescriptor;if(a){try{a({},"")}catch(e){a=null}}var o=function(){throw new i};var s=a?function(){try{arguments.callee;return o}catch(e){try{return a(arguments,"callee").get}catch(e){return o}}}():o;var l=r(41869)();var c=Object.getPrototypeOf||function(e){return e.__proto__};var u;var d=u?c(u):n;var p;var m=p?p.constructor:n;var f;var h=f?c(f):n;var g=f?f():n;var y=typeof Uint8Array==="undefined"?n:c(Uint8Array);var v={"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer,"%ArrayBufferPrototype%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":l?c([][Symbol.iterator]()):n,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncFunctionPrototype%":m?m.prototype:n,"%AsyncGenerator%":f?c(g):n,"%AsyncGeneratorFunction%":h,"%AsyncGeneratorPrototype%":h?h.prototype:n,"%AsyncIteratorPrototype%":g&&l&&Symbol.asyncIterator?g[Symbol.asyncIterator]():n,"%Atomics%":typeof Atomics==="undefined"?n:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":typeof DataView==="undefined"?n:DataView,"%DataViewPrototype%":typeof DataView==="undefined"?n:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":typeof Float32Array==="undefined"?n:Float32Array,"%Float32ArrayPrototype%":typeof Float32Array==="undefined"?n:Float32Array.prototype,"%Float64Array%":typeof Float64Array==="undefined"?n:Float64Array,"%Float64ArrayPrototype%":typeof Float64Array==="undefined"?n:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":u?c(u()):n,"%GeneratorFunction%":d,"%GeneratorPrototype%":d?d.prototype:n,"%Int8Array%":typeof Int8Array==="undefined"?n:Int8Array,"%Int8ArrayPrototype%":typeof Int8Array==="undefined"?n:Int8Array.prototype,"%Int16Array%":typeof Int16Array==="undefined"?n:Int16Array,"%Int16ArrayPrototype%":typeof Int16Array==="undefined"?n:Int8Array.prototype,"%Int32Array%":typeof Int32Array==="undefined"?n:Int32Array,"%Int32ArrayPrototype%":typeof Int32Array==="undefined"?n:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?c(c([][Symbol.iterator]())):n,"%JSON%":typeof JSON==="object"?JSON:n,"%JSONParse%":typeof JSON==="object"?JSON.parse:n,"%Map%":typeof Map==="undefined"?n:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!l?n:c((new Map)[Symbol.iterator]()),"%MapPrototype%":typeof Map==="undefined"?n:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?n:Promise,"%PromisePrototype%":typeof Promise==="undefined"?n:Promise.prototype,"%PromiseProto_then%":typeof Promise==="undefined"?n:Promise.prototype.then,"%Promise_all%":typeof Promise==="undefined"?n:Promise.all,"%Promise_reject%":typeof Promise==="undefined"?n:Promise.reject,"%Promise_resolve%":typeof Promise==="undefined"?n:Promise.resolve,"%Proxy%":typeof Proxy==="undefined"?n:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":typeof Reflect==="undefined"?n:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":typeof Set==="undefined"?n:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!l?n:c((new Set)[Symbol.iterator]()),"%SetPrototype%":typeof Set==="undefined"?n:Set.prototype,"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer,"%SharedArrayBufferPrototype%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":l?c(""[Symbol.iterator]()):n,"%StringPrototype%":String.prototype,"%Symbol%":l?Symbol:n,"%SymbolPrototype%":l?Symbol.prototype:n,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":y,"%TypedArrayPrototype%":y?y.prototype:n,"%TypeError%":i,"%TypeErrorPrototype%":i.prototype,"%Uint8Array%":typeof Uint8Array==="undefined"?n:Uint8Array,"%Uint8ArrayPrototype%":typeof Uint8Array==="undefined"?n:Uint8Array.prototype,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray.prototype,"%Uint16Array%":typeof Uint16Array==="undefined"?n:Uint16Array,"%Uint16ArrayPrototype%":typeof Uint16Array==="undefined"?n:Uint16Array.prototype,"%Uint32Array%":typeof Uint32Array==="undefined"?n:Uint32Array,"%Uint32ArrayPrototype%":typeof Uint32Array==="undefined"?n:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":typeof WeakMap==="undefined"?n:WeakMap,"%WeakMapPrototype%":typeof WeakMap==="undefined"?n:WeakMap.prototype,"%WeakSet%":typeof WeakSet==="undefined"?n:WeakSet,"%WeakSetPrototype%":typeof WeakSet==="undefined"?n:WeakSet.prototype};var b=r(10373);var S=b.call(Function.call,String.prototype.replace);var x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var w=/\\(\\)?/g;var C=function stringToPath(e){var t=[];S(e,x,function(e,r,n,i){t[t.length]=n?S(i,w,"$1"):r||e});return t};var k=function getBaseIntrinsic(e,t){if(!(e in v)){throw new SyntaxError("intrinsic "+e+" does not exist!")}if(typeof v[e]==="undefined"&&!t){throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!")}return v[e]};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new TypeError("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new TypeError('"allowMissing" argument must be a boolean')}var r=C(e);var n=k("%"+(r.length>0?r[0]:"")+"%",t);for(var o=1;o=r.length){var s=a(n,r[o]);if(!t&&!(r[o]in n)){throw new i("base intrinsic for "+e+" exists, but the property is not available.")}n=s&&"get"in s&&!("originalValue"in s.get)?s.get:n[r[o]]}else{n=n[r[o]]}}}return n}},69334:(e,t,r)=>{"use strict";var n=r(10373);var i=r(32260);var a=i("%Function.prototype.apply%");var o=i("%Function.prototype.call%");var s=i("%Reflect.apply%",true)||n.call(o,a);var l=i("%Object.defineProperty%",true);if(l){try{l({},"a",{value:1})}catch(e){l=null}}e.exports=function callBind(){return s(n,o,arguments)};var c=function applyBind(){return s(n,a,arguments)};if(l){l(e.exports,"apply",{value:c})}else{e.exports.apply=c}},38790:(e,t,r)=>{"use strict";var n=r(32260);var i=r(69334);var a=i(n("String.prototype.indexOf"));e.exports=function callBoundIntrinsic(e,t){var r=n(e,!!t);if(typeof r==="function"&&a(e,".prototype.")){return i(r)}return r}},39597:(e,t,r)=>{var n;try{n=r(35304)("follow-redirects")}catch(e){n=function(){}}e.exports=n},75955:(e,t,r)=>{var n=r(78835);var i=n.URL;var a=r(98605);var o=r(57211);var s=r(92413).Writable;var l=r(42357);var c=r(39597);var u=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach(function(e){u[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var d=createErrorType("ERR_FR_REDIRECTION_FAILURE","");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var m=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var f=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){s.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(s.prototype);RedirectableRequest.prototype.write=function(e,t,r){if(this._ending){throw new f}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new m);this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,r)}else{var n=this;var i=this._currentRequest;this.write(e,t,function(){n._ended=true;i.end(null,null,r)});this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){if(t){this.once("timeout",t)}if(this.socket){startTimer(this,e)}else{var r=this;this._currentRequest.once("socket",function(){startTimer(r,e)})}this.once("response",clearTimer);this.once("error",clearTimer);return this};function startTimer(e,t){clearTimeout(e._timeout);e._timeout=setTimeout(function(){e.emit("timeout")},t)}function clearTimer(){clearTimeout(this._timeout)}["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);i._redirectable=this;for(var a in u){if(a){i.on(a,u[a])}}if(this._isRedirect){var o=0;var s=this;var l=this._requestBodyBuffers;(function writeNext(e){if(i===s._currentRequest){if(e){s.emit("error",e)}else if(o=300&&t<400){this._currentRequest.removeAllListeners();this._currentRequest.on("error",noop);this._currentRequest.abort();e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var i=removeMatchingHeaders(/^host$/i,this._options.headers)||n.parse(this._currentUrl).hostname;var a=n.resolve(this._currentUrl,r);c("redirecting to",a);this._isRedirect=true;var o=n.parse(a);Object.assign(this._options,o);if(o.hostname!==i){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var s={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,s)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var l=new d("Redirected request failed: "+e.message);l.cause=e;this.emit("error",l)}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach(function(a){var o=a+":";var s=r[o]=e[a];var u=t[a]=Object.create(s);u.request=function(e,a,s){if(typeof e==="string"){var u=e;try{e=urlToOptions(new i(u))}catch(t){e=n.parse(u)}}else if(i&&e instanceof i){e=urlToOptions(e)}else{s=a;a=e;e={protocol:o}}if(typeof a==="function"){s=a;a=null}a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a);a.nativeProtocols=r;l.equal(a.protocol,o,"protocol mismatch");c("options",a);return new RedirectableRequest(a,s)};u.get=function(e,t,r){var n=u.request(e,t,r);n.end();return n}});return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var r;for(var n in t){if(e.test(n)){r=t[n];delete t[n]}}return r}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);this.message=e||t}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}e.exports=wrap({http:a,https:o});e.exports.wrap=wrap},66431:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var r=Array.prototype.slice;var n=Object.prototype.toString;var i="[object Function]";e.exports=function bind(e){var a=this;if(typeof a!=="function"||n.call(a)!==i){throw new TypeError(t+a)}var o=r.call(arguments,1);var s;var l=function(){if(this instanceof s){var t=a.apply(this,o.concat(r.call(arguments)));if(Object(t)===t){return t}return this}else{return a.apply(e,o.concat(r.call(arguments)))}};var c=Math.max(0,a.length-o.length);var u=[];for(var d=0;d{"use strict";var n=r(66431);e.exports=Function.prototype.bind||n},41869:(e,t,r)=>{"use strict";var n=global.Symbol;var i=r(3448);e.exports=function hasNativeSymbols(){if(typeof n!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof n("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return i()}},3448:e=>{"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var r=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;e[t]=n;for(t in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||a.enumerable!==true){return false}}return true}},98496:(e,t,r)=>{"use strict";var n=r(10373);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},67192:(e,t,r)=>{"use strict";function validUrl(e){return/http(s)?:\/\/(\w+:?\w*@)?(\S+)(:\d+)?((?<=\.)\w+)+(\/([\w#!:.?+=&%@!\-/])*)?/gi.test(e)}function validTypeImage(e){return/(?<=\S+)\.(jpg|png|jpeg)/gi.test(e)}function base64ToNode(e){return e.toString("base64")}function readFileAndConvert(e){var t=r(35747),n=r(85622);return t.statSync(e).isFile()?base64ToNode(t.readFileSync(n.resolve(e)).toString("base64")):null}function isImage(e){return validTypeImage(e)?Promise.resolve(readFileAndConvert(e)):Promise.reject("[*] Occurent some error... [validTypeImage] == false")}function imageToBase64(e){return validUrl(e)?r(22434)(e).then(function(e){return e.buffer()}).then(base64ToNode):isImage(e)}e.exports=imageToBase64},80641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},31894:(e,t,r)=>{"use strict";var n=r(7158);e.exports=n},7158:(e,t,r)=>{"use strict";var n=r(3434);var i=r(86156);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=r(78099);e.exports.Schema=r(58126);e.exports.FAILSAFE_SCHEMA=r(21712);e.exports.JSON_SCHEMA=r(75698);e.exports.CORE_SCHEMA=r(11277);e.exports.DEFAULT_SAFE_SCHEMA=r(23713);e.exports.DEFAULT_FULL_SCHEMA=r(17028);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.safeLoad=n.safeLoad;e.exports.safeLoadAll=n.safeLoadAll;e.exports.dump=i.dump;e.exports.safeDump=i.safeDump;e.exports.YAMLException=r(41030);e.exports.MINIMAL_SCHEMA=r(21712);e.exports.SAFE_SCHEMA=r(23713);e.exports.DEFAULT_SCHEMA=r(17028);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},39990:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,i,a;if(t){a=Object.keys(t);for(r=0,n=a.length;r{"use strict";var n=r(39990);var i=r(41030);var a=r(17028);var o=r(23713);var s=Object.prototype.toString;var l=Object.prototype.hasOwnProperty;var c=9;var u=10;var d=13;var p=32;var m=33;var f=34;var h=35;var g=37;var y=38;var v=39;var b=42;var S=44;var x=45;var w=58;var C=61;var k=62;var T=63;var E=64;var A=91;var O=93;var z=96;var P=123;var _=124;var W=125;var q={};q[0]="\\0";q[7]="\\a";q[8]="\\b";q[9]="\\t";q[10]="\\n";q[11]="\\v";q[12]="\\f";q[13]="\\r";q[27]="\\e";q[34]='\\"';q[92]="\\\\";q[133]="\\N";q[160]="\\_";q[8232]="\\L";q[8233]="\\P";var B=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(e,t){var r,n,i,a,o,s,c;if(t===null)return{};r={};n=Object.keys(t);for(i=0,a=n.length;i0?e.charCodeAt(a-1):null;m=m&&isPlainSafe(o,s)}}else{for(a=0;an&&e[p+1]!==" ";p=a}}else if(!isPrintable(o)){return F}s=a>0?e.charCodeAt(a-1):null;m=m&&isPlainSafe(o,s)}c=c||d&&(a-p-1>n&&e[p+1]!==" ")}if(!l&&!c){return m&&!i(e)?R:L}if(r>9&&needIndentIndicator(e)){return F}return c?G:D}function writeScalar(e,t,r,n){e.dump=function(){if(t.length===0){return"''"}if(!e.noCompatMode&&B.indexOf(t)!==-1){return"'"+t+"'"}var a=e.indent*Math.max(1,r);var o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a);var s=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,s,e.indent,o,testAmbiguity)){case R:return t;case L:return"'"+t.replace(/'/g,"''")+"'";case D:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,a));case G:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,o),a));case F:return'"'+escapeString(t,o)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var i=n&&(e[e.length-2]==="\n"||e==="\n");var a=i?"+":n?"":"-";return r+a+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var i=e[0]==="\n"||e[0]===" ";var a;var o;while(o=r.exec(e)){var s=o[1],l=o[2];a=l[0]===" ";n+=s+(!i&&!a&&l!==""?"\n":"")+foldLine(l,t);i=a}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var i=0,a,o=0,s=0;var l="";while(n=r.exec(e)){s=n.index;if(s-i>t){a=o>i?o:s;l+="\n"+e.slice(i,a);i=a+1}o=s}l+="\n";if(e.length-i>t&&o>i){l+=e.slice(i,o)+"\n"+e.slice(o+1)}else{l+=e.slice(i)}return l.slice(1)}function escapeString(e){var t="";var r,n;var i;for(var a=0;a=55296&&r<=56319){n=e.charCodeAt(a+1);if(n>=56320&&n<=57343){t+=encodeHex((r-55296)*1024+n-56320+65536);a++;continue}}i=q[r];t+=!i&&isPrintable(r)?e[a]:i||encodeHex(r)}return t}function writeFlowSequence(e,t,r){var n="",i=e.tag,a,o;for(a=0,o=r.length;a1024)u+="? ";u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}u+=e.dump;n+=u}e.tag=i;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var a="",o=e.tag,s=Object.keys(r),l,c,d,p,m,f;if(e.sortKeys===true){s.sort()}else if(typeof e.sortKeys==="function"){s.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(l=0,c=s.length;l1024;if(m){if(e.dump&&u===e.dump.charCodeAt(0)){f+="?"}else{f+="? "}}f+=e.dump;if(m){f+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,m)){continue}if(e.dump&&u===e.dump.charCodeAt(0)){f+=":"}else{f+=": "}f+=e.dump;a+=f}e.tag=o;e.dump=a||"{}"}function detectType(e,t,r){var n,a,o,c,u,d;a=r?e.explicitTypes:e.implicitTypes;for(o=0,c=a.length;o tag resolver accepts not "'+d+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,a,o){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var l=s.call(e.dump);if(n){n=e.flowLevel<0||e.flowLevel>t}var c=l==="[object Object]"||l==="[object Array]",u,d;if(c){u=e.duplicates.indexOf(r);d=u!==-1}if(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0){a=false}if(d&&e.usedDuplicates[u]){e.dump="*ref_"+u}else{if(c&&d&&!e.usedDuplicates[u]){e.usedDuplicates[u]=true}if(l==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,a);if(d){e.dump="&ref_"+u+e.dump}}else{writeFlowMapping(e,t,e.dump);if(d){e.dump="&ref_"+u+" "+e.dump}}}else if(l==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;if(n&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,a);if(d){e.dump="&ref_"+u+e.dump}}else{writeFlowSequence(e,p,e.dump);if(d){e.dump="&ref_"+u+" "+e.dump}}}else if(l==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,o)}}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+l)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],i,a;inspectNode(e,r,n);for(i=0,a=n.length;i{"use strict";function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){var t=this.name+": ";t+=this.reason||"(unknown reason)";if(!e&&this.mark){t+=" "+this.mark.toString()}return t};e.exports=YAMLException},3434:(e,t,r)=>{"use strict";var n=r(39990);var i=r(41030);var a=r(79989);var o=r(23713);var s=r(17028);var l=Object.prototype.hasOwnProperty;var c=1;var u=2;var d=3;var p=4;var m=1;var f=2;var h=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var y=/[\x85\u2028\u2029]/;var v=/[,\[\]\{\}]/;var b=/^(?:!|!!|![a-z\-]+!)$/i;var S=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var x=new Array(256);var w=new Array(256);for(var C=0;C<256;C++){x[C]=simpleEscapeSequence(C)?1:0;w[C]=simpleEscapeSequence(C)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||s;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,t){return new i(t,new a(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var k={YAML:function handleYamlDirective(e,t,r){var n,i,a;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(n[1],10);a=parseInt(n[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=a<2;if(a!==1&&a!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,i;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];i=r[1];if(!b.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(l.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!S.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[n]=i}};function captureSegment(e,t,r,n){var i,a,o,s;if(t1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,i,a,o,s,l,c,u,d=e.kind,p=e.result,m;m=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(m)||is_FLOW_INDICATOR(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96){return false}if(m===63||m===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";a=o=e.position;s=false;while(m!==0){if(m===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){break}}else if(m===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(m)){break}else if(is_EOL(m)){l=e.line;c=e.lineStart;u=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){s=true;m=e.input.charCodeAt(e.position);continue}else{e.position=o;e.line=l;e.lineStart=c;e.lineIndent=u;break}}if(s){captureSegment(e,a,o,false);writeFoldedLines(e,e.line-l);a=o=e.position;s=false}if(!is_WHITE_SPACE(m)){o=e.position+1}m=e.input.charCodeAt(++e.position)}captureSegment(e,a,o,false);if(e.result){return true}e.kind=d;e.result=p;return false}function readSingleQuotedScalar(e,t){var r,n,i;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=i=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,i,a,o,s;s=e.input.charCodeAt(e.position);if(s!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((s=e.input.charCodeAt(e.position))!==0){if(s===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(s===92){captureSegment(e,r,e.position,true);s=e.input.charCodeAt(++e.position);if(is_EOL(s)){skipSeparationSpace(e,false,t)}else if(s<256&&x[s]){e.result+=w[s];e.position++}else if((o=escapedHexLen(s))>0){i=o;a=0;for(;i>0;i--){s=e.input.charCodeAt(++e.position);if((o=fromHexCode(s))>=0){a=(a<<4)+o}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(a);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(s)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,i=e.tag,a,o=e.anchor,s,l,u,d,p,m={},f,h,g,y;y=e.input.charCodeAt(e.position);if(y===91){l=93;p=false;a=[]}else if(y===123){l=125;p=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}y=e.input.charCodeAt(++e.position);while(y!==0){skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if(y===l){e.position++;e.tag=i;e.anchor=o;e.kind=p?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}h=f=g=null;u=d=false;if(y===63){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)){u=d=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;composeNode(e,t,c,false,true);h=e.tag;f=e.result;skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if((d||e.line===n)&&y===58){u=true;y=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,c,false,true);g=e.result}if(p){storeMappingPair(e,a,m,h,f,g)}else if(u){a.push(storeMappingPair(e,null,m,h,f,g))}else{a.push(f)}skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if(y===44){r=true;y=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,i,a=m,o=false,s=false,l=t,c=0,u=false,d,p;p=e.input.charCodeAt(e.position);if(p===124){i=false}else if(p===62){i=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(m===a){a=p===43?h:f}else{throwError(e,"repeat of a chomping mode identifier")}}else if((d=fromDecimalCode(p))>=0){if(d===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!s){l=t+d-1;s=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!s||e.lineIndentl){l=e.lineIndent}if(is_EOL(p)){c++;continue}if(e.lineIndentt)&&l!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(composeNode(e,t,p,true,i)){if(g){f=e.result}else{h=e.result}}if(!g){storeMappingPair(e,c,d,m,f,h,a,o);m=f=h=null}skipSeparationSpace(e,true,-1);v=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&v!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){m=1}else if(e.lineIndent===t){m=0}else if(e.lineIndentt){m=1}else if(e.lineIndent===t){m=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(g=0,y=e.implicitTypes.length;g tag; it should be "'+v.kind+'", not "'+e.kind+'"')}if(!v.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=v.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||h}function readDocument(e){var t=e.position,r,n,i,a=false,o;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((o=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);o=e.input.charCodeAt(e.position);if(e.lineIndent>0||o!==37){break}a=true;o=e.input.charCodeAt(++e.position);r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);i=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(o!==0){while(is_WHITE_SPACE(o)){o=e.input.charCodeAt(++e.position)}if(o===35){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&!is_EOL(o));break}if(is_EOL(o))break;r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}i.push(e.input.slice(r,e.position))}if(o!==0)readLineBreak(e);if(l.call(k,n)){k[n](e,n,i)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(a){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&y.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var n=r(39990);function Mark(e,t,r,n,i){this.name=e;this.buffer=t;this.position=r;this.line=n;this.column=i}Mark.prototype.getSnippet=function getSnippet(e,t){var r,i,a,o,s;if(!this.buffer)return null;e=e||4;t=t||75;r="";i=this.position;while(i>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1))===-1){i-=1;if(this.position-i>t/2-1){r=" ... ";i+=5;break}}a="";o=this.position;while(ot/2-1){a=" ... ";o-=5;break}}s=this.buffer.slice(i,o);return n.repeat(" ",e)+r+s+a+"\n"+n.repeat(" ",e+this.position-i+r.length)+"^"};Mark.prototype.toString=function toString(e){var t,r="";if(this.name){r+='in "'+this.name+'" '}r+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){t=this.getSnippet();if(t){r+=":\n"+t}}return r};e.exports=Mark},58126:(e,t,r)=>{"use strict";var n=r(39990);var i=r(41030);var a=r(78099);function compileList(e,t,r){var n=[];e.include.forEach(function(e){r=compileList(e,t,r)});e[t].forEach(function(e){r.forEach(function(t,r){if(t.tag===e.tag&&t.kind===e.kind){n.push(r)}});r.push(e)});return r.filter(function(e,t){return n.indexOf(t)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function collectType(t){e[t.kind][t.tag]=e["fallback"][t.tag]=t}for(t=0,r=arguments.length;t{"use strict";var n=r(58126);e.exports=new n({include:[r(75698)]})},17028:(e,t,r)=>{"use strict";var n=r(58126);e.exports=n.DEFAULT=new n({include:[r(23713)],explicit:[r(7988),r(19817),r(42939)]})},23713:(e,t,r)=>{"use strict";var n=r(58126);e.exports=new n({include:[r(11277)],implicit:[r(21136),r(37255)],explicit:[r(58212),r(82769),r(8234),r(31745)]})},21712:(e,t,r)=>{"use strict";var n=r(58126);e.exports=new n({explicit:[r(51497),r(506),r(58865)]})},75698:(e,t,r)=>{"use strict";var n=r(58126);e.exports=new n({include:[r(21712)],implicit:[r(30421),r(79193),r(76048),r(44514)]})},78099:(e,t,r)=>{"use strict";var n=r(41030);var i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var a=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})})}return t}function Type(e,t){t=t||{};Object.keys(t).forEach(function(t){if(i.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.defaultStyle=t["defaultStyle"]||null;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(a.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},58212:(e,t,r)=>{"use strict";var n;try{var i=require;n=i("buffer").Buffer}catch(e){}var a=r(78099);var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,i=e.length,a=o;for(r=0;r64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,i=e.replace(/[\r\n=]/g,""),a=i.length,s=o,l=0,c=[];for(t=0;t>16&255);c.push(l>>8&255);c.push(l&255)}l=l<<6|s.indexOf(i.charAt(t))}r=a%4*6;if(r===0){c.push(l>>16&255);c.push(l>>8&255);c.push(l&255)}else if(r===18){c.push(l>>10&255);c.push(l>>2&255)}else if(r===12){c.push(l>>4&255)}if(n){return n.from?n.from(c):new n(c)}return c}function representYamlBinary(e){var t="",r=0,n,i,a=e.length,s=o;for(n=0;n>18&63];t+=s[r>>12&63];t+=s[r>>6&63];t+=s[r&63]}r=(r<<8)+e[n]}i=a%3;if(i===0){t+=s[r>>18&63];t+=s[r>>12&63];t+=s[r>>6&63];t+=s[r&63]}else if(i===2){t+=s[r>>10&63];t+=s[r>>4&63];t+=s[r<<2&63];t+=s[64]}else if(i===1){t+=s[r>>2&63];t+=s[r<<4&63];t+=s[64];t+=s[64]}return t}function isBinary(e){return n&&n.isBuffer(e)}e.exports=new a("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},79193:(e,t,r)=>{"use strict";var n=r(78099);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},44514:(e,t,r)=>{"use strict";var n=r(39990);var i=r(78099);var a=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!a.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r,n,i;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;i=[];if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}else if(t.indexOf(":")>=0){t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))});t=0;n=1;i.forEach(function(e){t+=e*n;n*=60});return r*t}return r*parseFloat(t,10)}var o=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return o.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},76048:(e,t,r)=>{"use strict";var n=r(39990);var i=r(78099);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,r=0,n=false,i;if(!t)return false;i=e[r];if(i==="-"||i==="+"){i=e[++r]}if(i==="0"){if(r+1===t)return true;i=e[++r];if(i==="b"){r++;for(;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},42939:(e,t,r)=>{"use strict";var n;try{var i=require;n=i("esprima")}catch(e){if(typeof window!=="undefined")n=window.esprima}var a=r(78099);function resolveJavascriptFunction(e){if(e===null)return false;try{var t="("+e+")",r=n.parse(t,{range:true});if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var t="("+e+")",r=n.parse(t,{range:true}),i=[],a;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}r.body[0].expression.params.forEach(function(e){i.push(e.name)});a=r.body[0].expression.body.range;if(r.body[0].expression.body.type==="BlockStatement"){return new Function(i,t.slice(a[0]+1,a[1]-1))}return new Function(i,"return "+t.slice(a[0],a[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new a("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},19817:(e,t,r)=>{"use strict";var n=r(78099);function resolveJavascriptRegExp(e){if(e===null)return false;if(e.length===0)return false;var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r)n=r[1];if(n.length>3)return false;if(t[t.length-n.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r)n=r[1];t=t.slice(1,t.length-n.length-1)}return new RegExp(t,n)}function representJavascriptRegExp(e){var t="/"+e.source+"/";if(e.global)t+="g";if(e.multiline)t+="m";if(e.ignoreCase)t+="i";return t}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new n("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},7988:(e,t,r)=>{"use strict";var n=r(78099);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(e){return typeof e==="undefined"}e.exports=new n("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},58865:(e,t,r)=>{"use strict";var n=r(78099);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},37255:(e,t,r)=>{"use strict";var n=r(78099);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},30421:(e,t,r)=>{"use strict";var n=r(78099);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},82769:(e,t,r)=>{"use strict";var n=r(78099);var i=Object.prototype.hasOwnProperty;var a=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,o,s,l,c=e;for(r=0,n=c.length;r{"use strict";var n=r(78099);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,a,o,s=e;o=new Array(s.length);for(t=0,r=s.length;t{"use strict";var n=r(78099);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},31745:(e,t,r)=>{"use strict";var n=r(78099);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(i.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},51497:(e,t,r)=>{"use strict";var n=r(78099);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},21136:(e,t,r)=>{"use strict";var n=r(78099);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(a.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,o,s,l,c,u=0,d=null,p,m,f;t=i.exec(e);if(t===null)t=a.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;o=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,o))}s=+t[4];l=+t[5];c=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){p=+t[10];m=+(t[11]||0);d=(p*60+m)*6e4;if(t[9]==="-")d=-d}f=new Date(Date.UTC(r,n,o,s,l,c,u));if(d)f.setTime(f.getTime()-d);return f}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},64994:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var a=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var s=parseFloat(o[1]);var l=(o[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(92413));var i=_interopDefault(r(98605));var a=_interopDefault(r(78835));var o=_interopDefault(r(57211));var s=_interopDefault(r(78761));const l=n.Readable;const c=Symbol("buffer");const u=Symbol("type");class Blob{constructor(){this[u]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let a=i===undefined?0:i;var o=r.timeout;let s=o===undefined?0:o;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n) ;else{e=Buffer.from(String(e))}this[p]={body:e,disturbed:false,error:null};this.size=a;this.timeout=s;if(e instanceof n){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[p].error=r})}}Body.prototype={get body(){return this[p].body},get bodyUsed(){return this[p].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[c]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[p].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[p].disturbed=true;if(this[p].error){return Body.Promise.reject(this[p].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let i=0;let a=false;return new Body.Promise(function(n,o){let s;if(e.timeout){s=setTimeout(function(){a=true;o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){a=true;o(t)}else{o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(a||t===null){return}if(e.size&&i+t.length>e.size){a=true;o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;r.push(t)});t.on("end",function(){if(a){return}clearTimeout(s);try{n(Buffer.concat(r,i))}catch(t){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let i,a;if(r){i=/charset=([^;]*)/i.exec(r)}a=e.slice(0,1024).toString();if(!i&&a){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[g]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[g],e);if(t===undefined){return null}return this[g][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[g]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[g][t].join(", ")}:function(t){return[t.toLowerCase(),e[g][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(v);r[y]={target:e,kind:t,index:0};return r}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,r=e.kind,n=e.index;const i=getHeaders(t,r);const a=i.length;if(n>=a){return{value:undefined,done:true}}this[y].index=n+1;return{value:i[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[g]);const r=find(e[g],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(f.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(h.test(n)){continue}if(t[g][r]===undefined){t[g][r]=[n]}else{t[g][r].push(n)}}}else if(!h.test(e[r])){t[g][r]=[e[r]]}}return t}const b=Symbol("Response internals");const S=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[b]={url:t.url,status:r,statusText:t.statusText||S[r],headers:n,counter:t.counter}}get url(){return this[b].url||""}get status(){return this[b].status}get ok(){return this[b].status>=200&&this[b].status<300}get redirected(){return this[b].counter>0}get statusText(){return this[b].statusText}get headers(){return this[b].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const x=Symbol("Request internals");const w=a.parse;const C=a.format;const k="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[x]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=w(e.href)}else{r=w(`${e}`)}e={}}else{r=w(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const a=new Headers(t.headers||e.headers||{});if(i!=null&&!a.has("Content-Type")){const e=extractContentType(i);if(e){a.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in t)o=t.signal;if(o!=null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[x]={method:n,redirect:t.redirect||e.redirect||"follow",headers:a,parsedURL:r,signal:o};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[x].method}get url(){return C(this[x].parsedURL)}get headers(){return this[x].headers}get redirect(){return this[x].redirect}get signal(){return this[x].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[x].parsedURL;const r=new Headers(e[x].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!k){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){r.set("Content-Length",i)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let a=e.agent;if(typeof a==="function"){a=a(t)}if(!r.has("Connection")&&!a){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:a})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const T=n.PassThrough;const E=a.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,a){const l=new Request(e,t);const c=getNodeRequestOptions(l);const u=(c.protocol==="https:"?o:i).request;const d=l.signal;let p=null;const m=function abort(){let e=new AbortError("The user aborted a request.");a(e);if(l.body&&l.body instanceof n.Readable){l.body.destroy(e)}if(!p||!p.body)return;p.body.emit("error",e)};if(d&&d.aborted){m();return}const f=function abortAndFinalize(){m();finalize()};const h=u(c);let g;if(d){d.addEventListener("abort",f)}function finalize(){h.abort();if(d)d.removeEventListener("abort",f);clearTimeout(g)}if(l.timeout){h.once("socket",function(e){g=setTimeout(function(){a(new FetchError(`network timeout at: ${l.url}`,"request-timeout"));finalize()},l.timeout)})}h.on("error",function(e){a(new FetchError(`request to ${l.url} failed, reason: ${e.message}`,"system",e));finalize()});h.on("response",function(e){clearTimeout(g);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const i=n===null?null:E(l.url,n);switch(l.redirect){case"error":a(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){a(e)}}break;case"follow":if(i===null){break}if(l.counter>=l.follow){a(new FetchError(`maximum redirect reached at: ${l.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(l.headers),follow:l.follow,counter:l.counter+1,agent:l.agent,compress:l.compress,method:l.method,body:l.body,signal:l.signal,timeout:l.timeout,size:l.size};if(e.statusCode!==303&&l.body&&getTotalBytes(l)===null){a(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&l.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(i,n)));finalize();return}}e.once("end",function(){if(d)d.removeEventListener("abort",f)});let n=e.pipe(new T);const i={url:l.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:l.size,timeout:l.timeout,counter:l.counter};const o=t.get("Content-Encoding");if(!l.compress||l.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){p=new Response(n,i);r(p);return}const c={flush:s.Z_SYNC_FLUSH,finishFlush:s.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){n=n.pipe(s.createGunzip(c));p=new Response(n,i);r(p);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new T);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(s.createInflate())}else{n=n.pipe(s.createInflateRaw())}p=new Response(n,i);r(p)});return}if(o=="br"&&typeof s.createBrotliDecompress==="function"){n=n.pipe(s.createBrotliDecompress());p=new Response(n,i);r(p);return}p=new Response(n,i);r(p)});writeToStream(h,l)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},50880:(e,t,r)=>{e.exports=compile;var n=r(27510),i=n.trueFunc,a=n.falseFunc;function compile(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return a;if(t===-1)return function(e){return e<=r};if(t===0)return function(e){return e===r};if(t===1)return r<0?i:function(e){return e>=r};var n=r%t;if(n<0)n+=t;if(t>1){return function(e){return e>=r&&e%t===n}}t*=-1;return function(e){return e<=r&&e%t===n}}},88970:(e,t,r)=>{var n=r(30151),i=r(50880);e.exports=function nthCheck(e){return i(n(e))};e.exports.parse=n;e.exports.compile=i},30151:e=>{e.exports=parse;var t=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/;function parse(e){e=e.trim().toLowerCase();if(e==="even"){return[2,0]}else if(e==="odd"){return[2,1]}else{var r=e.match(t);if(!r){throw new SyntaxError("n-th rule couldn't be parsed ('"+e+"')")}var n;if(r[1]){n=parseInt(r[1],10);if(isNaN(n)){if(r[1].charAt(0)==="-")n=-1;else n=1}}else n=0;return[n,r[3]?parseInt((r[2]||"")+r[3],10):0]}}},47905:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty;var a=Object.prototype.toString;var o=r(7595);var s=Object.prototype.propertyIsEnumerable;var l=!s.call({toString:null},"toString");var c=s.call(function(){},"prototype");var u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var d=function(e){var t=e.constructor;return t&&t.prototype===e};var p={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true};var m=function(){if(typeof window==="undefined"){return false}for(var e in window){try{if(!p["$"+e]&&i.call(window,e)&&window[e]!==null&&typeof window[e]==="object"){try{d(window[e])}catch(e){return true}}}catch(e){return true}}return false}();var f=function(e){if(typeof window==="undefined"||!m){return d(e)}try{return d(e)}catch(e){return false}};n=function keys(e){var t=e!==null&&typeof e==="object";var r=a.call(e)==="[object Function]";var n=o(e);var s=t&&a.call(e)==="[object String]";var d=[];if(!t&&!r&&!n){throw new TypeError("Object.keys called on a non-object")}var p=c&&r;if(s&&e.length>0&&!i.call(e,0)){for(var m=0;m0){for(var h=0;h{"use strict";var n=Array.prototype.slice;var i=r(7595);var a=Object.keys;var o=a?function keys(e){return a(e)}:r(47905);var s=Object.keys;o.shim=function shimObjectKeys(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);if(!e){Object.keys=function keys(e){if(i(e)){return s(n.call(e))}return s(e)}}}else{Object.keys=o}return Object.keys||o};e.exports=o},7595:e=>{"use strict";var t=Object.prototype.toString;e.exports=function isArguments(e){var r=t.call(e);var n=r==="[object Arguments]";if(!n){n=r!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&t.call(e.callee)==="[object Function]"}return n}},81699:(e,t,r)=>{"use strict";var n=r(98496);var i=r(61421);var a=r(38790);var o=a("Object.prototype.propertyIsEnumerable");e.exports=function values(e){var t=i(e);var r=[];for(var a in t){if(n(t,a)&&o(t,a)){r.push(t[a])}}return r}},67670:(e,t,r)=>{"use strict";var n=r(3087);var i=r(81699);var a=r(64450);var o=r(51454);var s=a();n(s,{getPolyfill:a,implementation:i,shim:o});e.exports=s},64450:(e,t,r)=>{"use strict";var n=r(81699);e.exports=function getPolyfill(){return typeof Object.values==="function"?Object.values:n}},51454:(e,t,r)=>{"use strict";var n=r(64450);var i=r(3087);e.exports=function shimValues(){var e=n();i(Object,{values:e},{values:function testValues(){return Object.values!==e}});return e}},86343:(e,t,r)=>{var n=r(42884);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},25510:(e,t,r)=>{(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,r){if(!(this instanceof SAXParser)){return new SAXParser(t,r)}var n=this;clearBuffers(n);n.q=n.c="";n.bufferCheckPosition=e.MAX_BUFFER_LENGTH;n.opt=r||{};n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags;n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase";n.tags=[];n.closed=n.closedRoot=n.sawRoot=false;n.tag=n.error=null;n.strict=!!t;n.noscript=!!(t||n.opt.noscript);n.state=f.BEGIN;n.strictEntities=n.opt.strictEntities;n.ENTITIES=n.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);n.attribList=[];if(n.opt.xmlns){n.ns=Object.create(c)}n.trackPosition=n.opt.position!==false;if(n.trackPosition){n.position=n.line=n.column=0}emit(n,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))t.push(r);return t}}function checkBufferLength(r){var n=Math.max(e.MAX_BUFFER_LENGTH,10);var i=0;for(var a=0,o=t.length;an){switch(t[a]){case"textNode":closeText(r);break;case"cdata":emitNode(r,"oncdata",r.cdata);r.cdata="";break;case"script":emitNode(r,"onscript",r.script);r.script="";break;default:error(r,"Max buffer length exceeded: "+t[a])}}i=Math.max(i,s)}var l=e.MAX_BUFFER_LENGTH-i;r.bufferCheckPosition=l+r.position}function clearBuffers(e){for(var r=0,n=t.length;r"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var f=0;e.STATE={BEGIN:f++,BEGIN_WHITESPACE:f++,TEXT:f++,TEXT_ENTITY:f++,OPEN_WAKA:f++,SGML_DECL:f++,SGML_DECL_QUOTED:f++,DOCTYPE:f++,DOCTYPE_QUOTED:f++,DOCTYPE_DTD:f++,DOCTYPE_DTD_QUOTED:f++,COMMENT_STARTING:f++,COMMENT:f++,COMMENT_ENDING:f++,COMMENT_ENDED:f++,CDATA:f++,CDATA_ENDING:f++,CDATA_ENDING_2:f++,PROC_INST:f++,PROC_INST_BODY:f++,PROC_INST_ENDING:f++,OPEN_TAG:f++,OPEN_TAG_SLASH:f++,ATTRIB:f++,ATTRIB_NAME:f++,ATTRIB_NAME_SAW_WHITE:f++,ATTRIB_VALUE:f++,ATTRIB_VALUE_QUOTED:f++,ATTRIB_VALUE_CLOSED:f++,ATTRIB_VALUE_UNQUOTED:f++,ATTRIB_VALUE_ENTITY_Q:f++,ATTRIB_VALUE_ENTITY_U:f++,CLOSE_TAG:f++,CLOSE_TAG_SAW_WHITE:f++,SCRIPT:f++,SCRIPT_ENDING:f++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var r=e.ENTITIES[t];var n=typeof r==="number"?String.fromCharCode(r):r;e.ENTITIES[t]=n});for(var h in e.STATE){e.STATE[e.STATE[h]]=h}f=e.STATE;function emit(e,t,r){e[t]&&e[t](r)}function emitNode(e,t,r){if(e.textNode)closeText(e);emit(e,t,r)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==f.BEGIN&&e.state!==f.BEGIN_WHITESPACE&&e.state!==f.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var r=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){r.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",r)}function qname(e,t){var r=e.indexOf(":");var n=r<0?["",e]:e.split(":");var i=n[0];var a=n[1];if(t&&e==="xmlns"){i="xmlns";a=""}return{prefix:i,local:a}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var r=t.prefix;var n=t.local;if(r==="xmlns"){if(n==="xml"&&e.attribValue!==s){strictFail(e,"xml: prefix must be bound to "+s+"\n"+"Actual: "+e.attribValue)}else if(n==="xmlns"&&e.attribValue!==l){strictFail(e,"xmlns: prefix must be bound to "+l+"\n"+"Actual: "+e.attribValue)}else{var i=e.tag;var a=e.tags[e.tags.length-1]||e;if(i.ns===a.ns){i.ns=Object.create(a.ns)}i.ns[n]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var r=e.tag;var n=qname(e.tagName);r.prefix=n.prefix;r.local=n.local;r.uri=r.ns[n.prefix]||"";if(r.prefix&&!r.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));r.uri=n.prefix}var i=e.tags[e.tags.length-1]||e;if(r.ns&&i.ns!==r.ns){Object.keys(r.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:r.ns[t]})})}for(var a=0,o=e.attribList.length;a";e.tagName="";e.state=f.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var r=e.tagName;if(!e.strict){r=r[e.looseCase]()}var n=r;while(t--){var i=e.tags[t];if(i.name!==n){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=f.TEXT;return}e.tagName=r;var a=e.tags.length;while(a-- >t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var s={};for(var l in o.ns){s[l]=o.ns[l]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&o.ns!==c.ns){Object.keys(o.ns).forEach(function(t){var r=o.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:r})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=f.TEXT}function parseEntity(e){var t=e.entity;var r=t.toLowerCase();var n;var i="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[r]){return e.ENTITIES[r]}t=r;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);n=parseInt(t,16);i=n.toString(16)}else{t=t.slice(1);n=parseInt(t,10);i=n.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(n)||i.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(n)}function beginWhiteSpace(e,t){if(t==="<"){e.state=f.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=f.TEXT}}function charAt(e,t){var r="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=f.TEXT}else if(isQuote(n)){t.state=f.SGML_DECL_QUOTED;t.sgmlDecl+=n}else{t.sgmlDecl+=n}continue;case f.SGML_DECL_QUOTED:if(n===t.q){t.state=f.SGML_DECL;t.q=""}t.sgmlDecl+=n;continue;case f.DOCTYPE:if(n===">"){t.state=f.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=n;if(n==="["){t.state=f.DOCTYPE_DTD}else if(isQuote(n)){t.state=f.DOCTYPE_QUOTED;t.q=n}}continue;case f.DOCTYPE_QUOTED:t.doctype+=n;if(n===t.q){t.q="";t.state=f.DOCTYPE}continue;case f.DOCTYPE_DTD:t.doctype+=n;if(n==="]"){t.state=f.DOCTYPE}else if(isQuote(n)){t.state=f.DOCTYPE_DTD_QUOTED;t.q=n}continue;case f.DOCTYPE_DTD_QUOTED:t.doctype+=n;if(n===t.q){t.state=f.DOCTYPE_DTD;t.q=""}continue;case f.COMMENT:if(n==="-"){t.state=f.COMMENT_ENDING}else{t.comment+=n}continue;case f.COMMENT_ENDING:if(n==="-"){t.state=f.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+n;t.state=f.COMMENT}continue;case f.COMMENT_ENDED:if(n!==">"){strictFail(t,"Malformed comment");t.comment+="--"+n;t.state=f.COMMENT}else{t.state=f.TEXT}continue;case f.CDATA:if(n==="]"){t.state=f.CDATA_ENDING}else{t.cdata+=n}continue;case f.CDATA_ENDING:if(n==="]"){t.state=f.CDATA_ENDING_2}else{t.cdata+="]"+n;t.state=f.CDATA}continue;case f.CDATA_ENDING_2:if(n===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=f.TEXT}else if(n==="]"){t.cdata+="]"}else{t.cdata+="]]"+n;t.state=f.CDATA}continue;case f.PROC_INST:if(n==="?"){t.state=f.PROC_INST_ENDING}else if(isWhitespace(n)){t.state=f.PROC_INST_BODY}else{t.procInstName+=n}continue;case f.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(n)){continue}else if(n==="?"){t.state=f.PROC_INST_ENDING}else{t.procInstBody+=n}continue;case f.PROC_INST_ENDING:if(n===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=f.TEXT}else{t.procInstBody+="?"+n;t.state=f.PROC_INST_BODY}continue;case f.OPEN_TAG:if(isMatch(d,n)){t.tagName+=n}else{newTag(t);if(n===">"){openTag(t)}else if(n==="/"){t.state=f.OPEN_TAG_SLASH}else{if(!isWhitespace(n)){strictFail(t,"Invalid character in tag name")}t.state=f.ATTRIB}}continue;case f.OPEN_TAG_SLASH:if(n===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=f.ATTRIB}continue;case f.ATTRIB:if(isWhitespace(n)){continue}else if(n===">"){openTag(t)}else if(n==="/"){t.state=f.OPEN_TAG_SLASH}else if(isMatch(u,n)){t.attribName=n;t.attribValue="";t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_NAME:if(n==="="){t.state=f.ATTRIB_VALUE}else if(n===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(n)){t.state=f.ATTRIB_NAME_SAW_WHITE}else if(isMatch(d,n)){t.attribName+=n}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_NAME_SAW_WHITE:if(n==="="){t.state=f.ATTRIB_VALUE}else if(isWhitespace(n)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(n===">"){openTag(t)}else if(isMatch(u,n)){t.attribName=n;t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=f.ATTRIB}}continue;case f.ATTRIB_VALUE:if(isWhitespace(n)){continue}else if(isQuote(n)){t.q=n;t.state=f.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=f.ATTRIB_VALUE_UNQUOTED;t.attribValue=n}continue;case f.ATTRIB_VALUE_QUOTED:if(n!==t.q){if(n==="&"){t.state=f.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=n}continue}attrib(t);t.q="";t.state=f.ATTRIB_VALUE_CLOSED;continue;case f.ATTRIB_VALUE_CLOSED:if(isWhitespace(n)){t.state=f.ATTRIB}else if(n===">"){openTag(t)}else if(n==="/"){t.state=f.OPEN_TAG_SLASH}else if(isMatch(u,n)){strictFail(t,"No whitespace between attributes");t.attribName=n;t.attribValue="";t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(n)){if(n==="&"){t.state=f.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=n}continue}attrib(t);if(n===">"){openTag(t)}else{t.state=f.ATTRIB}continue;case f.CLOSE_TAG:if(!t.tagName){if(isWhitespace(n)){continue}else if(notMatch(u,n)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(d,n)){t.tagName+=n}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case f.TEXT_ENTITY:case f.ATTRIB_VALUE_ENTITY_Q:case f.ATTRIB_VALUE_ENTITY_U:var l;var c;switch(t.state){case f.TEXT_ENTITY:l=f.TEXT;c="textNode";break;case f.ATTRIB_VALUE_ENTITY_Q:l=f.ATTRIB_VALUE_QUOTED;c="attribValue";break;case f.ATTRIB_VALUE_ENTITY_U:l=f.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(n===";"){t[c]+=parseEntity(t);t.entity="";t.state=l}else if(isMatch(t.entity.length?m:p,n)){t.entity+=n}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+n;t.entity="";t.state=l}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var r=function(){var r=16384;var n=[];var i;var a;var o=-1;var s=arguments.length;if(!s){return""}var l="";while(++o1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){n.push(c)}else{c-=65536;i=(c>>10)+55296;a=c%1024+56320;n.push(i,a)}if(o+1===s||n.length>r){l+=e.apply(null,n);n.length=0}}return l};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:r,configurable:true,writable:true})}else{String.fromCodePoint=r}})()}})(false?0:t)},56727:(e,t,r)=>{var n=r(13758);var i=Object.prototype.hasOwnProperty;var a=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=a?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var r=new ArraySet;for(var n=0,i=e.length;n=0){return t}}else{var r=n.toSetString(e);if(i.call(this._set,r)){return this._set[r]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e{var n=r(72531);var i=5;var a=1<>1;return t?-r:r}t.encode=function base64VLQ_encode(e){var t="";var r;var a=toVLQSigned(e);do{r=a&o;a>>>=i;if(a>0){r|=s}t+=n.encode(r)}while(a>0);return t};t.decode=function base64VLQ_decode(e,t,r){var a=e.length;var l=0;var c=0;var u,d;do{if(t>=a){throw new Error("Expected more digits in base 64 VLQ value.")}d=n.decode(e.charCodeAt(t++));if(d===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}u=!!(d&s);d&=o;l=l+(d<{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{var n=r(13758);function generatedPositionAfter(e,t){var r=e.generatedLine;var i=t.generatedLine;var a=e.generatedColumn;var o=t.generatedColumn;return i>r||i==r&&o>=a||n.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};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(n.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},28265:(e,t,r)=>{var n=r(82539);var i=r(13758);var a=r(56727).I;var o=r(90407).H;function SourceMapGenerator(e){if(!e){e={}}this._file=i.getArg(e,"file",null);this._sourceRoot=i.getArg(e,"sourceRoot",null);this._skipValidation=i.getArg(e,"skipValidation",false);this._sources=new a;this._names=new a;this._mappings=new o;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var r=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){n.source=e.source;if(t!=null){n.source=i.relative(t,n.source)}n.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){n.name=e.name}}r.addMapping(n)});e.sources.forEach(function(n){var a=n;if(t!==null){a=i.relative(t,n)}if(!r._sources.has(a)){r._sources.add(a)}var o=e.sourceContentFor(n);if(o!=null){r.setSourceContent(n,o)}});return r};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=i.getArg(e,"generated");var r=i.getArg(e,"original",null);var n=i.getArg(e,"source",null);var a=i.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,r,n,a)}if(n!=null){n=String(n);if(!this._sources.has(n)){this._sources.add(n)}}if(a!=null){a=String(a);if(!this._names.has(a)){this._names.add(a)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:a})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var r=e;if(this._sourceRoot!=null){r=i.relative(this._sourceRoot,r)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[i.toSetString(r)]=t}else if(this._sourcesContents){delete this._sourcesContents[i.toSetString(r)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,r){var n=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}n=e.file}var o=this._sourceRoot;if(o!=null){n=i.relative(o,n)}var s=new a;var l=new a;this._mappings.unsortedForEach(function(t){if(t.source===n&&t.originalLine!=null){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(a.source!=null){t.source=a.source;if(r!=null){t.source=i.join(r,t.source)}if(o!=null){t.source=i.relative(o,t.source)}t.originalLine=a.line;t.originalColumn=a.column;if(a.name!=null){t.name=a.name}}}var c=t.source;if(c!=null&&!s.has(c)){s.add(c)}var u=t.name;if(u!=null&&!l.has(u)){l.add(u)}},this);this._sources=s;this._names=l;e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){if(r!=null){t=i.join(r,t)}if(o!=null){t=i.relative(o,t)}this.setSourceContent(t,n)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,r,n){if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n){return}else if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var r=0;var a=0;var o=0;var s=0;var l="";var c;var u;var d;var p;var m=this._mappings.toArray();for(var f=0,h=m.length;f0){if(!i.compareByGeneratedPositionsInflated(u,m[f-1])){continue}c+=","}}c+=n.encode(u.generatedColumn-e);e=u.generatedColumn;if(u.source!=null){p=this._sources.indexOf(u.source);c+=n.encode(p-s);s=p;c+=n.encode(u.originalLine-1-a);a=u.originalLine-1;c+=n.encode(u.originalColumn-r);r=u.originalColumn;if(u.name!=null){d=this._names.indexOf(u.name);c+=n.encode(d-o);o=d}}l+=c}return l};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents){return null}if(t!=null){e=i.relative(t,e)}var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.h=SourceMapGenerator},13758:(e,t)=>{function getArg(e,t,r){if(t in e){return e[t]}else if(arguments.length===3){return r}else{throw new Error('"'+t+'" is a required argument.')}}t.getArg=getArg;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;var n=/^data:.+\,.+$/;function urlParse(e){var t=e.match(r);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}t.urlParse=urlParse;function urlGenerate(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}t.urlGenerate=urlGenerate;function normalize(e){var r=e;var n=urlParse(e);if(n){if(!n.path){return e}r=n.path}var i=t.isAbsolute(r);var a=r.split(/\/+/);for(var o,s=0,l=a.length-1;l>=0;l--){o=a[l];if(o==="."){a.splice(l,1)}else if(o===".."){s++}else if(s>0){if(o===""){a.splice(l+1,s);s=0}else{a.splice(l,2);s--}}}r=a.join("/");if(r===""){r=i?"/":"."}if(n){n.path=r;return urlGenerate(n)}return r}t.normalize=normalize;function join(e,t){if(e===""){e="."}if(t===""){t="."}var r=urlParse(t);var i=urlParse(e);if(i){e=i.path||"/"}if(r&&!r.scheme){if(i){r.scheme=i.scheme}return urlGenerate(r)}if(r||t.match(n)){return t}if(i&&!i.host&&!i.path){i.host=t;return urlGenerate(i)}var a=t.charAt(0)==="/"?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(i){i.path=a;return urlGenerate(i)}return a}t.join=join;t.isAbsolute=function(e){return e.charAt(0)==="/"||r.test(e)};function relative(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var r=0;while(t.indexOf(e+"/")!==0){var n=e.lastIndexOf("/");if(n<0){return t}e=e.slice(0,n);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++r}return Array(r+1).join("../")+t.substr(e.length+1)}t.relative=relative;var i=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}t.toSetString=i?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}t.fromSetString=i?identity:fromSetString;function isProtoString(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var r=t-10;r>=0;r--){if(e.charCodeAt(r)!==36){return false}}return true}function compareByOriginalPositions(e,t,r){var n=strcmp(e.source,t.source);if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0||r){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=e.generatedLine-t.generatedLine;if(n!==0){return n}return strcmp(e.name,t.name)}t.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,t,r){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0||r){return n}n=strcmp(e.source,t.source);if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,t){if(e===t){return 0}if(e===null){return 1}if(t===null){return-1}if(e>t){return 1}return-1}function compareByGeneratedPositionsInflated(e,t){var r=e.generatedLine-t.generatedLine;if(r!==0){return r}r=e.generatedColumn-t.generatedColumn;if(r!==0){return r}r=strcmp(e.source,t.source);if(r!==0){return r}r=e.originalLine-t.originalLine;if(r!==0){return r}r=e.originalColumn-t.originalColumn;if(r!==0){return r}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=parseSourceMapInput;function computeSourceURL(e,t,r){t=t||"";if(e){if(e[e.length-1]!=="/"&&t[0]!=="/"){e+="/"}t=e+t}if(r){var n=urlParse(r);if(!n){throw new Error("sourceMapURL could not be parsed")}if(n.path){var i=n.path.lastIndexOf("/");if(i>=0){n.path=n.path.substring(0,i+1)}}t=join(urlGenerate(n),t)}return normalize(t)}t.computeSourceURL=computeSourceURL},49652:function(e){(function(t,r){true?e.exports=r():0})(this,function(){"use strict";var e=function(e,t){return exec(e.slice(),t)};e.inplace=function(e,r){var n=exec(e,r);if(n!==e){t(n,null,e.length,e)}return e};function exec(e,r){if(typeof r!=="function"){r=function(e,t){return String(e).localeCompare(t)}}var n=e.length;if(n<=1){return e}var i=new Array(n);for(var a=1;ai)l=i;if(c>i)c=i;u=s;d=l;while(true){if(u{"use strict";var n=r(29701),i=n.List,a=r(49652),o=r(77755);function flattenToSelectors(e){var t=[];n.walk(e,{visit:"Rule",enter:function(e){if(e.type!=="Rule"){return}var r=this.atrule;var n=e;e.prelude.children.each(function(e,i){var a={item:i,atrule:r,rule:n,pseudos:[]};e.children.each(function(e,t,r){if(e.type==="PseudoClassSelector"||e.type==="PseudoElementSelector"){a.pseudos.push({item:t,list:r})}});t.push(a)})}});return t}function filterByMqs(e,t){return e.filter(function(e){if(e.atrule===null){return~t.indexOf("")}var r=e.atrule.name;var i=r;if(e.atrule.expression&&e.atrule.expression.children.first().type==="MediaQueryList"){var a=n.generate(e.atrule.expression);i=[r,a].join(" ")}return~t.indexOf(i)})}function filterByPseudos(e,t){return e.filter(function(e){var r=n.generate({type:"Selector",children:(new i).fromArray(e.pseudos.map(function(e){return e.item.data}))});return~t.indexOf(r)})}function cleanPseudos(e){e.forEach(function(e){e.pseudos.forEach(function(e){e.list.remove(e.item)})})}function compareSpecificity(e,t){for(var r=0;r<4;r+=1){if(e[r]t[r]){return 1}}return 0}function compareSimpleSelectorNode(e,t){var r=o(e),n=o(t);return compareSpecificity(r,n)}function _bySelectorSpecificity(e,t){return compareSimpleSelectorNode(e.item.data,t.item.data)}function sortSelectors(e){return a(e,_bySelectorSpecificity)}function csstreeToStyleDeclaration(e){var t=e.property,r=n.generate(e.value),i=e.important?"important":"";return{name:t,value:r,priority:i}}function getCssStr(e){return e.content[0].text||e.content[0].cdata||[]}function setCssStr(e,t){if(e.content[0].cdata){e.content[0].cdata=t;return e.content[0].cdata}e.content[0].text=t;return e.content[0].text}e.exports.flattenToSelectors=flattenToSelectors;e.exports.filterByMqs=filterByMqs;e.exports.filterByPseudos=filterByPseudos;e.exports.cleanPseudos=cleanPseudos;e.exports.compareSpecificity=compareSpecificity;e.exports.compareSimpleSelectorNode=compareSimpleSelectorNode;e.exports.sortSelectors=sortSelectors;e.exports.csstreeToStyleDeclaration=csstreeToStyleDeclaration;e.exports.getCssStr=getCssStr;e.exports.setCssStr=setCssStr},20485:(e,t,r)=>{"use strict";var n=r(42342),i=r(3717),a=r(65994),o=r(71921),s=r(79736).By,l=r(58529);var c=function(e){this.config=n(e)};c.prototype.optimize=function(e,t){t=t||{};return new Promise((r,n)=>{if(this.config.error){n(this.config.error);return}var i=this.config,a=i.multipass?10:1,o=0,l=Number.POSITIVE_INFINITY,c=e=>{if(e.error){n(e.error);return}t.multipassCount=o;if(++o{function __ncc_wildcard$0(e){if(e==="_collections.js"||e==="_collections")return r(76344);else if(e==="_path.js"||e==="_path")return r(54870);else if(e==="_transforms.js"||e==="_transforms")return r(22527);else if(e==="addAttributesToSVGElement.js"||e==="addAttributesToSVGElement")return r(5519);else if(e==="addClassesToSVGElement.js"||e==="addClassesToSVGElement")return r(75118);else if(e==="cleanupAttrs.js"||e==="cleanupAttrs")return r(4106);else if(e==="cleanupEnableBackground.js"||e==="cleanupEnableBackground")return r(26483);else if(e==="cleanupIDs.js"||e==="cleanupIDs")return r(37762);else if(e==="cleanupListOfValues.js"||e==="cleanupListOfValues")return r(92331);else if(e==="cleanupNumericValues.js"||e==="cleanupNumericValues")return r(36296);else if(e==="collapseGroups.js"||e==="collapseGroups")return r(59616);else if(e==="convertColors.js"||e==="convertColors")return r(83254);else if(e==="convertEllipseToCircle.js"||e==="convertEllipseToCircle")return r(56061);else if(e==="convertPathData.js"||e==="convertPathData")return r(76307);else if(e==="convertShapeToPath.js"||e==="convertShapeToPath")return r(24199);else if(e==="convertStyleToAttrs.js"||e==="convertStyleToAttrs")return r(72446);else if(e==="convertTransform.js"||e==="convertTransform")return r(72234);else if(e==="inlineStyles.js"||e==="inlineStyles")return r(81862);else if(e==="mergePaths.js"||e==="mergePaths")return r(46123);else if(e==="minifyStyles.js"||e==="minifyStyles")return r(77686);else if(e==="moveElemsAttrsToGroup.js"||e==="moveElemsAttrsToGroup")return r(42778);else if(e==="moveGroupAttrsToElems.js"||e==="moveGroupAttrsToElems")return r(69078);else if(e==="prefixIds.js"||e==="prefixIds")return r(33099);else if(e==="removeAttributesBySelector.js"||e==="removeAttributesBySelector")return r(65731);else if(e==="removeAttrs.js"||e==="removeAttrs")return r(91585);else if(e==="removeComments.js"||e==="removeComments")return r(13383);else if(e==="removeDesc.js"||e==="removeDesc")return r(81668);else if(e==="removeDimensions.js"||e==="removeDimensions")return r(41690);else if(e==="removeDoctype.js"||e==="removeDoctype")return r(42114);else if(e==="removeEditorsNSData.js"||e==="removeEditorsNSData")return r(70325);else if(e==="removeElementsByAttr.js"||e==="removeElementsByAttr")return r(70535);else if(e==="removeEmptyAttrs.js"||e==="removeEmptyAttrs")return r(63151);else if(e==="removeEmptyContainers.js"||e==="removeEmptyContainers")return r(41059);else if(e==="removeEmptyText.js"||e==="removeEmptyText")return r(14156);else if(e==="removeHiddenElems.js"||e==="removeHiddenElems")return r(1378);else if(e==="removeMetadata.js"||e==="removeMetadata")return r(28873);else if(e==="removeNonInheritableGroupAttrs.js"||e==="removeNonInheritableGroupAttrs")return r(67662);else if(e==="removeOffCanvasPaths.js"||e==="removeOffCanvasPaths")return r(58267);else if(e==="removeRasterImages.js"||e==="removeRasterImages")return r(99062);else if(e==="removeScriptElement.js"||e==="removeScriptElement")return r(64186);else if(e==="removeStyleElement.js"||e==="removeStyleElement")return r(99681);else if(e==="removeTitle.js"||e==="removeTitle")return r(76087);else if(e==="removeUnknownsAndDefaults.js"||e==="removeUnknownsAndDefaults")return r(8316);else if(e==="removeUnusedNS.js"||e==="removeUnusedNS")return r(77926);else if(e==="removeUselessDefs.js"||e==="removeUselessDefs")return r(1820);else if(e==="removeUselessStrokeAndFill.js"||e==="removeUselessStrokeAndFill")return r(7519);else if(e==="removeViewBox.js"||e==="removeViewBox")return r(81306);else if(e==="removeXMLNS.js"||e==="removeXMLNS")return r(44987);else if(e==="removeXMLProcInst.js"||e==="removeXMLProcInst")return r(97427);else if(e==="reusePaths.js"||e==="reusePaths")return r(86607);else if(e==="sortAttrs.js"||e==="sortAttrs")return r(17549);else if(e==="sortDefsChildren.js"||e==="sortDefsChildren")return r(5681)}"use strict";var n=r(35747);var i=r(85622);var a=r(31894);e.exports=function(e){var t;e=typeof e=="object"&&e||{};if(e.plugins&&!Array.isArray(e.plugins)){return{error:"Error: Invalid plugins list. Provided 'plugins' in config should be an array."}}if(e.full){t=e;if(Array.isArray(t.plugins)){t.plugins=preparePluginsArray(e,t.plugins)}}else{t=Object.assign({},a.safeLoad(n.readFileSync(r.ab+".svgo.yml","utf8")));t.plugins=preparePluginsArray(e,t.plugins||[]);t=extendConfig(t,e)}if("floatPrecision"in e&&Array.isArray(t.plugins)){t.plugins.forEach(function(t){if(t.params&&"floatPrecision"in t.params){t.params=Object.assign({},t.params,{floatPrecision:e.floatPrecision})}})}if("datauri"in e){t.datauri=e.datauri}if(Array.isArray(t.plugins)){t.plugins=optimizePluginsArray(t.plugins)}return t};function preparePluginsArray(e,t){var r,n;return t.map(function(t){if(typeof t==="object"){n=Object.keys(t)[0];if(typeof t[n]==="object"&&t[n].fn&&typeof t[n].fn==="function"){r=setupCustomPlugin(n,t[n])}else{r=setPluginActiveState(loadPlugin(e,n,t[n].path),t,n);r.name=n}}else{r=loadPlugin(e,t);r.name=t;if(typeof r.params==="object"){r.params=Object.assign({},r.params)}}return r})}function extendConfig(e,t){var r;if(t.plugins){t.plugins.forEach(function(n){if(typeof n==="object"){r=Object.keys(n)[0];if(n[r]==null){console.error(`Error: '${r}' plugin is misconfigured! Have you padded its content in YML properly?\n`)}if(typeof n[r]==="object"&&n[r].fn&&typeof n[r].fn==="function"){e.plugins.push(setupCustomPlugin(r,n[r]))}else if(typeof n[r]==="object"&&n[r].path){e.plugins.push(setPluginActiveState(loadPlugin(t,undefined,n[r].path),n,r))}else{e.plugins.forEach(function(e){if(e.name===r){e=setPluginActiveState(e,n,r)}})}}})}e.multipass=t.multipass;if(t.svg2js){e.svg2js=t.svg2js}if(t.js2svg){e.js2svg=t.js2svg}return e}function setupCustomPlugin(e,t){t.active=true;t.params=Object.assign({},t.params||{});t.name=e;return t}function optimizePluginsArray(e){var t;return e.reduce(function(e,r){if(t&&r.type==t[0].type){t.push(r)}else{e.push(t=[r])}return e},[])}function setPluginActiveState(e,t,r){if(typeof t[r]==="object"){e.params=Object.assign({},e.params||{},t[r]);e.active=true}else if(t[r]===false){e.active=false}else if(t[r]===true){e.active=true}return e}function loadPlugin(e,t,r){var n;if(!r){n=__ncc_wildcard$0(t)}else{n=require(i.resolve(e.__DIR,r))}return Object.assign({},n)}},57403:(e,t,r)=>{"use strict";var n=r(67670);if(!Object.values){n.shim()}var i=function(e){this.parentNode=e;this.classNames=new Set;this.classAttr=null};i.prototype.clone=function(e){var t=this;var r={};Object.keys(t).forEach(function(e){if(e!=="parentNode"){r[e]=t[e]}});r=JSON.parse(JSON.stringify(r));var n=new i(e);Object.assign(n,r);return n};i.prototype.hasClass=function(){this.classAttr={name:"class",value:null};this.addClassHandler()};i.prototype.addClassHandler=function(){Object.defineProperty(this.parentNode.attrs,"class",{get:this.getClassAttr.bind(this),set:this.setClassAttr.bind(this),enumerable:true,configurable:true});this.addClassValueHandler()};i.prototype.addClassValueHandler=function(){Object.defineProperty(this.classAttr,"value",{get:this.getClassValue.bind(this),set:this.setClassValue.bind(this),enumerable:true,configurable:true})};i.prototype.getClassAttr=function(){return this.classAttr};i.prototype.setClassAttr=function(e){this.setClassValue(e.value);this.classAttr=e;this.addClassValueHandler()};i.prototype.getClassValue=function(){var e=Array.from(this.classNames);return e.join(" ")};i.prototype.setClassValue=function(e){if(typeof e==="undefined"){this.classNames.clear();return}var t=e.split(" ");this.classNames=new Set(t)};i.prototype.add=function(){this.hasClass();Object.values(arguments).forEach(this._addSingle.bind(this))};i.prototype._addSingle=function(e){this.classNames.add(e)};i.prototype.remove=function(){this.hasClass();Object.values(arguments).forEach(this._removeSingle.bind(this))};i.prototype._removeSingle=function(e){this.classNames.delete(e)};i.prototype.item=function(e){var t=Array.from(this.classNames);return t[e]};i.prototype.toggle=function(e,t){if(this.contains(e)||t===false){this.classNames.delete(e)}this.classNames.add(e)};i.prototype.contains=function(e){return this.classNames.has(e)};e.exports=i},20889:(e,t,r)=>{"use strict";var n=r(89072);var i={isTag:function(e){return e.isElem()},getParent:function(e){return e.parentNode||null},getChildren:function(e){return e.content||[]},getName:function(e){return e.elem},getText:function(e){return e.content[0].text||e.content[0].cdata||""},getAttributeValue:function(e,t){return e.hasAttr(t)?e.attr(t).value:null}};var a=n(i);e.exports=a},36395:(e,t,r)=>{"use strict";var n=r(29701),i=r(27604);var a=function(e){this.parentNode=e;this.properties=new Map;this.hasSynced=false;this.styleAttr=null;this.styleValue=null;this.parseError=false};a.prototype.clone=function(e){var t=this;var r={};Object.keys(t).forEach(function(e){if(e!=="parentNode"){r[e]=t[e]}});r=JSON.parse(JSON.stringify(r));var n=new a(e);Object.assign(n,r);return n};a.prototype.hasStyle=function(){this.addStyleHandler()};a.prototype.addStyleHandler=function(){this.styleAttr={name:"style",value:null};Object.defineProperty(this.parentNode.attrs,"style",{get:this.getStyleAttr.bind(this),set:this.setStyleAttr.bind(this),enumerable:true,configurable:true});this.addStyleValueHandler()};a.prototype.addStyleValueHandler=function(){Object.defineProperty(this.styleAttr,"value",{get:this.getStyleValue.bind(this),set:this.setStyleValue.bind(this),enumerable:true,configurable:true})};a.prototype.getStyleAttr=function(){return this.styleAttr};a.prototype.setStyleAttr=function(e){this.setStyleValue(e.value);this.styleAttr=e;this.addStyleValueHandler();this.hasSynced=false};a.prototype.getStyleValue=function(){return this.getCssText()};a.prototype.setStyleValue=function(e){this.properties.clear();this.styleValue=e;this.hasSynced=false};a.prototype._loadCssText=function(){if(this.hasSynced){return}this.hasSynced=true;if(!this.styleValue||this.styleValue.length===0){return}var e=this.styleValue;var t={};try{t=n.parse(e,{context:"declarationList",parseValue:false})}catch(e){this.parseError=e;return}this.parseError=false;var r=this;t.children.each(function(e){try{var t=i.csstreeToStyleDeclaration(e);r.setProperty(t.name,t.value,t.priority)}catch(e){if(e.message!=="Unknown node type: undefined"){r.parseError=e}}})};a.prototype.getCssText=function(){var e=this.getProperties();if(this.parseError){return this.styleValue}var t=[];e.forEach(function(e,r){var n=e.priority==="important"?"!important":"";t.push(r.trim()+":"+e.value.trim()+n)});return t.join(";")};a.prototype._handleParseError=function(){if(this.parseError){console.warn("Warning: Parse error when parsing inline styles, style properties of this element cannot be used. The raw styles can still be get/set using .attr('style').value. Error details: "+this.parseError)}};a.prototype._getProperty=function(e){if(typeof e==="undefined"){throw Error("1 argument required, but only 0 present.")}var t=this.getProperties();this._handleParseError();var r=t.get(e.trim());return r};a.prototype.getPropertyPriority=function(e){var t=this._getProperty(e);return t?t.priority:""};a.prototype.getPropertyValue=function(e){var t=this._getProperty(e);return t?t.value:null};a.prototype.item=function(e){if(typeof e==="undefined"){throw Error("1 argument required, but only 0 present.")}var t=this.getProperties();this._handleParseError();return Array.from(t.keys())[e]};a.prototype.getProperties=function(){this._loadCssText();return this.properties};a.prototype.removeProperty=function(e){if(typeof e==="undefined"){throw Error("1 argument required, but only 0 present.")}this.hasStyle();var t=this.getProperties();this._handleParseError();var r=this.getPropertyValue(e);t.delete(e.trim());return r};a.prototype.setProperty=function(e,t,r){if(typeof e==="undefined"){throw Error("propertyName argument required, but only not present.")}this.hasStyle();var n=this.getProperties();this._handleParseError();var i={value:t.trim(),priority:r.trim()};n.set(e.trim(),i);return i};e.exports=a},58529:(e,t,r)=>{"use strict";var n=r(12087).EOL,i=r(76344).elemsGroups.textContent.concat("title");var a={doctypeStart:"",procInstStart:"",tagOpenStart:"<",tagOpenEnd:">",tagCloseStart:"",tagShortStart:"<",tagShortEnd:"/>",attrStart:'="',attrEnd:'"',commentStart:"\x3c!--",commentEnd:"--\x3e",cdataStart:"",textStart:"",textEnd:"",indent:4,regEntities:/[&'"<>]/g,regValEntities:/[&"<>]/g,encodeEntity:encodeEntity,pretty:false,useShortTags:true};var o={"&":"&","'":"'",'"':""",">":">","<":"<"};e.exports=function(e,t){return new JS2SVG(t).convert(e)};function JS2SVG(e){if(e){this.config=Object.assign({},a,e)}else{this.config=Object.assign({},a)}var t=this.config.indent;if(typeof t=="number"&&!isNaN(t)){this.config.indent=t<0?"\t":" ".repeat(t)}else if(typeof t!="string"){this.config.indent=" "}if(this.config.pretty){this.config.doctypeEnd+=n;this.config.procInstEnd+=n;this.config.commentEnd+=n;this.config.cdataEnd+=n;this.config.tagShortEnd+=n;this.config.tagOpenEnd+=n;this.config.tagCloseEnd+=n;this.config.textEnd+=n}this.indentLevel=0;this.textContext=null}function encodeEntity(e){return o[e]}JS2SVG.prototype.convert=function(e){var t="";if(e.content){this.indentLevel++;e.content.forEach(function(e){if(e.elem){t+=this.createElem(e)}else if(e.text){t+=this.createText(e.text)}else if(e.doctype){t+=this.createDoctype(e.doctype)}else if(e.processinginstruction){t+=this.createProcInst(e.processinginstruction)}else if(e.comment){t+=this.createComment(e.comment)}else if(e.cdata){t+=this.createCDATA(e.cdata)}},this)}this.indentLevel--;return{data:t,info:{width:this.width,height:this.height}}};JS2SVG.prototype.createIndent=function(){var e="";if(this.config.pretty&&!this.textContext){e=this.config.indent.repeat(this.indentLevel-1)}return e};JS2SVG.prototype.createDoctype=function(e){return this.config.doctypeStart+e+this.config.doctypeEnd};JS2SVG.prototype.createProcInst=function(e){return this.config.procInstStart+e.name+" "+e.body+this.config.procInstEnd};JS2SVG.prototype.createComment=function(e){return this.config.commentStart+e+this.config.commentEnd};JS2SVG.prototype.createCDATA=function(e){return this.createIndent()+this.config.cdataStart+e+this.config.cdataEnd};JS2SVG.prototype.createElem=function(e){if(e.isElem("svg")&&e.hasAttr("width")&&e.hasAttr("height")){this.width=e.attr("width").value;this.height=e.attr("height").value}if(e.isEmpty()){if(this.config.useShortTags){return this.createIndent()+this.config.tagShortStart+e.elem+this.createAttrs(e)+this.config.tagShortEnd}else{return this.createIndent()+this.config.tagShortStart+e.elem+this.createAttrs(e)+this.config.tagOpenEnd+this.config.tagCloseStart+e.elem+this.config.tagCloseEnd}}else{var t=this.config.tagOpenStart,r=this.config.tagOpenEnd,o=this.config.tagCloseStart,s=this.config.tagCloseEnd,l=this.createIndent(),c="",u="",d="";if(this.textContext){t=a.tagOpenStart;r=a.tagOpenEnd;o=a.tagCloseStart;s=a.tagCloseEnd;l=""}else if(e.isElem(i)){if(this.config.pretty){c+=l+this.config.indent}this.textContext=e}u+=this.convert(e).data;if(this.textContext==e){this.textContext=null;if(this.config.pretty)d=n}return l+t+e.elem+this.createAttrs(e)+r+c+u+d+this.createIndent()+o+e.elem+s}};JS2SVG.prototype.createAttrs=function(e){var t="";e.eachAttr(function(e){if(e.value!==undefined){t+=" "+e.name+this.config.attrStart+String(e.value).replace(this.config.regValEntities,this.config.encodeEntity)+this.config.attrEnd}else{t+=" "+e.name}},this);return t};JS2SVG.prototype.createText=function(e){return this.createIndent()+this.config.textStart+e.replace(this.config.regEntities,this.config.encodeEntity)+(this.textContext?"":this.config.textEnd)}},71921:(e,t,r)=>{"use strict";var n=r(32825);var i=r(20889);var a={xmlMode:true,adapter:i};var o=e.exports=function(e,t){Object.assign(this,e);if(t){Object.defineProperty(this,"parentNode",{writable:true,value:t})}};o.prototype.clone=function(){var e=this;var t={};Object.keys(e).forEach(function(r){if(r!=="class"&&r!=="style"&&r!=="content"){t[r]=e[r]}});t=JSON.parse(JSON.stringify(t));var r=new o(t,!!e.parentNode);if(e.class){r.class=e.class.clone(r)}if(e.style){r.style=e.style.clone(r)}if(e.content){r.content=e.content.map(function(e){var t=e.clone();t.parentNode=r;return t})}return r};o.prototype.isElem=function(e){if(!e)return!!this.elem;if(Array.isArray(e))return!!this.elem&&e.indexOf(this.elem)>-1;return!!this.elem&&this.elem===e};o.prototype.renameElem=function(e){if(e&&typeof e==="string")this.elem=this.local=e;return this};o.prototype.isEmpty=function(){return!this.content||!this.content.length};o.prototype.closestElem=function(e){var t=this;while((t=t.parentNode)&&!t.isElem(e));return t};o.prototype.spliceContent=function(e,t,r){if(arguments.length<2)return[];if(!Array.isArray(r))r=Array.apply(null,arguments).slice(2);r.forEach(function(e){e.parentNode=this},this);return this.content.splice.apply(this.content,[e,t].concat(r))};o.prototype.hasAttr=function(e,t){if(!this.attrs||!Object.keys(this.attrs).length)return false;if(!arguments.length)return!!this.attrs;if(t!==undefined)return!!this.attrs[e]&&this.attrs[e].value===t.toString();return!!this.attrs[e]};o.prototype.hasAttrLocal=function(e,t){if(!this.attrs||!Object.keys(this.attrs).length)return false;if(!arguments.length)return!!this.attrs;var r;switch(t!=null&&t.constructor&&t.constructor.name){case"Number":case"String":r=stringValueTest;break;case"RegExp":r=regexpValueTest;break;case"Function":r=funcValueTest;break;default:r=nameTest}return this.someAttr(r);function nameTest(t){return t.local===e}function stringValueTest(r){return r.local===e&&t==r.value}function regexpValueTest(r){return r.local===e&&t.test(r.value)}function funcValueTest(r){return r.local===e&&t(r.value)}};o.prototype.attr=function(e,t){if(!this.hasAttr()||!arguments.length)return undefined;if(t!==undefined)return this.hasAttr(e,t)?this.attrs[e]:undefined;return this.attrs[e]};o.prototype.computedAttr=function(e,t){if(!arguments.length)return;for(var r=this;r&&(!r.hasAttr(e)||!r.attr(e).value);r=r.parentNode);if(t!=null){return r?r.hasAttr(e,t):false}else if(r&&r.hasAttr(e)){return r.attrs[e].value}};o.prototype.removeAttr=function(e,t,r){if(!arguments.length)return false;if(Array.isArray(e)){e.forEach(this.removeAttr,this);return false}if(!this.hasAttr(e))return false;if(!r&&t&&this.attrs[e].value!==t)return false;delete this.attrs[e];if(!Object.keys(this.attrs).length)delete this.attrs;return true};o.prototype.addAttr=function(e){e=e||{};if(e.name===undefined||e.prefix===undefined||e.local===undefined)return false;this.attrs=this.attrs||{};this.attrs[e.name]=e;if(e.name==="class"){this.class.hasClass()}if(e.name==="style"){this.style.hasStyle()}return this.attrs[e.name]};o.prototype.eachAttr=function(e,t){if(!this.hasAttr())return false;for(var r in this.attrs){e.call(t,this.attrs[r])}return true};o.prototype.someAttr=function(e,t){if(!this.hasAttr())return false;for(var r in this.attrs){if(e.call(t,this.attrs[r]))return true}return false};o.prototype.querySelectorAll=function(e){var t=n(e,this,a);return t.length>0?t:null};o.prototype.querySelector=function(e){return n.selectOne(e,this,a)};o.prototype.matches=function(e){return n.is(this,e,a)}},65994:e=>{"use strict";e.exports=function(e,t,r){r.forEach(function(r){switch(r[0].type){case"perItem":e=perItem(e,t,r);break;case"perItemReverse":e=perItem(e,t,r,true);break;case"full":e=full(e,t,r);break}});return e};function perItem(e,t,r,n){function monkeys(e){e.content=e.content.filter(function(e){if(n&&e.content){monkeys(e)}var i=true;for(var a=0;i&&a{"use strict";var n=r(25510),i=r(71921),a=r(57403),o=r(36395),s=//g;var l={strict:true,trim:false,normalize:true,lowercase:true,xmlns:true,position:true};e.exports=function(e,t){var r=n.parser(l.strict,l),c=new i({elem:"#document",content:[]}),u=c,d=[c],p=null,m=false;function pushToContent(e){e=new i(e,u);(u.content=u.content||[]).push(e);return e}r.ondoctype=function(t){pushToContent({doctype:t});var n=t.indexOf("["),i;if(n>=0){s.lastIndex=n;while((i=s.exec(e))!=null){r.ENTITIES[i[1]]=i[2]||i[3]}}};r.onprocessinginstruction=function(e){pushToContent({processinginstruction:e})};r.oncomment=function(e){pushToContent({comment:e.trim()})};r.oncdata=function(e){pushToContent({cdata:e})};r.onopentag=function(e){var t={elem:e.name,prefix:e.prefix,local:e.local,attrs:{}};t.class=new a(t);t.style=new o(t);if(Object.keys(e.attributes).length){for(var r in e.attributes){if(r==="class"){t.class.hasClass()}if(r==="style"){t.style.hasStyle()}t.attrs[r]={name:r,value:e.attributes[r].value,prefix:e.attributes[r].prefix,local:e.attributes[r].local}}}t=pushToContent(t);u=t;if(e.name=="text"&&!e.prefix){p=u}d.push(t)};r.ontext=function(e){if(/\S/.test(e)||p){if(!p)e=e.trim();pushToContent({text:e})}};r.onclosetag=function(){var e=d.pop();if(e==p){trim(p);p=null}u=d[d.length-1]};r.onerror=function(e){e.message="Error in parsing SVG: "+e.message;if(e.message.indexOf("Unexpected end")<0){throw e}};r.onend=function(){if(!this.error){t(c)}else{t({error:this.error.message})}};try{r.write(e)}catch(e){t({error:e.message});m=true}if(!m)r.close();function trim(e){if(!e.content)return e;var t=e.content[0],r=e.content[e.content.length-1];while(t&&t.content&&!t.text)t=t.content[0];if(t&&t.text)t.text=t.text.replace(/^\s+/,"");while(r&&r.content&&!r.text)r=r.content[r.content.length-1];if(r&&r.text)r.text=r.text.replace(/\s+$/,"");return e}}},79736:(e,t,r)=>{"use strict";var n;var i=r(35747);t.By=function(e,t){var r="data:image/svg+xml";if(!t||t==="base64"){r+=";base64,";if(Buffer.from){e=r+Buffer.from(e).toString("base64")}else{e=r+new Buffer(e).toString("base64")}}else if(t==="enc"){e=r+","+encodeURIComponent(e)}else if(t==="unenc"){e=r+","+e}return e};n=function(e){var t=/data:image\/svg\+xml(;charset=[^;,]*)?(;base64)?,(.*)/;var r=t.exec(e);if(!r)return e;var n=r[3];if(r[2]){e=new Buffer(n,"base64").toString("utf8")}else if(n.charAt(0)==="%"){e=decodeURIComponent(n)}else if(n.charAt(0)==="<"){e=n}return e};n=function(e,t){return e.filter(function(e){return t.indexOf(e)>-1})};t.Kr=function(e,t,r){var n="",i,o;e.forEach(function(e,s){i=" ";if(s==0)i="";if(t.noSpaceAfterFlags&&(r=="A"||r=="a")){var l=s%7;if(l==4||l==5)i=""}if(t.leadingZero){e=a(e)}if(t.negativeExtraSpace&&i!=""&&(e<0||String(e).charCodeAt(0)==46&&o%1!==0)){i=""}o=e;n+=i+e});return n};var a=t.RM=function(e){var t=e.toString();if(0{"use strict";t.elemsGroups={animation:["animate","animateColor","animateMotion","animateTransform","set"],descriptive:["desc","metadata","title"],shape:["circle","ellipse","line","path","polygon","polyline","rect"],structural:["defs","g","svg","symbol","use"],paintServer:["solidColor","linearGradient","radialGradient","meshGradient","pattern","hatch"],nonRendering:["linearGradient","radialGradient","pattern","clipPath","mask","marker","symbol","filter","solidColor"],container:["a","defs","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","foreignObject"],textContent:["altGlyph","altGlyphDef","altGlyphItem","glyph","glyphRef","textPath","text","tref","tspan"],textContentChild:["altGlyph","textPath","tref","tspan"],lightSource:["feDiffuseLighting","feSpecularLighting","feDistantLight","fePointLight","feSpotLight"],filterPrimitive:["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence"]};t.pathElems=["path","glyph","missing-glyph"];t.attrsGroups={animationAddition:["additive","accumulate"],animationAttributeTarget:["attributeType","attributeName"],animationEvent:["onbegin","onend","onrepeat","onload"],animationTiming:["begin","dur","end","min","max","restart","repeatCount","repeatDur","fill"],animationValue:["calcMode","values","keyTimes","keySplines","from","to","by"],conditionalProcessing:["requiredFeatures","requiredExtensions","systemLanguage"],core:["id","tabindex","xml:base","xml:lang","xml:space"],graphicalEvent:["onfocusin","onfocusout","onactivate","onclick","onmousedown","onmouseup","onmouseover","onmousemove","onmouseout","onload"],presentation:["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cursor","direction","display","dominant-baseline","enable-background","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","word-spacing","writing-mode"],xlink:["xlink:href","xlink:show","xlink:actuate","xlink:type","xlink:role","xlink:arcrole","xlink:title"],documentEvent:["onunload","onabort","onerror","onresize","onscroll","onzoom"],filterPrimitive:["x","y","width","height","result"],transferFunction:["type","tableValues","slope","intercept","amplitude","exponent","offset"]};t.attrsGroupsDefaults={core:{"xml:space":"preserve"},filterPrimitive:{x:"0",y:"0",width:"100%",height:"100%"},presentation:{clip:"auto","clip-path":"none","clip-rule":"nonzero",mask:"none",opacity:"1","stop-color":"#000","stop-opacity":"1","fill-opacity":"1","fill-rule":"nonzero",fill:"#000",stroke:"none","stroke-width":"1","stroke-linecap":"butt","stroke-linejoin":"miter","stroke-miterlimit":"4","stroke-dasharray":"none","stroke-dashoffset":"0","stroke-opacity":"1","paint-order":"normal","vector-effect":"none",display:"inline",visibility:"visible","marker-start":"none","marker-mid":"none","marker-end":"none","color-interpolation":"sRGB","color-interpolation-filters":"linearRGB","color-rendering":"auto","shape-rendering":"auto","text-rendering":"auto","image-rendering":"auto","font-style":"normal","font-variant":"normal","font-weight":"normal","font-stretch":"normal","font-size":"medium","font-size-adjust":"none",kerning:"auto","letter-spacing":"normal","word-spacing":"normal","text-decoration":"none","text-anchor":"start","text-overflow":"clip","writing-mode":"lr-tb","glyph-orientation-vertical":"auto","glyph-orientation-horizontal":"0deg",direction:"ltr","unicode-bidi":"normal","dominant-baseline":"auto","alignment-baseline":"baseline","baseline-shift":"baseline"},transferFunction:{slope:"1",intercept:"0",amplitude:"1",exponent:"1",offset:"0"}};t.elems={a:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","transform","target"],defaults:{target:"_self"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},altGlyph:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","x","y","dx","dy","glyphRef","format","rotate"]},altGlyphDef:{attrsGroups:["core"],content:["glyphRef"]},altGlyphItem:{attrsGroups:["core"],content:["glyphRef","altGlyphItem"]},animate:{attrsGroups:["conditionalProcessing","core","animationAddition","animationAttributeTarget","animationEvent","animationTiming","animationValue","presentation","xlink"],attrs:["externalResourcesRequired"],contentGroups:["descriptive"]},animateColor:{attrsGroups:["conditionalProcessing","core","animationEvent","xlink","animationAttributeTarget","animationTiming","animationValue","animationAddition","presentation"],attrs:["externalResourcesRequired"],contentGroups:["descriptive"]},animateMotion:{attrsGroups:["conditionalProcessing","core","animationEvent","xlink","animationTiming","animationValue","animationAddition"],attrs:["externalResourcesRequired","path","keyPoints","rotate","origin"],defaults:{rotate:"0"},contentGroups:["descriptive"],content:["mpath"]},animateTransform:{attrsGroups:["conditionalProcessing","core","animationEvent","xlink","animationAttributeTarget","animationTiming","animationValue","animationAddition"],attrs:["externalResourcesRequired","type"],contentGroups:["descriptive"]},circle:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","cx","cy","r"],defaults:{cx:"0",cy:"0"},contentGroups:["animation","descriptive"]},clipPath:{attrsGroups:["conditionalProcessing","core","presentation"],attrs:["class","style","externalResourcesRequired","transform","clipPathUnits"],defaults:{clipPathUnits:"userSpaceOnUse"},contentGroups:["animation","descriptive","shape"],content:["text","use"]},"color-profile":{attrsGroups:["core","xlink"],attrs:["local","name","rendering-intent"],defaults:{name:"sRGB","rendering-intent":"auto"},contentGroups:["descriptive"]},cursor:{attrsGroups:["core","conditionalProcessing","xlink"],attrs:["externalResourcesRequired","x","y"],defaults:{x:"0",y:"0"},contentGroups:["descriptive"]},defs:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform"],contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},desc:{attrsGroups:["core"],attrs:["class","style"]},ellipse:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","cx","cy","rx","ry"],defaults:{cx:"0",cy:"0"},contentGroups:["animation","descriptive"]},feBlend:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","in2","mode"],defaults:{mode:"normal"},content:["animate","set"]},feColorMatrix:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","type","values"],defaults:{type:"matrix"},content:["animate","set"]},feComponentTransfer:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in"],content:["feFuncA","feFuncB","feFuncG","feFuncR"]},feComposite:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","in2","operator","k1","k2","k3","k4"],defaults:{operator:"over",k1:"0",k2:"0",k3:"0",k4:"0"},content:["animate","set"]},feConvolveMatrix:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","order","kernelMatrix","divisor","bias","targetX","targetY","edgeMode","kernelUnitLength","preserveAlpha"],defaults:{order:"3",bias:"0",edgeMode:"duplicate",preserveAlpha:"false"},content:["animate","set"]},feDiffuseLighting:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","surfaceScale","diffuseConstant","kernelUnitLength"],defaults:{surfaceScale:"1",diffuseConstant:"1"},contentGroups:["descriptive"],content:["feDistantLight","fePointLight","feSpotLight"]},feDisplacementMap:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","in2","scale","xChannelSelector","yChannelSelector"],defaults:{scale:"0",xChannelSelector:"A",yChannelSelector:"A"},content:["animate","set"]},feDistantLight:{attrsGroups:["core"],attrs:["azimuth","elevation"],defaults:{azimuth:"0",elevation:"0"},content:["animate","set"]},feFlood:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style"],content:["animate","animateColor","set"]},feFuncA:{attrsGroups:["core","transferFunction"],content:["set","animate"]},feFuncB:{attrsGroups:["core","transferFunction"],content:["set","animate"]},feFuncG:{attrsGroups:["core","transferFunction"],content:["set","animate"]},feFuncR:{attrsGroups:["core","transferFunction"],content:["set","animate"]},feGaussianBlur:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","stdDeviation"],defaults:{stdDeviation:"0"},content:["set","animate"]},feImage:{attrsGroups:["core","presentation","filterPrimitive","xlink"],attrs:["class","style","externalResourcesRequired","preserveAspectRatio","href","xlink:href"],defaults:{preserveAspectRatio:"xMidYMid meet"},content:["animate","animateTransform","set"]},feMerge:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style"],content:["feMergeNode"]},feMergeNode:{attrsGroups:["core"],attrs:["in"],content:["animate","set"]},feMorphology:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","operator","radius"],defaults:{operator:"erode",radius:"0"},content:["animate","set"]},feOffset:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","dx","dy"],defaults:{dx:"0",dy:"0"},content:["animate","set"]},fePointLight:{attrsGroups:["core"],attrs:["x","y","z"],defaults:{x:"0",y:"0",z:"0"},content:["animate","set"]},feSpecularLighting:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","surfaceScale","specularConstant","specularExponent","kernelUnitLength"],defaults:{surfaceScale:"1",specularConstant:"1",specularExponent:"1"},contentGroups:["descriptive","lightSource"]},feSpotLight:{attrsGroups:["core"],attrs:["x","y","z","pointsAtX","pointsAtY","pointsAtZ","specularExponent","limitingConeAngle"],defaults:{x:"0",y:"0",z:"0",pointsAtX:"0",pointsAtY:"0",pointsAtZ:"0",specularExponent:"1"},content:["animate","set"]},feTile:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in"],content:["animate","set"]},feTurbulence:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","baseFrequency","numOctaves","seed","stitchTiles","type"],defaults:{baseFrequency:"0",numOctaves:"1",seed:"0",stitchTiles:"noStitch",type:"turbulence"},content:["animate","set"]},filter:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","externalResourcesRequired","x","y","width","height","filterRes","filterUnits","primitiveUnits","href","xlink:href"],defaults:{primitiveUnits:"userSpaceOnUse",x:"-10%",y:"-10%",width:"120%",height:"120%"},contentGroups:["descriptive","filterPrimitive"],content:["animate","set"]},font:{attrsGroups:["core","presentation"],attrs:["class","style","externalResourcesRequired","horiz-origin-x","horiz-origin-y","horiz-adv-x","vert-origin-x","vert-origin-y","vert-adv-y"],defaults:{"horiz-origin-x":"0","horiz-origin-y":"0"},contentGroups:["descriptive"],content:["font-face","glyph","hkern","missing-glyph","vkern"]},"font-face":{attrsGroups:["core"],attrs:["font-family","font-style","font-variant","font-weight","font-stretch","font-size","unicode-range","units-per-em","panose-1","stemv","stemh","slope","cap-height","x-height","accent-height","ascent","descent","widths","bbox","ideographic","alphabetic","mathematical","hanging","v-ideographic","v-alphabetic","v-mathematical","v-hanging","underline-position","underline-thickness","strikethrough-position","strikethrough-thickness","overline-position","overline-thickness"],defaults:{"font-style":"all","font-variant":"normal","font-weight":"all","font-stretch":"normal","unicode-range":"U+0-10FFFF","units-per-em":"1000","panose-1":"0 0 0 0 0 0 0 0 0 0",slope:"0"},contentGroups:["descriptive"],content:["font-face-src"]},"font-face-format":{attrsGroups:["core"],attrs:["string"]},"font-face-name":{attrsGroups:["core"],attrs:["name"]},"font-face-src":{attrsGroups:["core"],content:["font-face-name","font-face-uri"]},"font-face-uri":{attrsGroups:["core","xlink"],attrs:["href","xlink:href"],content:["font-face-format"]},foreignObject:{attrsGroups:["core","conditionalProcessing","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","x","y","width","height"],defaults:{x:0,y:0}},g:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform"],contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},glyph:{attrsGroups:["core","presentation"],attrs:["class","style","d","horiz-adv-x","vert-origin-x","vert-origin-y","vert-adv-y","unicode","glyph-name","orientation","arabic-form","lang"],defaults:{"arabic-form":"initial"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},glyphRef:{attrsGroups:["core","presentation"],attrs:["class","style","d","horiz-adv-x","vert-origin-x","vert-origin-y","vert-adv-y"],contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},hatch:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","x","y","pitch","rotate","hatchUnits","hatchContentUnits","transform"],defaults:{hatchUnits:"objectBoundingBox",hatchContentUnits:"userSpaceOnUse",x:"0",y:"0",pitch:"0",rotate:"0"},contentGroups:["animation","descriptive"],content:["hatchPath"]},hatchPath:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","d","offset"],defaults:{offset:"0"},contentGroups:["animation","descriptive"]},hkern:{attrsGroups:["core"],attrs:["u1","g1","u2","g2","k"]},image:{attrsGroups:["core","conditionalProcessing","graphicalEvent","xlink","presentation"],attrs:["class","style","externalResourcesRequired","preserveAspectRatio","transform","x","y","width","height","href","xlink:href"],defaults:{x:"0",y:"0",preserveAspectRatio:"xMidYMid meet"},contentGroups:["animation","descriptive"]},line:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","x1","y1","x2","y2"],defaults:{x1:"0",y1:"0",x2:"0",y2:"0"},contentGroups:["animation","descriptive"]},linearGradient:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","externalResourcesRequired","x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],defaults:{x1:"0",y1:"0",x2:"100%",y2:"0",spreadMethod:"pad"},contentGroups:["descriptive"],content:["animate","animateTransform","set","stop"]},marker:{attrsGroups:["core","presentation"],attrs:["class","style","externalResourcesRequired","viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],defaults:{markerUnits:"strokeWidth",refX:"0",refY:"0",markerWidth:"3",markerHeight:"3"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},mask:{attrsGroups:["conditionalProcessing","core","presentation"],attrs:["class","style","externalResourcesRequired","x","y","width","height","maskUnits","maskContentUnits"],defaults:{maskUnits:"objectBoundingBox",maskContentUnits:"userSpaceOnUse",x:"-10%",y:"-10%",width:"120%",height:"120%"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},metadata:{attrsGroups:["core"]},"missing-glyph":{attrsGroups:["core","presentation"],attrs:["class","style","d","horiz-adv-x","vert-origin-x","vert-origin-y","vert-adv-y"],contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},mpath:{attrsGroups:["core","xlink"],attrs:["externalResourcesRequired","href","xlink:href"],contentGroups:["descriptive"]},path:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","d","pathLength"],contentGroups:["animation","descriptive"]},pattern:{attrsGroups:["conditionalProcessing","core","presentation","xlink"],attrs:["class","style","externalResourcesRequired","viewBox","preserveAspectRatio","x","y","width","height","patternUnits","patternContentUnits","patternTransform","href","xlink:href"],defaults:{patternUnits:"objectBoundingBox",patternContentUnits:"userSpaceOnUse",x:"0",y:"0",width:"0",height:"0",preserveAspectRatio:"xMidYMid meet"},contentGroups:["animation","descriptive","paintServer","shape","structural"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},polygon:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","points"],contentGroups:["animation","descriptive"]},polyline:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","points"],contentGroups:["animation","descriptive"]},radialGradient:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","externalResourcesRequired","cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],defaults:{gradientUnits:"objectBoundingBox",cx:"50%",cy:"50%",r:"50%"},contentGroups:["descriptive"],content:["animate","animateTransform","set","stop"]},meshGradient:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","x","y","gradientUnits","transform"],contentGroups:["descriptive","paintServer","animation"],content:["meshRow"]},meshRow:{attrsGroups:["core","presentation"],attrs:["class","style"],contentGroups:["descriptive"],content:["meshPatch"]},meshPatch:{attrsGroups:["core","presentation"],attrs:["class","style"],contentGroups:["descriptive"],content:["stop"]},rect:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","x","y","width","height","rx","ry"],defaults:{x:"0",y:"0"},contentGroups:["animation","descriptive"]},script:{attrsGroups:["core","xlink"],attrs:["externalResourcesRequired","type","href","xlink:href"]},set:{attrsGroups:["conditionalProcessing","core","animation","xlink","animationAttributeTarget","animationTiming"],attrs:["externalResourcesRequired","to"],contentGroups:["descriptive"]},solidColor:{attrsGroups:["core","presentation"],attrs:["class","style"],contentGroups:["paintServer"]},stop:{attrsGroups:["core","presentation"],attrs:["class","style","offset","path"],content:["animate","animateColor","set"]},style:{attrsGroups:["core"],attrs:["type","media","title"],defaults:{type:"text/css"}},svg:{attrsGroups:["conditionalProcessing","core","documentEvent","graphicalEvent","presentation"],attrs:["class","style","x","y","width","height","viewBox","preserveAspectRatio","zoomAndPan","version","baseProfile","contentScriptType","contentStyleType"],defaults:{x:"0",y:"0",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet",zoomAndPan:"magnify",version:"1.1",baseProfile:"none",contentScriptType:"application/ecmascript",contentStyleType:"text/css"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},switch:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform"],contentGroups:["animation","descriptive","shape"],content:["a","foreignObject","g","image","svg","switch","text","use"]},symbol:{attrsGroups:["core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","preserveAspectRatio","viewBox","refX","refY"],defaults:{refX:0,refY:0},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},text:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","lengthAdjust","x","y","dx","dy","rotate","textLength"],defaults:{x:"0",y:"0",lengthAdjust:"spacing"},contentGroups:["animation","descriptive","textContentChild"],content:["a"]},textPath:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","href","xlink:href","startOffset","method","spacing","d"],defaults:{startOffset:"0",method:"align",spacing:"exact"},contentGroups:["descriptive"],content:["a","altGlyph","animate","animateColor","set","tref","tspan"]},title:{attrsGroups:["core"],attrs:["class","style"]},tref:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","href","xlink:href"],contentGroups:["descriptive"],content:["animate","animateColor","set"]},tspan:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","x","y","dx","dy","rotate","textLength","lengthAdjust"],contentGroups:["descriptive"],content:["a","altGlyph","animate","animateColor","set","tref","tspan"]},use:{attrsGroups:["core","conditionalProcessing","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","transform","x","y","width","height","href","xlink:href"],defaults:{x:"0",y:"0"},contentGroups:["animation","descriptive"]},view:{attrsGroups:["core"],attrs:["externalResourcesRequired","viewBox","preserveAspectRatio","zoomAndPan","viewTarget"],contentGroups:["descriptive"]},vkern:{attrsGroups:["core"],attrs:["u1","g1","u2","g2","k"]}};t.editorNamespaces=["http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd","http://www.inkscape.org/namespaces/inkscape","http://www.bohemiancoding.com/sketch/ns","http://ns.adobe.com/AdobeIllustrator/10.0/","http://ns.adobe.com/Graphs/1.0/","http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/","http://ns.adobe.com/Variables/1.0/","http://ns.adobe.com/SaveForWeb/1.0/","http://ns.adobe.com/Extensibility/1.0/","http://ns.adobe.com/Flows/1.0/","http://ns.adobe.com/ImageReplacement/1.0/","http://ns.adobe.com/GenericCustomNamespace/1.0/","http://ns.adobe.com/XPath/1.0/","http://schemas.microsoft.com/visio/2003/SVGExtensions/","http://taptrix.com/vectorillustrator/svg_extensions","http://www.figma.com/figma/ns","http://purl.org/dc/elements/1.1/","http://creativecommons.org/ns#","http://www.w3.org/1999/02/22-rdf-syntax-ns#","http://www.serif.com/","http://www.vector.evaxdesign.sk"];t.referencesProps=["clip-path","color-profile","fill","filter","marker-start","marker-mid","marker-end","mask","stroke","style"];t.inheritableAttrs=["clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cursor","direction","dominant-baseline","fill","fill-opacity","fill-rule","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","marker","marker-end","marker-mid","marker-start","paint-order","pointer-events","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-rendering","transform","visibility","word-spacing","writing-mode"];t.presentationNonInheritableGroupAttrs=["display","clip-path","filter","mask","opacity","text-decoration","transform","unicode-bidi","visibility"];t.colorsNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#639",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"};t.colorsShortNames={"#f0ffff":"azure","#f5f5dc":"beige","#ffe4c4":"bisque","#a52a2a":"brown","#ff7f50":"coral","#ffd700":"gold","#808080":"gray","#008000":"green","#4b0082":"indigo","#fffff0":"ivory","#f0e68c":"khaki","#faf0e6":"linen","#800000":"maroon","#000080":"navy","#808000":"olive","#ffa500":"orange","#da70d6":"orchid","#cd853f":"peru","#ffc0cb":"pink","#dda0dd":"plum","#800080":"purple","#f00":"red","#ff0000":"red","#fa8072":"salmon","#a0522d":"sienna","#c0c0c0":"silver","#fffafa":"snow","#d2b48c":"tan","#008080":"teal","#ff6347":"tomato","#ee82ee":"violet","#f5deb3":"wheat"};t.colorsProps=["color","fill","stroke","stop-color","flood-color","lighting-color"]},54870:(e,t,r)=>{"use strict";var n=String.raw`[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?\s*`,i=String.raw`(?:\s,?\s*|,\s*)`,a=`(${n})`+i,o=`([01])${i}?`,s=String.raw`(${n})${i}?(${n})`,l=(a+"?").repeat(2)+a+o.repeat(2)+s;var c=/([MmLlHhVvCcSsQqTtAaZz])\s*/,u=new RegExp(n,"g"),d=new RegExp(l,"g"),p=/[-+]?(\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/,m=r(22527).transform2js,f=r(22527).transformsMultiply,h=r(22527).transformArc,g=r(76344),y=g.referencesProps,v=g.attrsGroupsDefaults.presentation["stroke-width"],b=r(79736).Kr,S=r(79736).RM,x;t.path2js=function(e){if(e.pathJS)return e.pathJS;var t={H:1,V:1,M:2,L:2,T:2,Q:4,S:4,C:6,A:7,h:1,v:1,m:2,l:2,t:2,q:4,s:4,c:6,a:7},r=[],n,i=false;e.attr("d").value.split(c).forEach(function(e){if(!e)return;if(!i){if(e=="M"||e=="m"){i=true}else return}if(c.test(e)){n=e;if(n=="Z"||n=="z"){r.push({instruction:"z"})}}else{if(n=="A"||n=="a"){var a=[];for(var o;o=d.exec(e);){for(var s=1;s-1){for(n=0;n-1){set(t,a)}else if(i=="H"){t[0]=a[0]}else if(i=="V"){t[1]=a[0]}else if(i=="z"){set(t,r)}return i=="z"?{instruction:"z"}:{instruction:i.toUpperCase(),data:a}})};t.applyTransforms=function(e,t,r){if(!e.hasAttr("transform")||!e.attr("transform").value||e.someAttr(function(e){return~y.indexOf(e.name)&&~e.value.indexOf("url(")}))return t;var n=f(m(e.attr("transform").value)),i=e.computedAttr("stroke"),a=e.computedAttr("id"),o=r.transformPrecision,s,l;if(i&&i!="none"){if(!r.applyTransformsStroked||(n.data[0]!=n.data[3]||n.data[1]!=-n.data[2])&&(n.data[0]!=-n.data[3]||n.data[1]!=n.data[2]))return t;if(a){var c=e,u=false;do{if(c.hasAttr("stroke-width"))u=true}while(!c.hasAttr("id",a)&&!u&&(c=c.parentNode));if(!u)return t}l=+Math.sqrt(n.data[0]*n.data[0]+n.data[1]*n.data[1]).toFixed(o);if(l!==1){var d=e.computedAttr("stroke-width")||v;if(!e.hasAttr("vector-effect")||e.attr("vector-effect").value!=="non-scaling-stroke"){if(e.hasAttr("stroke-width")){e.attrs["stroke-width"].value=e.attrs["stroke-width"].value.trim().replace(p,function(e){return S(e*l)})}else{e.addAttr({name:"stroke-width",prefix:"",local:"stroke-width",value:d.replace(p,function(e){return S(e*l)})})}}}}else if(a){return t}t.forEach(function(e){if(e.data){if(e.instruction==="h"){e.instruction="l";e.data[1]=0}else if(e.instruction==="v"){e.instruction="l";e.data[1]=e.data[0];e.data[0]=0}if(e.instruction==="M"&&(n.data[4]!==0||n.data[5]!==0)){s=transformPoint(n.data,e.data[0],e.data[1]);set(e.data,s);set(e.coords,s);n.data[4]=0;n.data[5]=0}else{if(e.instruction=="a"){h(e.data,n.data);if(Math.abs(e.data[2])>80){var t=e.data[0],r=e.data[2];e.data[0]=e.data[1];e.data[1]=t;e.data[2]=r+(r>0?-90:90)}s=transformPoint(n.data,e.data[5],e.data[6]);e.data[5]=s[0];e.data[6]=s[1]}else{for(var i=0;iu){u=e}if(ou){u=o}p=computeCubicFirstDerivativeRoots(e,r,i,o);for(g=0;g=0&&m<=1){f=computeCubicBaseValue(m,e,r,i,o);if(fu){u=f}}}if(td){d=t}if(sd){d=s}p=computeCubicFirstDerivativeRoots(t,n,a,s);for(g=0;g=0&&m<=1){h=computeCubicBaseValue(m,t,n,a,s);if(hd){d=h}}}return{minx:l,miny:c,maxx:u,maxy:d}};function computeCubicBaseValue(e,t,r,n,i){var a=1-e;return a*a*a*t+3*a*a*e*r+3*a*e*e*n+e*e*e*i}function computeCubicFirstDerivativeRoots(e,t,r,n){var i=[-1,-1],a=-e+2*t-r,o=-Math.sqrt(-e*(r-n)+t*t-t*(r+n)+r*r),s=-e+3*t-3*r+n;if(s!==0){i[0]=(a+o)/s;i[1]=(a-o)/s}return i}t.computeQuadraticBoundingBox=function(e,t,r,n,i,a){var o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u,d,p;if(el){l=e}if(il){l=i}u=computeQuadraticFirstDerivativeRoot(e,r,i);if(u>=0&&u<=1){d=computeQuadraticBaseValue(u,e,r,i);if(dl){l=d}}if(tc){c=t}if(ac){c=a}u=computeQuadraticFirstDerivativeRoot(t,n,a);if(u>=0&&u<=1){p=computeQuadraticBaseValue(u,t,n,a);if(pc){c=p}}return{minx:o,miny:s,maxx:l,maxy:c}};function computeQuadraticBaseValue(e,t,r,n){var i=1-e;return i*i*t+2*i*e*r+e*e*n}function computeQuadraticFirstDerivativeRoot(e,t,r){var n=-1,i=e-2*t+r;if(i!==0){n=(e-t)/i}return n}t.js2path=function(e,t,r){e.pathJS=t;if(r.collapseRepeated){t=collapseRepeated(t)}e.attr("d").value=t.reduce(function(e,t){var n="";if(t.data){n=b(t.data,r,t.instruction)}return e+=t.instruction+n},"")};function collapseRepeated(e){var t,r;e=e.reduce(function(e,n){if(t&&n.data&&n.instruction==t.instruction){if(n.instruction!="M"){t=e[r]={instruction:t.instruction,data:t.data.concat(n.data),coords:n.coords,base:t.base}}else{t.data=n.data;t.coords=n.coords}}else{e.push(n);t=n;r=e.length-1}return e},[]);return e}function set(e,t){e[0]=t[t.length-2];e[1]=t[t.length-1];return e}t.intersects=function(e,t){if(e.length<3||t.length<3)return false;var r=w(e).reduce(gatherPoints,[]),n=w(t).reduce(gatherPoints,[]);if(r.maxX<=n.minX||n.maxX<=r.minX||r.maxY<=n.minY||n.maxY<=r.minY||r.every(function(e){return n.every(function(t){return e[e.maxX][0]<=t[t.minX][0]||t[t.maxX][0]<=e[e.minX][0]||e[e.maxY][1]<=t[t.minY][1]||t[t.maxY][1]<=e[e.minY][1]})}))return false;var i=r.map(convexHull),a=n.map(convexHull);return i.some(function(e){if(e.length<3)return false;return a.some(function(t){if(t.length<3)return false;var r=[getSupport(e,t,[1,0])],n=minus(r[0]);var i=1e4;while(true){if(i--==0){console.error("Error: infinite loop while processing mergePaths plugin.");return true}r.push(getSupport(e,t,n));if(dot(n,r[r.length-1])<=0)return false;if(processSimplex(r,n))return true}})});function getSupport(e,t,r){return sub(supportPoint(e,r),supportPoint(t,minus(r)))}function supportPoint(e,t){var r=t[1]>=0?t[0]<0?e.maxY:e.maxX:t[0]<0?e.minX:e.minY,n=-Infinity,i;while((i=dot(e[r],t))>n){n=i;r=++r%e.length}return e[(r||e.length)-1]}};function processSimplex(e,t){if(e.length==2){var r=e[1],n=e[0],i=minus(e[1]),a=sub(n,r);if(dot(i,a)>0){set(t,orth(a,r))}else{set(t,i);e.shift()}}else{var r=e[2],n=e[1],o=e[0],a=sub(n,r),s=sub(o,r),i=minus(r),l=orth(a,s),c=orth(s,a);if(dot(l,i)>0){if(dot(a,i)>0){set(t,l);e.shift()}else{set(t,i);e.splice(0,2)}}else if(dot(c,i)>0){if(dot(s,i)>0){set(t,c);e.splice(1,1)}else{set(t,i);e.splice(0,2)}}else return true}return false}function minus(e){return[-e[0],-e[1]]}function sub(e,t){return[e[0]-t[0],e[1]-t[1]]}function dot(e,t){return e[0]*t[0]+e[1]*t[1]}function orth(e,t){var r=[-e[1],e[0]];return dot(r,minus(t))<0?minus(r):r}function gatherPoints(e,t,r,n){var i=e.length&&e[e.length-1],a=r&&n[r-1],o=i.length&&i[i.length-1],s=t.data,l=o;switch(t.instruction){case"M":e.push(i=[]);break;case"H":addPoint(i,[s[0],o[1]]);break;case"V":addPoint(i,[o[0],s[0]]);break;case"Q":addPoint(i,s.slice(0,2));x=[s[2]-s[0],s[3]-s[1]];break;case"T":if(a.instruction=="Q"||a.instruction=="T"){l=[o[0]+x[0],o[1]+x[1]];addPoint(i,l);x=[s[0]-l[0],s[1]-l[1]]}break;case"C":addPoint(i,[.5*(o[0]+s[0]),.5*(o[1]+s[1])]);addPoint(i,[.5*(s[0]+s[2]),.5*(s[1]+s[3])]);addPoint(i,[.5*(s[2]+s[4]),.5*(s[3]+s[5])]);x=[s[4]-s[2],s[5]-s[3]];break;case"S":if(a.instruction=="C"||a.instruction=="S"){addPoint(i,[o[0]+.5*x[0],o[1]+.5*x[1]]);l=[o[0]+x[0],o[1]+x[1]]}addPoint(i,[.5*(l[0]+s[0]),.5*(l[1]+s[1])]);addPoint(i,[.5*(s[0]+s[2]),.5*(s[1]+s[3])]);x=[s[2]-s[0],s[3]-s[1]];break;case"A":var c=a2c.apply(0,o.concat(s));for(var u;(u=c.splice(0,6).map(toAbsolute)).length;){addPoint(i,[.5*(o[0]+u[0]),.5*(o[1]+u[1])]);addPoint(i,[.5*(u[0]+u[2]),.5*(u[1]+u[3])]);addPoint(i,[.5*(u[2]+u[4]),.5*(u[3]+u[5])]);if(c.length)addPoint(i,o=u.slice(-2))}break}if(s&&s.length>=2)addPoint(i,s.slice(-2));return e;function toAbsolute(e,t){return e+o[t%2]}function addPoint(t,r){if(!t.length||r[1]>t[t.maxY][1]){t.maxY=t.length;e.maxY=e.length?Math.max(r[1],e.maxY):r[1]}if(!t.length||r[0]>t[t.maxX][0]){t.maxX=t.length;e.maxX=e.length?Math.max(r[0],e.maxX):r[0]}if(!t.length||r[1]=2&&cross(t[t.length-2],t[t.length-1],e[i])<=0){t.pop()}if(e[i][1]=2&&cross(a[a.length-2],a[a.length-1],e[i])<=0){a.pop()}if(e[i][1]>e[o][1]){o=i;s=a.length}a.push(e[i])}a.pop();t.pop();var l=t.concat(a);l.minX=0;l.maxX=t.length;l.minY=n;l.maxY=(t.length+s)%l.length;return l}function cross(e,t,r){return(t[0]-e[0])*(r[1]-e[1])-(t[1]-e[1])*(r[0]-e[0])}function a2c(e,t,r,n,i,a,o,s,l,c){var u=Math.PI*120/180,d=Math.PI/180*(+i||0),p=[],m=function(e,t,r){return e*Math.cos(r)-t*Math.sin(r)},f=function(e,t,r){return e*Math.sin(r)+t*Math.cos(r)};if(!c){e=m(e,t,-d);t=f(e,t,-d);s=m(s,l,-d);l=f(s,l,-d);var h=(e-s)/2,g=(t-l)/2;var y=h*h/(r*r)+g*g/(n*n);if(y>1){y=Math.sqrt(y);r=y*r;n=y*n}var v=r*r,b=n*n,S=(a==o?-1:1)*Math.sqrt(Math.abs((v*b-v*g*g-b*h*h)/(v*g*g+b*h*h))),x=S*r*g/n+(e+s)/2,w=S*-n*h/r+(t+l)/2,C=Math.asin(((t-w)/n).toFixed(9)),k=Math.asin(((l-w)/n).toFixed(9));C=ek){C=C-Math.PI*2}if(!o&&k>C){k=k-Math.PI*2}}else{C=c[0];k=c[1];x=c[2];w=c[3]}var T=k-C;if(Math.abs(T)>u){var E=k,A=s,O=l;k=C+u*(o&&k>C?1:-1);s=x+r*Math.cos(k);l=w+n*Math.sin(k);p=a2c(s,l,r,n,i,0,o,A,O,[k,E,x,w])}T=k-C;var z=Math.cos(C),P=Math.sin(C),_=Math.cos(k),W=Math.sin(k),q=Math.tan(T/4),B=4/3*r*q,R=4/3*n*q,L=[-B*P,R*z,s+B*W-e,l-R*_-t,s-e,l-t];if(c){return L.concat(p)}else{p=L.concat(p);var D=[];for(var G=0,F=p.length;G{"use strict";var r=/matrix|translate|scale|rotate|skewX|skewY/,n=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,i=/[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g;t.transform2js=function(e){var t=[],a;e.split(n).forEach(function(e){var n;if(e){if(r.test(e)){t.push(a={name:e})}else{while(n=i.exec(e)){n=Number(n);if(a.data)a.data.push(n);else a.data=[n]}}}});return a&&a.data?t:[]};t.transformsMultiply=function(e){e=e.map(function(e){if(e.name==="matrix"){return e.data}return transformToMatrix(e)});e={name:"matrix",data:e.length>0?e.reduce(multiplyTransformMatrices):[]};return e};var a=t.mth={rad:function(e){return e*Math.PI/180},deg:function(e){return e*180/Math.PI},cos:function(e){return Math.cos(this.rad(e))},acos:function(e,t){return+this.deg(Math.acos(e)).toFixed(t)},sin:function(e){return Math.sin(this.rad(e))},asin:function(e,t){return+this.deg(Math.asin(e)).toFixed(t)},tan:function(e){return Math.tan(this.rad(e))},atan:function(e,t){return+this.deg(Math.atan(e)).toFixed(t)}};t.matrixToTransform=function(e,t){var r=t.floatPrecision,n=e.data,i=[],o=+Math.hypot(n[0],n[1]).toFixed(t.transformPrecision),s=+((n[0]*n[3]-n[1]*n[2])/o).toFixed(t.transformPrecision),l=n[0]*n[2]+n[1]*n[3],c=n[0]*n[1]+n[2]*n[3],u=c!=0||o==s;if(n[4]||n[5]){i.push({name:"translate",data:n.slice(4,n[5]?6:5)})}if(!n[1]&&n[2]){i.push({name:"skewX",data:[a.atan(n[2]/s,r)]})}else if(n[1]&&!n[2]){i.push({name:"skewY",data:[a.atan(n[1]/n[0],r)]});o=n[0];s=n[3]}else if(!l||o==1&&s==1||!u){if(!u){o=(n[0]<0?-1:1)*Math.hypot(n[0],n[2]);s=(n[3]<0?-1:1)*Math.hypot(n[1],n[3]);i.push({name:"scale",data:[o,s]})}var d=Math.min(Math.max(-1,n[0]/o),1),p=[a.acos(d,r)*((u?1:s)*n[1]<0?-1:1)];if(p[0])i.push({name:"rotate",data:p});if(c&&l)i.push({name:"skewX",data:[a.atan(l/(o*o),r)]});if(p[0]&&(n[4]||n[5])){i.shift();var m=n[0]/o,f=n[1]/(u?o:s),h=n[4]*(u||s),g=n[5]*(u||o),y=(Math.pow(1-m,2)+Math.pow(f,2))*(u||o*s);p.push(((1-m)*h-f*g)/y);p.push(((1-m)*g+f*h)/y)}}else if(n[1]||n[2]){return e}if(u&&(o!=1||s!=1)||!i.length)i.push({name:"scale",data:o==s?[o]:[o,s]});return i};function transformToMatrix(e){if(e.name==="matrix")return e.data;var t;switch(e.name){case"translate":t=[1,0,0,1,e.data[0],e.data[1]||0];break;case"scale":t=[e.data[0],0,0,e.data[1]||e.data[0],0,0];break;case"rotate":var r=a.cos(e.data[0]),n=a.sin(e.data[0]),i=e.data[1]||0,o=e.data[2]||0;t=[r,n,-n,r,(1-r)*i+n*o,(1-r)*o-n*i];break;case"skewX":t=[1,0,a.tan(e.data[0]),1,0,0];break;case"skewY":t=[1,a.tan(e.data[0]),0,1,0,0];break}return t}t.transformArc=function(e,t){var r=e[0],n=e[1],i=e[2]*Math.PI/180,a=Math.cos(i),o=Math.sin(i),s=Math.pow(e[5]*a+e[6]*o,2)/(4*r*r)+Math.pow(e[6]*a-e[5]*o,2)/(4*n*n);if(s>1){s=Math.sqrt(s);r*=s;n*=s}var l=[r*a,r*o,-n*o,n*a,0,0],c=multiplyTransformMatrices(t,l),u=c[2]*c[2]+c[3]*c[3],d=c[0]*c[0]+c[1]*c[1]+u,p=Math.hypot(c[0]-c[3],c[1]+c[2])*Math.hypot(c[0]+c[3],c[1]-c[2]);if(!p){e[0]=e[1]=Math.sqrt(d/2);e[2]=0}else{var m=(d+p)/2,f=(d-p)/2,h=Math.abs(m-u)>1e-6,g=(h?m:f)-u,y=c[0]*c[2]+c[1]*c[3],v=c[0]*g+c[2]*y,b=c[1]*g+c[3]*y;e[0]=Math.sqrt(m);e[1]=Math.sqrt(f);e[2]=((h?b<0:v>0)?-1:1)*Math.acos((h?v:b)/Math.hypot(v,b))*180/Math.PI}if(t[0]<0!==t[3]<0){e[4]=1-e[4]}return e};function multiplyTransformMatrices(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},5519:(e,t)=>{"use strict";t.type="full";t.active=false;t.description="adds attributes to an outer element";var r=`Error in plugin "addAttributesToSVGElement": absent parameters.\nIt should have a list of "attributes" or one "attribute".\nConfig example:\n\nplugins:\n- addAttributesToSVGElement:\n attribute: "mySvg"\n\nplugins:\n- addAttributesToSVGElement:\n attributes: ["mySvg", "size-big"]\n\nplugins:\n- addAttributesToSVGElement:\n attributes:\n - focusable: false\n - data-image: icon`;t.fn=function(e,t){if(!t||!(Array.isArray(t.attributes)||t.attribute)){console.error(r);return e}var n=t.attributes||[t.attribute],i=e.content[0];if(i.isElem("svg")){n.forEach(function(e){if(typeof e==="string"){if(!i.hasAttr(e)){i.addAttr({name:e,prefix:"",local:e})}}else if(typeof e==="object"){Object.keys(e).forEach(function(t){if(!i.hasAttr(t)){i.addAttr({name:t,value:e[t],prefix:"",local:t})}})}})}return e}},75118:(e,t)=>{"use strict";t.type="full";t.active=false;t.description="adds classnames to an outer element";var r=`Error in plugin "addClassesToSVGElement": absent parameters.\nIt should have a list of classes in "classNames" or one "className".\nConfig example:\n\nplugins:\n- addClassesToSVGElement:\n className: "mySvg"\n\nplugins:\n- addClassesToSVGElement:\n classNames: ["mySvg", "size-big"]\n`;t.fn=function(e,t){if(!t||!(Array.isArray(t.classNames)&&t.classNames.some(String)||t.className)){console.error(r);return e}var n=t.classNames||[t.className],i=e.content[0];if(i.isElem("svg")){i.class.add.apply(i.class,n)}return e}},4106:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="cleanups attributes from newlines, trailing and repeating spaces";t.params={newlines:true,trim:true,spaces:true};var r=/(\S)\r?\n(\S)/g,n=/\r?\n/g,i=/\s{2,}/g;t.fn=function(e,t){if(e.isElem()){e.eachAttr(function(e){if(t.newlines){e.value=e.value.replace(r,function(e,t,r){return t+" "+r});e.value=e.value.replace(n,"")}if(t.trim){e.value=e.value.trim()}if(t.spaces){e.value=e.value.replace(i," ")}})}}},26483:(e,t)=>{"use strict";t.type="full";t.active=true;t.description="remove or cleanup enable-background attribute when possible";t.fn=function(e){var t=/^new\s0\s0\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)$/,r=false,n=["svg","mask","pattern"];function checkEnableBackground(e){if(e.isElem(n)&&e.hasAttr("enable-background")&&e.hasAttr("width")&&e.hasAttr("height")){var r=e.attr("enable-background").value.match(t);if(r){if(e.attr("width").value===r[1]&&e.attr("height").value===r[3]){if(e.isElem("svg")){e.removeAttr("enable-background")}else{e.attr("enable-background").value="new"}}}}}function checkForFilter(e){if(e.isElem("filter")){r=true}}function monkeys(e,t){e.content.forEach(function(e){t(e);if(e.content){monkeys(e,t)}});return e}var i=monkeys(e,function(e){checkEnableBackground(e);if(!r){checkForFilter(e)}});return r?i:monkeys(i,function(e){e.removeAttr("enable-background")})}},37762:(e,t,r)=>{"use strict";t.type="full";t.active=true;t.description="removes unused IDs and minifies used";t.params={remove:true,minify:true,prefix:"",preserve:[],preservePrefixes:[],force:false};var n=new Set(r(76344).referencesProps),i=/\burl\(("|')?#(.+?)\1\)/,a=/^#(.+?)$/,o=/(\w+)\./,s=["style","script"],l=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],c=l.length-1;t.fn=function(e,t){var r,l,c=new Map,u=new Map,d=false,p=new Set(Array.isArray(t.preserve)?t.preserve:t.preserve?[t.preserve]:[]),m=new Set(Array.isArray(t.preservePrefixes)?t.preservePrefixes:t.preservePrefixes?[t.preservePrefixes]:[]),f="#",h=".";function monkeys(e){for(var r=0;rp.has(e)||idMatchesPrefix(m,e);for(var y of u){var v=y[0];if(c.has(v)){if(t.minify&&!g(v)){do{l=getIDstring(r=generateID(r),t)}while(g(l));c.get(v).attr("id").value=l;for(var b of y[1]){b.value=b.value.includes(f)?b.value.replace(f+v,f+l):b.value.replace(v+h,l+h)}}c.delete(v)}}if(t.remove){for(var S of c){if(!g(S[0])){S[1].removeAttr("id")}}}return e};function idMatchesPrefix(e,t){if(!t)return false;for(var r of e)if(t.startsWith(r))return true;return false}function generateID(e){if(!e)return[0];e[e.length-1]++;for(var t=e.length-1;t>0;t--){if(e[t]>c){e[t]=0;if(e[t-1]!==undefined){e[t-1]++}}}if(e[0]>c){e[0]=0;e.unshift(0)}return e}function getIDstring(e,t){var r=t.prefix;return r+e.map(e=>l[e]).join("")}},92331:(e,t,r)=>{"use strict";t.type="perItem";t.active=false;t.description="rounds list of values to the fixed precision";t.params={floatPrecision:3,leadingZero:true,defaultPx:true,convertToPx:true};var n=/^([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,i=/\s+,?\s*|,\s*/,a=r(79736).RM,o={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16};t.fn=function(e,t){if(e.hasAttr("points")){roundValues(e.attrs.points)}if(e.hasAttr("enable-background")){roundValues(e.attrs["enable-background"])}if(e.hasAttr("viewBox")){roundValues(e.attrs.viewBox)}if(e.hasAttr("stroke-dasharray")){roundValues(e.attrs["stroke-dasharray"])}if(e.hasAttr("dx")){roundValues(e.attrs.dx)}if(e.hasAttr("dy")){roundValues(e.attrs.dy)}if(e.hasAttr("x")){roundValues(e.attrs.x)}if(e.hasAttr("y")){roundValues(e.attrs.y)}function roundValues(e){var r,s,l,c,u=e.value,d=u.split(i),p=[],m;d.forEach(function(e){l=e.match(n);c=e.match(/new/);if(l){r=+(+l[1]).toFixed(t.floatPrecision),s=l[3]||"";if(t.convertToPx&&s&&s in o){var i=+(o[s]*l[1]).toFixed(t.floatPrecision);if(String(i).length{"use strict";t.type="perItem";t.active=true;t.description="rounds numeric values to the fixed precision, removes default ‘px’ units";t.params={floatPrecision:3,leadingZero:true,defaultPx:true,convertToPx:true};var n=/^([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,i=r(79736).RM,a={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16};t.fn=function(e,t){if(e.isElem()){var r=t.floatPrecision;if(e.hasAttr("viewBox")){var o=e.attr("viewBox").value.split(/\s,?\s*|,\s*/g);e.attr("viewBox").value=o.map(function(e){var t=+e;return isNaN(t)?e:+t.toFixed(r)}).join(" ")}e.eachAttr(function(e){if(e.name==="version"){return}var o=e.value.match(n);if(o){var s=+(+o[1]).toFixed(r),l=o[3]||"";if(t.convertToPx&&l&&l in a){var c=+(a[l]*o[1]).toFixed(r);if(String(c).length{"use strict";t.type="perItemReverse";t.active=true;t.description="collapses useless groups";var n=r(76344),i=n.inheritableAttrs,a=n.elemsGroups.animation;function hasAnimatedAttr(e){return e.isElem(a)&&e.hasAttr("attributeName",this)||!e.isEmpty()&&e.content.some(hasAnimatedAttr,this)}t.fn=function(e){if(e.isElem()&&!e.isElem("switch")&&!e.isEmpty()){e.content.forEach(function(t,r){if(t.isElem("g")&&!t.isEmpty()){if(t.hasAttr()&&t.content.length===1){var n=t.content[0];if(n.isElem()&&!n.hasAttr("id")&&!t.hasAttr("filter")&&!(t.hasAttr("class")&&n.hasAttr("class"))&&(!t.hasAttr("clip-path")&&!t.hasAttr("mask")||n.isElem("g")&&!t.hasAttr("transform")&&!n.hasAttr("transform"))){t.eachAttr(function(e){if(t.content.some(hasAnimatedAttr,e.name))return;if(!n.hasAttr(e.name)){n.addAttr(e)}else if(e.name=="transform"){n.attr(e.name).value=e.value+" "+n.attr(e.name).value}else if(n.hasAttr(e.name,"inherit")){n.attr(e.name).value=e.value}else if(i.indexOf(e.name)<0&&!n.hasAttr(e.name,e.value)){return}t.removeAttr(e.name)})}}if(!t.hasAttr()&&!t.content.some(function(e){return e.isElem(a)})){e.spliceContent(r,1,t.content)}}})}}},83254:(e,t,r)=>{"use strict";t.type="perItem";t.active=true;t.description="converts colors: rgb() to #rrggbb and #rrggbb to #rgb";t.params={currentColor:false,names2hex:true,rgb2hex:true,shorthex:true,shortname:true};var n=r(76344),i="([+-]?(?:\\d*\\.\\d+|\\d+\\.?)%?)",a="\\s*,\\s*",o=new RegExp("^rgb\\(\\s*"+i+a+i+a+i+"\\s*\\)$"),s=/^\#(([a-fA-F0-9])\2){3}$/,l=/\bnone\b/i;t.fn=function(e,t){if(e.elem){e.eachAttr(function(e){if(n.colorsProps.indexOf(e.name)>-1){var r=e.value,i;if(t.currentColor){if(typeof t.currentColor==="string"){i=r===t.currentColor}else if(t.currentColor.exec){i=t.currentColor.exec(r)}else{i=!r.match(l)}if(i){r="currentColor"}}if(t.names2hex&&r.toLowerCase()in n.colorsNames){r=n.colorsNames[r.toLowerCase()]}if(t.rgb2hex&&(i=r.match(o))){i=i.slice(1,4).map(function(e){if(e.indexOf("%")>-1)e=Math.round(parseFloat(e)*2.55);return Math.max(0,Math.min(e,255))});r=rgb2hex(i)}if(t.shorthex&&(i=r.match(s))){r="#"+i[0][1]+i[0][3]+i[0][5]}if(t.shortname){var a=r.toLowerCase();if(a in n.colorsShortNames){r=n.colorsShortNames[a]}}e.value=r}})}};function rgb2hex(e){return"#"+("00000"+(e[0]<<16|e[1]<<8|e[2]).toString(16)).slice(-6).toUpperCase()}},56061:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="converts non-eccentric s to s";t.fn=function(e){if(e.isElem("ellipse")){var t=e.attr("rx").value||0;var r=e.attr("ry").value||0;if(t===r||t==="auto"||r==="auto"){var n=t!=="auto"?t:r;e.renameElem("circle");e.removeAttr(["rx","ry"]);e.addAttr({name:"r",value:n,prefix:"",local:"r"})}}return}},76307:(e,t,r)=>{"use strict";t.type="perItem";t.active=true;t.description="optimizes path data: writes in shorter form, applies transformations";t.params={applyTransforms:true,applyTransformsStroked:true,makeArcs:{threshold:2.5,tolerance:.5},straightCurves:true,lineShorthands:true,curveSmoothShorthands:true,floatPrecision:3,transformPrecision:5,removeUseless:true,collapseRepeated:true,utilizeAbsolute:true,leadingZero:true,negativeExtraSpace:true,noSpaceAfterFlags:true,forceAbsolutePath:false};var n=r(76344).pathElems,i=r(54870).path2js,a=r(54870).js2path,o=r(54870).applyTransforms,s=r(79736).Kr,l,c,u,d,p,m,f;t.fn=function(e,t){if(e.isElem(n)&&e.hasAttr("d")){c=t.floatPrecision;u=c!==false?+Math.pow(.1,c).toFixed(c):.01;l=c>0&&c<20?strongRound:round;if(t.makeArcs){d=t.makeArcs.threshold;p=t.makeArcs.tolerance}m=e.hasAttr("marker-mid");var r=e.computedAttr("stroke"),s=e.computedAttr("stroke");f=r&&r!="none"&&s&&s!="butt";var h=i(e);if(h.length){convertToRelative(h);if(t.applyTransforms){h=o(e,h,t)}h=filters(h,t);if(t.utilizeAbsolute){h=convertToMixed(h,t)}a(e,h,t)}}};function convertToRelative(e){var t=[0,0],r=[0,0],n;e.forEach(function(i,a){var o=i.instruction,s=i.data;if(s){if("mcslqta".indexOf(o)>-1){t[0]+=s[s.length-2];t[1]+=s[s.length-1];if(o==="m"){r[0]=t[0];r[1]=t[1];n=i}}else if(o==="h"){t[0]+=s[0]}else if(o==="v"){t[1]+=s[0]}if(o==="M"){if(a>0)o="m";s[0]-=t[0];s[1]-=t[1];r[0]=t[0]+=s[0];r[1]=t[1]+=s[1];n=i}else if("LT".indexOf(o)>-1){o=o.toLowerCase();s[0]-=t[0];s[1]-=t[1];t[0]+=s[0];t[1]+=s[1]}else if(o==="C"){o="c";s[0]-=t[0];s[1]-=t[1];s[2]-=t[0];s[3]-=t[1];s[4]-=t[0];s[5]-=t[1];t[0]+=s[4];t[1]+=s[5]}else if("SQ".indexOf(o)>-1){o=o.toLowerCase();s[0]-=t[0];s[1]-=t[1];s[2]-=t[0];s[3]-=t[1];t[0]+=s[2];t[1]+=s[3]}else if(o==="A"){o="a";s[5]-=t[0];s[6]-=t[1];t[0]+=s[5];t[1]+=s[6]}else if(o==="H"){o="h";s[0]-=t[0];t[0]+=s[0]}else if(o==="V"){o="v";s[0]-=t[1];t[1]+=s[0]}i.instruction=o;i.data=s;i.coords=t.slice(-2)}else if(o=="z"){if(n){i.coords=n.coords}t[0]=r[0];t[1]=r[1]}i.base=a>0?e[a-1].coords:[0,0]});return e}function filters(e,t){var r=data2Path.bind(null,t),n=[0,0],i=[0,0],a={};e=e.filter(function(e,o,s){var u=e.instruction,d=e.data,p=s[o+1];if(d){var h=d,g;if(u==="s"){h=[0,0].concat(d);if("cs".indexOf(a.instruction)>-1){var y=a.data,v=y.length;h[0]=y[v-2]-y[v-4];h[1]=y[v-1]-y[v-3]}}if(t.makeArcs&&(u=="c"||u=="s")&&isConvex(h)&&(g=findCircle(h))){var b=l([g.radius])[0],S=findArcAngle(h,g),x=h[5]*h[0]-h[4]*h[1]>0?1:0,w={instruction:"a",data:[b,b,0,0,x,h[4],h[5]],coords:e.coords.slice(),base:e.base},C=[w],k=[g.center[0]-h[4],g.center[1]-h[5]],T={center:k,radius:g.radius},E=[e],A=0,O="",z;if(a.instruction=="c"&&isConvex(a.data)&&isArcPrev(a.data,g)||a.instruction=="a"&&a.sdata&&isArcPrev(a.sdata,g)){E.unshift(a);w.base=a.base;w.data[5]=w.coords[0]-w.base[0];w.data[6]=w.coords[1]-w.base[1];var P=a.instruction=="a"?a.sdata:a.data;var _=findArcAngle(P,{center:[P[4]+g.center[0],P[5]+g.center[1]],radius:g.radius});S+=_;if(S>Math.PI)w.data[3]=1;A=1}for(var W=o;(p=s[++W])&&~"cs".indexOf(p.instruction);){var q=p.data;if(p.instruction=="s"){z=makeLonghand({instruction:"s",data:p.data.slice()},s[W-1].data);q=z.data;z.data=q.slice(0,2);O=r([z])}if(isConvex(q)&&isArc(q,T)){S+=findArcAngle(q,T);if(S-2*Math.PI>.001)break;if(S>Math.PI)w.data[3]=1;E.push(p);if(2*Math.PI-S>.001){w.coords=p.coords;w.data[5]=w.coords[0]-w.base[0];w.data[6]=w.coords[1]-w.base[1]}else{w.data[5]=2*(T.center[0]-q[4]);w.data[6]=2*(T.center[1]-q[5]);w.coords=[w.base[0]+w.data[5],w.base[1]+w.data[6]];w={instruction:"a",data:[b,b,0,0,x,p.coords[0]-w.coords[0],p.coords[1]-w.coords[1]],coords:p.coords,base:w.coords};C.push(w);W++;break}k[0]-=q[4];k[1]-=q[5]}else break}if((r(C)+O).length0){s.splice.apply(s,[o+1,E.length-1-A].concat(C))}if(!w)return false;u="a";d=w.data;e.coords=w.coords}}if(c!==false){if("mltqsc".indexOf(u)>-1){for(var R=d.length;R--;){d[R]+=e.base[R%2]-n[R%2]}}else if(u=="h"){d[0]+=e.base[0]-n[0]}else if(u=="v"){d[0]+=e.base[1]-n[1]}else if(u=="a"){d[5]+=e.base[0]-n[0];d[6]+=e.base[1]-n[1]}l(d);if(u=="h")n[0]+=d[0];else if(u=="v")n[1]+=d[0];else{n[0]+=d[d.length-2];n[1]+=d[d.length-1]}l(n);if(u.toLowerCase()=="m"){i[0]=n[0];i[1]=n[1]}}if(t.straightCurves){if(u==="c"&&isCurveStraightLine(d)||u==="s"&&isCurveStraightLine(h)){if(p&&p.instruction=="s")makeLonghand(p,d);u="l";d=d.slice(-2)}else if(u==="q"&&isCurveStraightLine(d)){if(p&&p.instruction=="t")makeLonghand(p,d);u="l";d=d.slice(-2)}else if(u==="t"&&a.instruction!=="q"&&a.instruction!=="t"){u="l";d=d.slice(-2)}else if(u==="a"&&(d[0]===0||d[1]===0)){u="l";d=d.slice(-2)}}if(t.lineShorthands&&u==="l"){if(d[1]===0){u="h";d.pop()}else if(d[0]===0){u="v";d.shift()}}if(t.collapseRepeated&&!m&&"mhv".indexOf(u)>-1&&a.instruction&&u==a.instruction.toLowerCase()&&(u!="h"&&u!="v"||a.data[0]>=0==e.data[0]>=0)){a.data[0]+=d[0];if(u!="h"&&u!="v"){a.data[1]+=d[1]}a.coords=e.coords;s[o]=a;return false}if(t.curveSmoothShorthands&&a.instruction){if(u==="c"){if(a.instruction==="c"&&d[0]===-(a.data[2]-a.data[4])&&d[1]===-(a.data[3]-a.data[5])){u="s";d=d.slice(2)}else if(a.instruction==="s"&&d[0]===-(a.data[0]-a.data[2])&&d[1]===-(a.data[1]-a.data[3])){u="s";d=d.slice(2)}else if("cs".indexOf(a.instruction)===-1&&d[0]===0&&d[1]===0){u="s";d=d.slice(2)}}else if(u==="q"){if(a.instruction==="q"&&d[0]===a.data[2]-a.data[0]&&d[1]===a.data[3]-a.data[1]){u="t";d=d.slice(2)}else if(a.instruction==="t"&&d[2]===a.data[0]&&d[3]===a.data[1]){u="t";d=d.slice(2)}}}if(t.removeUseless&&!f){if("lhvqtcs".indexOf(u)>-1&&d.every(function(e){return e===0})){s[o]=a;return false}if(u==="a"&&d[5]===0&&d[6]===0){s[o]=a;return false}}e.instruction=u;e.data=d;a=e}else{n[0]=i[0];n[1]=i[1];if(a.instruction=="z")return false;a=e}return true});return e}function convertToMixed(e,t){var r=e[0];e=e.filter(function(e,n){if(n==0)return true;if(!e.data){r=e;return true}var i=e.instruction,a=e.data,o=a&&a.slice(0);if("mltqsc".indexOf(i)>-1){for(var c=o.length;c--;){o[c]+=e.base[c%2]}}else if(i=="h"){o[0]+=e.base[0]}else if(i=="v"){o[0]+=e.base[1]}else if(i=="a"){o[5]+=e.base[0];o[6]+=e.base[1]}l(o);var u=s(o,t),d=s(a,t);if(t.forceAbsolutePath||u.length96&&u.length==d.length-1&&(a[0]<0||/^0\./.test(a[0])&&r.data[r.data.length-1]%1))){e.instruction=i.toUpperCase();e.data=o}r=e;return true});return e}function isConvex(e){var t=getIntersection([0,0,e[2],e[3],e[0],e[1],e[4],e[5]]);return t&&e[2]0;){if(e[t].toFixed(c)!=e[t]){var r=+e[t].toFixed(c-1);e[t]=+Math.abs(r-e[t]).toFixed(c+1)>=u?+e[t].toFixed(c):r}}return e}function round(e){for(var t=e.length;t-- >0;){e[t]=Math.round(e[t])}return e}function isCurveStraightLine(e){var t=e.length-2,r=-e[t+1],n=e[t],i=1/(r*r+n*n);if(t<=1||!isFinite(i))return false;while((t-=2)>=0){if(Math.sqrt(Math.pow(r*e[t]+n*e[t+1],2)*i)>u)return false}return true}function makeLonghand(e,t){switch(e.instruction){case"s":e.instruction="c";break;case"t":e.instruction="q";break}e.data.unshift(t[t.length-2]-t[t.length-4],t[t.length-1]-t[t.length-3]);return e}function getDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function getCubicBezierPoint(e,t){var r=t*t,n=r*t,i=1-t,a=i*i;return[3*a*t*e[0]+3*i*r*e[2]+n*e[4],3*a*t*e[1]+3*i*r*e[3]+n*e[5]]}function findCircle(e){var t=getCubicBezierPoint(e,1/2),r=[t[0]/2,t[1]/2],n=[(t[0]+e[4])/2,(t[1]+e[5])/2],i=getIntersection([r[0],r[1],r[0]+r[1],r[1]-r[0],n[0],n[1],n[0]+(n[1]-t[1]),n[1]-(n[0]-t[0])]),a=i&&getDistance([0,0],i),o=Math.min(d*u,p*a/100);if(i&&a<1e15&&[1/4,3/4].every(function(t){return Math.abs(getDistance(getCubicBezierPoint(e,t),i)-a)<=o}))return{center:i,radius:a}}function isArc(e,t){var r=Math.min(d*u,p*t.radius/100);return[0,1/4,1/2,3/4,1].every(function(n){return Math.abs(getDistance(getCubicBezierPoint(e,n),t.center)-t.radius)<=r})}function isArcPrev(e,t){return isArc(e,{center:[t.center[0]+e[4],t.center[1]+e[5]],radius:t.radius})}function findArcAngle(e,t){var r=-t.center[0],n=-t.center[1],i=e[4]-t.center[0],a=e[5]-t.center[1];return Math.acos((r*i+n*a)/Math.sqrt((r*r+n*n)*(i*i+a*a)))}function data2Path(e,t){return t.reduce(function(t,r){var n="";if(r.data){n=s(l(r.data.slice()),e)}return t+r.instruction+n},"")}},24199:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="converts basic shapes to more compact path form";t.params={convertArcs:false};var r={value:0},n=/[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g;t.fn=function(e,t){var i=t&&t.convertArcs;if(e.isElem("rect")&&e.hasAttr("width")&&e.hasAttr("height")&&!e.hasAttr("rx")&&!e.hasAttr("ry")){var a=+(e.attr("x")||r).value,o=+(e.attr("y")||r).value,s=+e.attr("width").value,l=+e.attr("height").value;if(isNaN(a-o+s-l))return;var c="M"+a+" "+o+"H"+(a+s)+"V"+(o+l)+"H"+a+"z";e.addAttr({name:"d",value:c,prefix:"",local:"d"});e.renameElem("path").removeAttr(["x","y","width","height"])}else if(e.isElem("line")){var u=+(e.attr("x1")||r).value,d=+(e.attr("y1")||r).value,p=+(e.attr("x2")||r).value,m=+(e.attr("y2")||r).value;if(isNaN(u-d+p-m))return;e.addAttr({name:"d",value:"M"+u+" "+d+"L"+p+" "+m,prefix:"",local:"d"});e.renameElem("path").removeAttr(["x1","y1","x2","y2"])}else if((e.isElem("polyline")||e.isElem("polygon"))&&e.hasAttr("points")){var f=(e.attr("points").value.match(n)||[]).map(Number);if(f.length<4)return false;e.addAttr({name:"d",value:"M"+f.slice(0,2).join(" ")+"L"+f.slice(2).join(" ")+(e.isElem("polygon")?"z":""),prefix:"",local:"d"});e.renameElem("path").removeAttr("points")}else if(e.isElem("circle")&&i){var h=+(e.attr("cx")||r).value;var g=+(e.attr("cy")||r).value;var y=+(e.attr("r")||r).value;if(isNaN(h-g+y)){return}var v="M"+h+" "+(g-y)+"A"+y+" "+y+" 0 1 0 "+h+" "+(g+y)+"A"+y+" "+y+" 0 1 0 "+h+" "+(g-y)+"Z";e.addAttr({name:"d",value:v,prefix:"",local:"d"});e.renameElem("path").removeAttr(["cx","cy","r"])}else if(e.isElem("ellipse")&&i){var b=+(e.attr("cx")||r).value;var S=+(e.attr("cy")||r).value;var x=+(e.attr("rx")||r).value;var w=+(e.attr("ry")||r).value;if(isNaN(b-S+x-w)){return}var C="M"+b+" "+(S-w)+"A"+x+" "+w+" 0 1 0 "+b+" "+(S+w)+"A"+x+" "+w+" 0 1 0 "+b+" "+(S-w)+"Z";e.addAttr({name:"d",value:C,prefix:"",local:"d"});e.renameElem("path").removeAttr(["cx","cy","rx","ry"])}}},72446:(e,t,r)=>{"use strict";t.type="perItem";t.active=true;t.description="converts style to attributes";t.params={keepImportant:false};var n=r(76344).attrsGroups.presentation,i="\\\\(?:[0-9a-f]{1,6}\\s?|\\r\\n|.)",a="\\s*("+g("[^:;\\\\]",i)+"*?)\\s*",o="'(?:[^'\\n\\r\\\\]|"+i+")*?(?:'|$)",s='"(?:[^"\\n\\r\\\\]|'+i+')*?(?:"|$)',l=new RegExp("^"+g(o,s)+"$"),c="\\("+g("[^'\"()\\\\]+",i,o,s)+"*?"+"\\)",u="\\s*("+g("[^!'\"();\\\\]+?",i,o,s,c,"[^;]*?")+"*?"+")",d="\\s*(?:;\\s*|$)",p="(\\s*!important(?![-(w]))?",m=new RegExp(a+":"+u+p+d,"ig"),f=new RegExp(g(i,o,s,"/\\*[^]*?\\*/"),"ig");t.fn=function(e,t){if(e.elem&&e.hasAttr("style")){var r=e.attr("style").value,i=[],a={};r=r.replace(f,function(e){return e[0]=="/"?"":e[0]=="\\"&&/[-g-z]/i.test(e[1])?e[1]:e});m.lastIndex=0;for(var o;o=m.exec(r);){if(!t.keepImportant||!o[3]){i.push([o[1],o[2]])}}if(i.length){i=i.filter(function(e){if(e[0]){var t=e[0].toLowerCase(),r=e[1];if(l.test(r)){r=r.slice(1,-1)}if(n.indexOf(t)>-1){a[t]={name:t,value:r,local:t,prefix:""};return false}}return true});Object.assign(e.attrs,a);if(i.length){e.attr("style").value=i.map(function(e){return e.join(":")}).join(";")}else{e.removeAttr("style")}}}};function g(){return"(?:"+Array.prototype.join.call(arguments,"|")+")"}},72234:(e,t,r)=>{"use strict";t.type="perItem";t.active=true;t.description="collapses multiple transformations and optimizes it";t.params={convertToShorts:true,floatPrecision:3,transformPrecision:5,matrixToTransform:true,shortTranslate:true,shortScale:true,shortRotate:true,removeUseless:true,collapseIntoOne:true,leadingZero:true,negativeExtraSpace:false};var n=r(79736).Kr,i=r(22527).transform2js,a=r(22527).transformsMultiply,o=r(22527).matrixToTransform,s,l,c;t.fn=function(e,t){if(e.elem){if(e.hasAttr("transform")){convertTransform(e,"transform",t)}if(e.hasAttr("gradientTransform")){convertTransform(e,"gradientTransform",t)}if(e.hasAttr("patternTransform")){convertTransform(e,"patternTransform",t)}}};function convertTransform(e,t,r){var n=i(e.attr(t).value);r=definePrecision(n,r);if(r.collapseIntoOne&&n.length>1){n=[a(n)]}if(r.convertToShorts){n=convertToShorts(n,r)}else{n.forEach(roundTransform)}if(r.removeUseless){n=removeUseless(n)}if(n.length){e.attr(t).value=js2transform(n,r)}else{e.removeAttr(t)}}function definePrecision(e,t){var r=e.reduce(getMatrixData,[]),n=t.transformPrecision;t=Object.assign({},t);if(r.length){t.transformPrecision=Math.min(t.transformPrecision,Math.max.apply(Math,r.map(floatDigits))||t.transformPrecision);n=Math.max.apply(Math,r.map(function(e){return String(e).replace(/\D+/g,"").length}))}if(!("degPrecision"in t)){t.degPrecision=Math.max(0,Math.min(t.floatPrecision,n-2))}l=t.floatPrecision>=1&&t.floatPrecision<20?smartRound.bind(this,t.floatPrecision):round;s=t.degPrecision>=1&&t.floatPrecision<20?smartRound.bind(this,t.degPrecision):round;c=t.transformPrecision>=1&&t.floatPrecision<20?smartRound.bind(this,t.transformPrecision):round;return t}function getMatrixData(e,t){return t.name=="matrix"?e.concat(t.data.slice(0,4)):e}function floatDigits(e){return(e=String(e)).slice(e.indexOf(".")).length-1}function convertToShorts(e,t){for(var r=0;r-1&&(e.data.length==1||e.name=="rotate")&&!e.data[0]||e.name=="translate"&&!e.data[0]&&!e.data[1]||e.name=="scale"&&e.data[0]==1&&(e.data.length<2||e.data[1]==1)||e.name=="matrix"&&e.data[0]==1&&e.data[3]==1&&!(e.data[1]||e.data[2]||e.data[4]||e.data[5])){return false}return true})}function js2transform(e,t){var r="";e.forEach(function(e){roundTransform(e);r+=(r&&" ")+e.name+"("+n(e.data,t)+")"});return r}function roundTransform(e){switch(e.name){case"translate":e.data=l(e.data);break;case"rotate":e.data=s(e.data.slice(0,1)).concat(l(e.data.slice(1)));break;case"skewX":case"skewY":e.data=s(e.data);break;case"scale":e.data=c(e.data);break;case"matrix":e.data=c(e.data.slice(0,4)).concat(l(e.data.slice(4)));break}return e}function round(e){return e.map(Math.round)}function smartRound(e,t){for(var r=t.length,n=+Math.pow(.1,e).toFixed(e);r--;){if(t[r].toFixed(e)!=t[r]){var i=+t[r].toFixed(e-1);t[r]=+Math.abs(i-t[r]).toFixed(e+1)>=n?+t[r].toFixed(e):i}}return t}},81862:(e,t,r)=>{"use strict";t.type="full";t.active=true;t.params={onlyMatchedOnce:true,removeMatchedSelectors:true,useMqs:["","screen"],usePseudos:[""]};t.description="inline styles (additional options)";var n=r(29701),i=r(27604);t.fn=function(e,t){var r=e.querySelectorAll("style");if(r===null){return e}var a=[],o=[];for(var s of r){if(s.isEmpty()||s.closestElem("foreignObject")){continue}var l=i.getCssStr(s);var c={};try{c=n.parse(l,{parseValue:false,parseCustomProperty:false})}catch(e){continue}a.push({styleEl:s,cssAst:c});o=o.concat(i.flattenToSelectors(c))}var u=i.filterByMqs(o,t.useMqs);var d=i.filterByPseudos(u,t.usePseudos);i.cleanPseudos(d);var p=i.sortSelectors(d).reverse();var m,f;for(m of p){var h=n.generate(m.item.data),g=null;try{g=e.querySelectorAll(h)}catch(e){if(e.constructor===SyntaxError){continue}throw e}if(g===null){continue}m.selectedEls=g}for(m of p){if(!m.selectedEls){continue}if(t.onlyMatchedOnce&&m.selectedEls!==null&&m.selectedEls.length>1){continue}for(f of m.selectedEls){if(m.rule===null){continue}n.walk(m.rule,{visit:"Declaration",enter:function(e){var t=i.csstreeToStyleDeclaration(e);if(f.style.getPropertyValue(t.name)!==null&&f.style.getPropertyPriority(t.name)>=t.priority){return}f.style.setProperty(t.name,t.value,t.priority)}})}if(t.removeMatchedSelectors&&m.selectedEls!==null&&m.selectedEls.length>0){m.rule.prelude.children.remove(m.item)}}if(!t.removeMatchedSelectors){return e}for(m of p){if(!m.selectedEls){continue}if(t.onlyMatchedOnce&&m.selectedEls!==null&&m.selectedEls.length>1){continue}for(f of m.selectedEls){var y=m.item.data.children.first();if(y.type==="ClassSelector"){f.class.remove(y.name)}if(typeof f.class.item(0)==="undefined"){f.removeAttr("class")}if(y.type==="IdSelector"){f.removeAttr("id",y.name)}}}for(var v of a){n.walk(v.cssAst,{visit:"Rule",enter:function(e,t,r){if(e.type==="Atrule"&&e.block!==null&&e.block.children.isEmpty()){r.remove(t);return}if(e.type==="Rule"&&e.prelude.children.isEmpty()){r.remove(t)}}});if(v.cssAst.children.isEmpty()){var b=v.styleEl.parentNode;b.spliceContent(b.content.indexOf(v.styleEl),1);if(b.elem==="defs"&&b.content.length===0){var S=b.parentNode;S.spliceContent(S.content.indexOf(b),1)}continue}i.setCssStr(v.styleEl,n.generate(v.cssAst))}return e}},46123:(e,t,r)=>{"use strict";t.type="perItem";t.active=true;t.description="merges multiple paths in one if possible";t.params={collapseRepeated:true,force:false,leadingZero:true,negativeExtraSpace:true,noSpaceAfterFlags:true};var n=r(54870).path2js,i=r(54870).js2path,a=r(54870).intersects;t.fn=function(e,t){if(!e.isElem()||e.isEmpty())return;var r=null,o=null;e.content=e.content.filter(function(e){if(r&&r.isElem("path")&&r.isEmpty()&&r.hasAttr("d")&&e.isElem("path")&&e.isEmpty()&&e.hasAttr("d")){if(!o){o=Object.keys(r.attrs)}var s=Object.keys(e.attrs),l=o.length==s.length&&s.every(function(t){return t=="d"||r.hasAttr(t)&&r.attr(t).value==e.attr(t).value}),c=n(r),u=n(e);if(l&&(t.force||!a(c,u))){i(r,c.concat(u),t);return false}}r=e;o=null;return true})}},77686:(e,t,r)=>{"use strict";t.type="full";t.active=true;t.description="minifies styles and removes unused styles based on usage data";t.params={usage:{force:false,ids:true,classes:true,tags:true}};var n=r(465);t.fn=function(e,t){t=t||{};var r=cloneObject(t);var i=cloneObject(t);var a=findStyleElems(e);r.usage=collectUsageData(e,t);i.usage=null;a.forEach(function(e){if(e.isElem("style")){var t=e.content[0].text||e.content[0].cdata||[];var a=t.indexOf(">")>=0||t.indexOf("<")>=0?"cdata":"text";e.content[0][a]=n.minify(t,r).css}else{var o=e.attr("style").value;e.attr("style").value=n.minifyBlock(o,i).css}});return e};function cloneObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function findStyleElems(e){function walk(e,t){for(var r=0;r{"use strict";t.type="perItemReverse";t.active=true;t.description="moves elements attributes to the existing group wrapper";var n=r(76344).inheritableAttrs,i=r(76344).pathElems;t.fn=function(e){if(e.isElem("g")&&!e.isEmpty()&&e.content.length>1){var t={},r=false,n=e.hasAttr("clip-path")||e.hasAttr("mask"),a=e.content.every(function(e){if(e.isElem()&&e.hasAttr()){if(e.hasAttr("class"))return false;if(!Object.keys(t).length){t=e.attrs}else{t=intersectInheritableAttrs(t,e.attrs);if(!t)return false}return true}}),o=e.content.every(function(e){return e.isElem(i)});if(a){e.content.forEach(function(i){for(var a in t){if(!o&&!n||a!=="transform"){i.removeAttr(a);if(a==="transform"){if(!r){if(e.hasAttr("transform")){e.attr("transform").value+=" "+t[a].value}else{e.addAttr(t[a])}r=true}}else{e.addAttr(t[a])}}}})}}};function intersectInheritableAttrs(e,t){var r={};for(var i in e){if(t.hasOwnProperty(i)&&n.indexOf(i)>-1&&e[i].name===t[i].name&&e[i].value===t[i].value&&e[i].prefix===t[i].prefix&&e[i].local===t[i].local){r[i]=e[i]}}if(!Object.keys(r).length)return false;return r}},69078:(e,t,r)=>{"use strict";t.type="perItem";t.active=true;t.description="moves some group attributes to the content elements";var n=r(76344),i=n.pathElems.concat(["g","text"]),a=n.referencesProps;t.fn=function(e){if(e.isElem("g")&&e.hasAttr("transform")&&!e.isEmpty()&&!e.someAttr(function(e){return~a.indexOf(e.name)&&~e.value.indexOf("url(")})&&e.content.every(function(e){return e.isElem(i)&&!e.hasAttr("id")})){e.content.forEach(function(t){var r=e.attr("transform");if(t.hasAttr("transform")){t.attr("transform").value=r.value+" "+t.attr("transform").value}else{t.addAttr({name:r.name,local:r.local,prefix:r.prefix,value:r.value})}});e.removeAttr("transform")}}},33099:(e,t,r)=>{"use strict";t.type="perItem";t.active=false;t.params={delim:"__",prefixIds:true,prefixClassNames:true};t.description="prefix IDs";var n=r(85622),i=r(29701),a=r(47937),o=r(76344),s=o.referencesProps,l=/^#(.*)$/,c=null;var u=function(e){return e.replace(/[\. ]/g,"_")};var d=function(e){var t=e.match(l);if(t===null){return false}return t[1]};var p=function(e){var t=/url\((.*?)\)/gi.exec(e);if(t===null){return false}return t[1]};var m=function(e){return e&&e.value&&e.value.length>0};var f=function(e){var t=d(e);if(!t){return false}return"#"+c(t)};var h=function(e){if(!m(e)){return}e.value=e.value.split(/\s+/).map(c).join(" ")};var g=function(e){if(!m(e)){return}e.value=c(e.value)};var y=function(e){if(!m(e)){return}var t=f(e.value);if(!t){return}e.value=t};var v=function(e){if(!m(e)){return}var t=p(e.value);if(!t){return}var r=f(t);if(!r){return}e.value="url("+r+")"};t.fn=function(e,t,r){if(r.multipassCount&&r.multipassCount>0){return e}var o="prefix";if(t.prefix){if(typeof t.prefix==="function"){o=t.prefix(e,r)}else{o=t.prefix}}else if(t.prefix===false){o=false}else if(r&&r.path&&r.path.length>0){var l=n.basename(r.path);o=l}c=function(e){if(o===false){return u(e)}return u(o+t.delim+e)};if(e.elem==="style"){if(e.isEmpty()){return e}var d=e.content[0].text||e.content[0].cdata||[];var p={};try{p=i.parse(d,{parseValue:true,parseCustomProperty:false})}catch(t){console.warn("Warning: Parse error of styles of element, skipped. Error details: "+t);return e}var m="";i.walk(p,function(e){if((t.prefixIds&&e.type==="IdSelector"||t.prefixClassNames&&e.type==="ClassSelector")&&e.name){e.name=c(e.name);return}if(e.type==="Url"&&e.value.value&&e.value.value.length>0){m=f(a(e.value.value));if(!m){return}e.value.value=m}});e.content[0].text=i.generate(p);return e}if(!e.attrs){return e}if(t.prefixIds){g(e.attrs.id)}if(t.prefixClassNames){h(e.attrs.class)}y(e.attrs.href);y(e.attrs["xlink:href"]);for(var b of s){v(e.attrs[b])}return e}},65731:(e,t)=>{"use strict";t.type="perItem";t.active=false;t.description="removes attributes of elements that match a css selector";t.fn=function(e,t){var r=Array.isArray(t.selectors)?t.selectors:[t];r.map(function(t){if(e.matches(t.selector)){e.removeAttr(t.attributes)}})}},91585:(e,t)=>{"use strict";var r=":";t.type="perItem";t.active=false;t.description="removes specified attributes";t.params={elemSeparator:r,preserveCurrentColor:false,attrs:[]};t.fn=function(e,t){if(!Array.isArray(t.attrs)){t.attrs=[t.attrs]}if(e.isElem()){var n=typeof t.elemSeparator=="string"?t.elemSeparator:r;var i=typeof t.preserveCurrentColor=="boolean"?t.preserveCurrentColor:false;var a=t.attrs.map(function(e){if(e.indexOf(n)===-1){e=[".*",n,e,n,".*"].join("")}else if(e.split(n).length<3){e=[e,n,".*"].join("")}return e.split(n).map(function(e){if(e==="*"){e=".*"}return new RegExp(["^",e,"$"].join(""),"i")})});a.forEach(function(t){if(t[0].test(e.elem)){e.eachAttr(function(r){var n=r.name;var a=r.value;var o=i&&n=="fill"&&a=="currentColor";var s=i&&n=="stroke"&&a=="currentColor";if(!(o||s)){if(t[1].test(n)){if(t[2].test(r.value)){e.removeAttr(n)}}}})}})}}},13383:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="removes comments";t.fn=function(e){if(e.comment&&e.comment.charAt(0)!=="!"){return false}}},81668:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.params={removeAny:true};t.description="removes ";var r=/^(Created with|Created using)/;t.fn=function(e,t){return!e.isElem("desc")||!(t.removeAny||e.isEmpty()||r.test(e.content[0].text))}},41690:(e,t)=>{"use strict";t.type="perItem";t.active=false;t.description="removes width and height in presence of viewBox (opposite to removeViewBox, disable it first)";t.fn=function(e){if(e.isElem("svg")){if(e.hasAttr("viewBox")){e.removeAttr("width");e.removeAttr("height")}else if(e.hasAttr("width")&&e.hasAttr("height")&&!isNaN(Number(e.attr("width").value))&&!isNaN(Number(e.attr("height").value))){e.addAttr({name:"viewBox",value:"0 0 "+Number(e.attr("width").value)+" "+Number(e.attr("height").value),prefix:"",local:"viewBox"});e.removeAttr("width");e.removeAttr("height")}}}},42114:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="removes doctype declaration";t.fn=function(e){if(e.doctype){return false}}},70325:(e,t,r)=>{"use strict";t.type="perItem";t.active=true;t.description="removes editors namespaces, elements and attributes";var n=r(76344).editorNamespaces,i=[];t.params={additionalNamespaces:[]};t.fn=function(e,t){if(Array.isArray(t.additionalNamespaces)){n=n.concat(t.additionalNamespaces)}if(e.elem){if(e.isElem("svg")){e.eachAttr(function(t){if(t.prefix==="xmlns"&&n.indexOf(t.value)>-1){i.push(t.local);e.removeAttr(t.name)}})}e.eachAttr(function(t){if(i.indexOf(t.prefix)>-1){e.removeAttr(t.name)}});if(i.indexOf(e.prefix)>-1){return false}}}},70535:(e,t)=>{"use strict";t.type="perItem";t.active=false;t.description="removes arbitrary elements by ID or className (disabled by default)";t.params={id:[],class:[]};t.fn=function(e,t){var r,n;["id","class"].forEach(function(e){if(!Array.isArray(t[e])){t[e]=[t[e]]}});if(!e.isElem()){return}r=e.attr("id");if(r){return t.id.indexOf(r.value)===-1}n=e.attr("class");if(n){var i=new RegExp(t.class.join("|"));return!i.test(n.value)}}},63151:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="removes empty attributes";t.fn=function(e){if(e.elem){e.eachAttr(function(t){if(t.value===""){e.removeAttr(t.name)}})}}},41059:(e,t,r)=>{"use strict";t.type="perItemReverse";t.active=true;t.description="removes empty container elements";var n=r(76344).elemsGroups.container;t.fn=function(e){return!(e.isElem(n)&&!e.isElem("svg")&&e.isEmpty()&&(!e.isElem("pattern")||!e.hasAttrLocal("href")))}},14156:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="removes empty elements";t.params={text:true,tspan:true,tref:true};t.fn=function(e,t){if(t.text&&e.isElem("text")&&e.isEmpty())return false;if(t.tspan&&e.isElem("tspan")&&e.isEmpty())return false;if(t.tref&&e.isElem("tref")&&!e.hasAttrLocal("href"))return false}},1378:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="removes hidden elements (zero sized, with absent attributes)";t.params={isHidden:true,displayNone:true,opacity0:true,circleR0:true,ellipseRX0:true,ellipseRY0:true,rectWidth0:true,rectHeight0:true,patternWidth0:true,patternHeight0:true,imageWidth0:true,imageHeight0:true,pathEmptyD:true,polylineEmptyPoints:true,polygonEmptyPoints:true};var r=/M\s*(?:[-+]?(?:\d*\.\d+|\d+(?:\.|(?!\.)))([eE][-+]?\d+)?(?!\d)\s*,?\s*){2}\D*\d/i;t.fn=function(e,t){if(e.elem){if(t.isHidden&&e.hasAttr("visibility","hidden"))return false;if(t.displayNone&&e.hasAttr("display","none"))return false;if(t.opacity0&&e.hasAttr("opacity","0"))return false;if(t.circleR0&&e.isElem("circle")&&e.isEmpty()&&e.hasAttr("r","0"))return false;if(t.ellipseRX0&&e.isElem("ellipse")&&e.isEmpty()&&e.hasAttr("rx","0"))return false;if(t.ellipseRY0&&e.isElem("ellipse")&&e.isEmpty()&&e.hasAttr("ry","0"))return false;if(t.rectWidth0&&e.isElem("rect")&&e.isEmpty()&&e.hasAttr("width","0"))return false;if(t.rectHeight0&&t.rectWidth0&&e.isElem("rect")&&e.isEmpty()&&e.hasAttr("height","0"))return false;if(t.patternWidth0&&e.isElem("pattern")&&e.hasAttr("width","0"))return false;if(t.patternHeight0&&e.isElem("pattern")&&e.hasAttr("height","0"))return false;if(t.imageWidth0&&e.isElem("image")&&e.hasAttr("width","0"))return false;if(t.imageHeight0&&e.isElem("image")&&e.hasAttr("height","0"))return false;if(t.pathEmptyD&&e.isElem("path")&&(!e.hasAttr("d")||!r.test(e.attr("d").value)))return false;if(t.polylineEmptyPoints&&e.isElem("polyline")&&!e.hasAttr("points"))return false;if(t.polygonEmptyPoints&&e.isElem("polygon")&&!e.hasAttr("points"))return false}}},28873:(e,t)=>{"use strict";t.type="perItem";t.active=true;t.description="removes ";t.fn=function(e){return!e.isElem("metadata")}},67662:(e,t,r)=>{"use strict";t.type="perItem";t.active=true;t.description="removes non-inheritable group’s presentational attributes";var n=r(76344).inheritableAttrs,i=r(76344).attrsGroups,a=r(76344).presentationNonInheritableGroupAttrs;t.fn=function(e){if(e.isElem("g")){e.eachAttr(function(t){if(~i.presentation.indexOf(t.name)&&!~n.indexOf(t.name)&&!~a.indexOf(t.name)){e.removeAttr(t.name)}})}}},58267:(e,t,r)=>{"use strict";t.type="perItem";t.active=false;t.description="removes elements that are drawn outside of the viewbox (disabled by default)";var n=r(20485),i=r(54870),a=i.intersects,o=i.path2js,s,l;t.fn=function(e){if(e.isElem("path")&&e.hasAttr("d")&&typeof s!=="undefined"){if(hasTransform(e)||pathMovesWithinViewBox(e.attr("d").value)){return true}var t=o(e);if(t.length===2){t=JSON.parse(JSON.stringify(t));t.push({instruction:"z"})}return a(l,t)}if(e.isElem("svg")){parseViewBox(e)}return true};function hasTransform(e){return e.hasAttr("transform")||e.parentNode&&hasTransform(e.parentNode)}function parseViewBox(e){var t="";if(e.hasAttr("viewBox")){t=e.attr("viewBox").value}else if(e.hasAttr("height")&&e.hasAttr("width")){t="0 0 "+e.attr("width").value+" "+e.attr("height").value}t=t.replace(/[,+]|px/g," ").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"");var r=/^(-?\d*\.?\d+) (-?\d*\.?\d+) (\d*\.?\d+) (\d*\.?\d+)$/.exec(t);if(!r){return}s={left:parseFloat(r[1]),top:parseFloat(r[2]),right:parseFloat(r[1])+parseFloat(r[3]),bottom:parseFloat(r[2])+parseFloat(r[4])};var i=(new n).createContentItem({elem:"path",prefix:"",local:"path"});i.addAttr({name:"d",prefix:"",local:"d",value:"M"+r[1]+" "+r[2]+"h"+r[3]+"v"+r[4]+"H"+r[1]+"z"});l=o(i)}function pathMovesWithinViewBox(e){var t=/M\s*(-?\d*\.?\d+)(?!\d)\s*(-?\d*\.?\d+)/g,r;while(null!==(r=t.exec(e))){if(r[1]>=s.left&&r[1]<=s.right&&r[2]>=s.top&&r[2]<=s.bottom){return true}}return false}},99062:(e,t)=>{"use strict";t.type="perItem";t.active=false;t.description="removes raster images (disabled by default)";t.fn=function(e){if(e.isElem("image")&&e.hasAttrLocal("href",/(\.|image\/)(jpg|png|gif)/)){return false}}},64186:(e,t)=>{"use strict";t.type="perItem";t.active=false;t.description="removes