@cybrid/cybrid-api-id-angular 0.122.36 → 0.122.38
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/esm2020/api/bankApplications.service.mjs +2 -2
- package/esm2020/api/customerTokens.service.mjs +2 -2
- package/esm2020/api/organizationApplications.service.mjs +2 -2
- package/esm2020/api/users.service.mjs +2 -2
- package/esm2020/model/application.mjs +2 -2
- package/esm2020/model/applicationList.mjs +1 -1
- package/esm2020/model/applicationWithSecret.mjs +1 -1
- package/esm2020/model/applicationWithSecretAllOf.mjs +2 -2
- package/esm2020/model/customerToken.mjs +2 -2
- package/esm2020/model/errorResponse.mjs +2 -2
- package/esm2020/model/postBankApplication.mjs +2 -2
- package/esm2020/model/postCustomerToken.mjs +2 -2
- package/esm2020/model/postOrganizationApplication.mjs +2 -2
- package/esm2020/model/postUser.mjs +2 -2
- package/esm2020/model/user.mjs +2 -2
- package/esm2020/model/userList.mjs +1 -1
- package/fesm2015/cybrid-cybrid-api-id-angular.mjs +6 -6
- package/fesm2015/cybrid-cybrid-api-id-angular.mjs.map +1 -1
- package/fesm2020/cybrid-cybrid-api-id-angular.mjs +13 -13
- package/fesm2020/cybrid-cybrid-api-id-angular.mjs.map +1 -1
- package/model/application.d.ts +1 -1
- package/model/applicationList.d.ts +1 -1
- package/model/applicationWithSecretAllOf.d.ts +1 -1
- package/model/customerToken.d.ts +1 -1
- package/model/errorResponse.d.ts +1 -1
- package/model/postBankApplication.d.ts +1 -1
- package/model/postCustomerToken.d.ts +1 -1
- package/model/postOrganizationApplication.d.ts +1 -1
- package/model/postUser.d.ts +1 -1
- package/model/user.d.ts +1 -1
- package/model/userList.d.ts +1 -1
- package/package.json +1 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
* Cybrid Identity API
|
3
3
|
* # Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you\'ll find details on how our REST API operates and generally how our platform functions. If you\'re looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid\'s public interactive API documentation, which allows you to fully test our APIs. If you\'d like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you\'re new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you\'ll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d \'{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:write identity_verifications:execute\" }\' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to \'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read\' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you\'d like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC\'d) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
|
4
4
|
*
|
5
|
-
* The version of the OpenAPI document: v0.122.
|
5
|
+
* The version of the OpenAPI document: v0.122.38
|
6
6
|
* Contact: support@cybrid.app
|
7
7
|
*
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
@@ -258,4 +258,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
258
258
|
}] }, { type: i2.Configuration, decorators: [{
|
259
259
|
type: Optional
|
260
260
|
}] }]; } });
|
261
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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pleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICAgICAgICAgICB8IGJhbmtzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaykgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBiYW5rczp3cml0ZSAoT3JnYW5pemF0aW9uLCBCYW5rKSAgICAgICAgICAgICAgfCBiYW5rczpleGVjdXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgfCB8IEN1c3RvbWVyICAgICAgICAgICAgICB8IGN1c3RvbWVyczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCBjdXN0b21lcnM6d3JpdGUgKEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCBjdXN0b21lcnM6ZXhlY3V0ZSAoQmFuaykgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IENvdW50ZXJwYXJ0eSAgICAgICAgICB8IGNvdW50ZXJwYXJ0aWVzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCBjb3VudGVycGFydGllczp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCBjb3VudGVycGFydGllczpleGVjdXRlIChCYW5rKSAgICAgICAgICAgICAgICAgICAgfCB8IERlcG9zaXQgQWRkcmVzcyAgICAgICB8IGRlcG9zaXRfYWRkcmVzc2VzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgfCBkZXBvc2l0X2FkZHJlc3Nlczp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgfCBkZXBvc2l0X2FkZHJlc3NlczpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgfCB8IEV4dGVybmFsIEJhbmsgQWNjb3VudCB8IGV4dGVybmFsX2JhbmtfYWNjb3VudHM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgfCBleHRlcm5hbF9iYW5rX2FjY291bnRzOndyaXRlIChCYW5rLCBDdXN0b21lcikgfCBleHRlcm5hbF9iYW5rX2FjY291bnRzOmV4ZWN1dGUgKEJhbmssIEN1c3RvbWVyKSAgfCB8IEV4dGVybmFsIFdhbGxldCAgICAgICB8IGV4dGVybmFsX3dhbGxldDpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBleHRlcm5hbF93YWxsZXQ6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCB8IE9yZ2FuaXphdGlvbiAgICAgICAgICB8IG9yZ2FuaXphdGlvbnM6cmVhZCAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgICAgICAgICAgICAgICAgfCBvcmdhbml6YXRpb25zOndyaXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IFVzZXIgICAgICAgICAgICAgICAgICB8IHVzZXJzOnJlYWQgKE9yZ2FuaXphdGlvbikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB1c2VyczpleGVjdXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgfCB8IFByaWNlICAgICAgICAgICAgICAgICB8IHByaWNlczpyZWFkIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IFF1b3RlICAgICAgICAgICAgICAgICB8IHF1b3RlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBxdW90ZXM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgfCB8IFRyYWRlICAgICAgICAgICAgICAgICB8IHRyYWRlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB0cmFkZXM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgfCB8IFRyYW5zZmVyICAgICAgICAgICAgICB8IHRyYW5zZmVyczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB0cmFuc2ZlcnM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgfCB8IFdvcmtmbG93ICAgICAgICAgICAgICB8IHdvcmtmbG93czpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB3b3JrZmxvd3M6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCB8IEludm9pY2UgICAgICAgICAgICAgICB8IGludm9pY2VzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCBpbnZvaWNlczp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCBpbnZvaWNlczpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAg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gIHwgQ3VzdG9tZXJUb2tlbiAgICAgICAgfCAvYXBpL2N1c3RvbWVyX3Rva2VucyAgICAgICAgICAgfCBDcmVhdGUgY3VzdG9tZXIgSldUIGFjY2VzcyB0b2tlbnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBJZGVudGl0eSAgICAgfCBPcmdhbml6YXRpb24gICAgICAgICB8IC9hcGkvb3JnYW5pemF0aW9uX2FwcGxpY2F0aW9ucyB8IENyZWF0ZSBhbmQgbGlzdCBvcmdhbml6YXRpb25zICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IElkZW50aXR5ICAgICB8IE9yZ2FuaXphdGlvbiAgICAgICAgIHwgL2FwaS91c2VycyAgICAgICAgICAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IG9yZ2FuaXphdGlvbiB1c2VycyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgT3JnYW5pemF0aW9uIHwgT3JnYW5pemF0aW9uICAgICAgICAgfCAvYXBpL29yZ2FuaXphdGlvbnMgICAgICAgICAgICAgfCBBUElzIHRvIHJldHJpZXZlIGFuZCB1cGRhdGUgb3JnYW5pemF0aW9uIG5hbWUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBBY2NvdW50ICAgICAgICAgICAgICB8IC9hcGkvYWNjb3VudHMgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBhY2NvdW50cywgd2hpY2ggaG9sZCBhIHNwZWNpZmljIGFzc2V0IGZvciBhIGN1c3RvbWVycyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IEFzc2V0ICAgICAgICAgICAgICAgIHwgL2FwaS9hc3NldHMgICAgICAgICAgICAgICAgICAgIHwgR2V0IGEgbGlzdCBvZiBhc3NldHMgc3VwcG9ydGVkIGJ5IHRoZSBwbGF0Zm9ybSAoZXg6IEJUQywgRVRIKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgQmFuayAgICAgICAgICAgICAgICAgfCAvYXBpL2JhbmtzICAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUsIHVwZGF0ZSBhbmQgbGlzdCBiYW5rcywgdGhlIHBhcmVudCB0byBjdXN0b21lcnMsIGFjY291bnRzLCBldGMgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBDdXN0b21lciAgICAgICAgICAgICB8IC9hcGkvY3VzdG9tZXJzICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBjdXN0b21lcnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IENvdW50ZXJwYXJ0eSAgICAgICAgIHwgL2FwaS9jb3VudGVycGFydGllcyAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IGNvdW50ZXJwYXJ0aWVzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgRGVwb3NpdEFkZHJlc3MgICAgICAgfCAvYXBpL2RlcG9zaXRfYWRkcmVzc2VzICAgICAgICAgfCBDcmVhdGUsIGdldCBhbmQgbGlzdCBkZXBvc2l0IGFkZHJlc3NlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBFeHRlcm5hbEJhbmtBY2NvdW50ICB8IC9hcGkvZXh0ZXJuYWxfYmFua19hY2NvdW50cyAgICB8IENyZWF0ZSwgZ2V0IGFuZCBsaXN0IGV4dGVybmFsIGJhbmsgYWNjb3VudHMsIHdoaWNoIGNvbm5lY3QgY3VzdG9tZXIgYmFuayBhY2NvdW50cyB0byB0aGUgcGxhdGZvcm0gfCB8IEJhbmsgICAgICAgICB8IEV4dGVybmFsV2FsbGV0ICAgICAgIHwgL2FwaS9leHRlcm5hbF93YWxsZXRzICAgICAgICAgIHwgQ3JlYXRlLCBnZXQsIGxpc3QgYW5kIGRlbGV0ZSBleHRlcm5hbCB3YWxsZXRzLCB3aGljaCBjb25uZWN0IGN1c3RvbWVyIHdhbGxldHMgdG8gdGhlIHBsYXRmb3JtICAgICB8IHwgQmFuayAgICAgICAgIHwgSWRlbnRpdHlWZXJpZmljYXRpb24gfCAvYXBpL2lkZW50aXR5X3ZlcmlmaWNhdGlvbnMgICAgfCBDcmVhdGUgYW5kIGxpc3QgaWRlbnRpdHkgdmVyaWZpY2F0aW9ucywgd2hpY2ggYXJlIHBlcmZvcm1lZCBvbiBjdXN0b21lcnMgZm9yIEtZQyAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBJbnZvaWNlICAgICAgICAgICAgICB8IC9hcGkvaW52b2ljZXMgICAgICAgICAgICAgICAgICB8IENyZWF0ZSwgZ2V0LCBjYW5jZWwgYW5kIGxpc3QgaW52b2ljZXMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFBheW1lbnRJbnN0cnVjdGlvbiAgIHwgL2FwaS9wYXltZW50X2luc3RydWN0aW9ucyAgICAgIHwgQ3JlYXRlLCBnZXQgYW5kIGxpc3QgcGF5bWVudCBpbnN0cnVjdGlvbnMgZm9yIGludm9pY2VzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgUHJpY2UgICAgICAgICAgICAgICAgfCAvYXBpL3ByaWNlcyAgICAgICAgICAgICAgICAgICAgfCBHZXQgdGhlIGN1cnJlbnQgcHJpY2VzIGZvciBhc3NldHMgb24gdGhlIHBsYXRmb3JtICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBRdW90ZSAgICAgICAgICAgICAgICB8IC9hcGkvcXVvdGVzICAgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBxdW90ZXMsIHdoaWNoIGFyZSByZXF1aXJlZCB0byBleGVjdXRlIHRyYWRlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFN5bWJvbCAgICAgICAgICAgICAgIHwgL2FwaS9zeW1ib2xzICAgICAgICAgICAgICAgICAgIHwgR2V0IGEgbGlzdCBvZiBzeW1ib2xzIHN1cHBvcnRlZCBmb3IgdHJhZGUgKGV4OiBCVEMtVVNEKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgVHJhZGUgICAgICAgICAgICAgICAgfCAvYXBpL3RyYWRlcyAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgdHJhZGVzLCB3aGljaCBidXkgb3Igc2VsbCBjcnlwdG9jdXJyZW5jeSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBUcmFuc2ZlciAgICAgICAgICAgICB8IC9hcGkvdHJhbnNmZXJzICAgICAgICAgICAgICAgICB8IENyZWF0ZSwgZ2V0IGFuZCBsaXN0IHRyYW5zZmVycyAoZS5nLiwgZnVuZGluZywgYm9vaykgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFdvcmtmbG93ICAgICAgICAgICAgIHwgL2FwaS93b3JrZmx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GNvbnN1bWVzKTtcbiAgICAgICAgaWYgKGh0dHBDb250ZW50VHlwZVNlbGVjdGVkICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGxvY2FsVmFySGVhZGVycyA9IGxvY2FsVmFySGVhZGVycy5zZXQoJ0NvbnRlbnQtVHlwZScsIGh0dHBDb250ZW50VHlwZVNlbGVjdGVkKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCByZXNwb25zZVR5cGVfOiAndGV4dCcgfCAnanNvbicgfCAnYmxvYicgPSAnanNvbic7XG4gICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkge1xuICAgICAgICAgICAgaWYgKGxvY2FsVmFySHR0cEhlYWRlckFjY2VwdFNlbGVjdGVkLnN0YXJ0c1dpdGgoJ3RleHQnKSkge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAndGV4dCc7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMuY29uZmlndXJhdGlvbi5pc0pzb25NaW1lKGxvY2FsVmFySHR0cEhlYWRlckFjY2VwdFNlbGVjdGVkKSkge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAnanNvbic7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAnYmxvYic7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpcy5odHRwQ2xpZW50LnBvc3Q8QXBwbGljYXRpb25XaXRoU2VjcmV0SWRwTW9kZWw+KGAke3RoaXMuY29uZmlndXJhdGlvbi5iYXNlUGF0aH0vYXBpL29yZ2FuaXphdGlvbl9hcHBsaWNhdGlvbnNgLFxuICAgICAgICAgICAgcG9zdE9yZ2FuaXphdGlvbkFwcGxpY2F0aW9uSWRwTW9kZWwsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgY29udGV4dDogbG9jYW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WN0ZWQpIHtcbiAgICAgICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZC5zdGFydHNXaXRoKCd0ZXh0JykpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ3RleHQnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmNvbmZpZ3VyYXRpb24uaXNKc29uTWltZShsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2pzb24nO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2Jsb2InO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cENsaWVudC5kZWxldGU8YW55PihgJHt0aGlzLmNvbmZpZ3VyYXRpb24uYmFzZVBhdGh9L2FwaS9vcmdhbml6YXRpb25fYXBwbGljYXRpb25zLyR7ZW5jb2RlVVJJQ29tcG9uZW50KFN0cmluZyhjbGllbnRJZCkpfWAsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgY29udGV4dDogbG9jYWxWYXJIdHRwQ29udGV4dCxcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGU6IDxhbnk+cmVzcG9uc2VUeXBlXyxcbiAgICAgICAgICAgICAgICB3aXRoQ3JlZGVudGlhbHM6IHRoaXMuY29uZmlndXJhdGlvbi53aXRoQ3JlZGVudGlhbHMsXG4gICAgICAgICAgICAgICAgaGVhZGVyczogbG9jYWxWYXJIZWFkZXJzLFxuICAgICAgICAgICAgICAgIG9ic2VydmU6IG9ic2VydmUsXG4gICAgICAgICAgICAgICAgcmVwb3J0UHJvZ3Jlc3M6IHJlcG9ydFByb2dyZXNzXG4gICAgICAgICAgICB9XG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogTGlz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4dCA9IG5ldyBIdHRwQ29udGV4dCgpO1xuICAgICAgICB9XG5cblxuICAgICAgICBsZXQgcmVzcG9uc2VUeXBlXzogJ3RleHQnIHwgJ2pzb24nIHwgJ2Jsb2InID0gJ2pzb24nO1xuICAgICAgICBpZiAobG9jYWxWYXJIdHRwSGVhZGVyQWNjZXB0U2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZC5zdGFydHNXaXRoKCd0ZXh0JykpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ3RleHQnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmNvbmZpZ3VyYXRpb24uaXNKc29uTWltZShsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2pzb24nO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2Jsb2InO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cENsaWVudC5nZXQ8QXBwbGljYXRpb25MaXN0SWRwTW9kZWw+KGAke3RoaXMuY29uZmlndXJhdGlvbi5iYXNlUGF0aH0vYXBpL29yZ2FuaXphdGlvbl9hcHBsaWNhdGlvbnNgLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGNvbnRleHQ6IGxvY2FsVmFySHR0cENvbnRleHQsXG4gICAgICAgICAgICAgICAgcGFyYW1zOiBsb2NhbFZhclF1ZXJ5UGFyYW1ldGVycyxcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGU6IDxhbnk+cmVzcG9uc2VUeXBlXyxcbiAgICAgICAgICAgICAgICB3aXRoQ3JlZGVudGlhbHM6IHRoaXMuY29uZmlndXJhdGlvbi53aXRoQ3JlZGVudGlhbHMsXG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tLS0tLS0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfCB8IEFjY291bnQgICAgICAgICAgICAgICB8IGFjY291bnRzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBhY2NvdW50czpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICAgICAgICAgICB8IGJhbmtzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaykgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBiYW5rczp3cml0ZSAoT3JnYW5pemF0aW9uLCBCYW5rKSAgICAgICAgICAgICAgfCBiYW5rczpleGVjdXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgfCB8IEN1c3RvbWVyICAgICAgICAgICAgICB8IGN1c3RvbWVyczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCBjdXN0b21lcnM6d3JpdGUgKEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCBjdXN0b21lcnM6ZXhlY3V0ZSAoQmFuaykgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IENvdW50ZXJwYXJ0eSAgICAgICAgICB8IGNvdW50ZXJwYXJ0aWVzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCBjb3VudGVycGFydGllczp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCBjb3VudGVycGFydGllczpleGVjdXRlIChCYW5rKSAgICAgICAgICAgICAgICAgICAgfCB8IERlcG9zaXQgQWRkcmVzcyAgICAgICB8IGRlcG9zaXRfYWRkcmVzc2VzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgfCBkZXBvc2l0X2FkZHJlc3Nlczp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgfCBkZXBvc2l0X2FkZHJlc3NlczpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgfCB8IEV4dGVybmFsIEJhbmsgQWNjb3VudCB8IGV4dGVybmFsX2JhbmtfYWNjb3VudHM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgfCBleHRlcm5hbF9iYW5rX2FjY291bnRzOndyaXRlIChCYW5rLCBDdXN0b21lcikgfCBleHRlcm5hbF9iYW5rX2FjY291bnRzOmV4ZWN1dGUgKEJhbmssIEN1c3RvbWVyKSAgfCB8IEV4dGVybmFsIFdhbGxldCAgICAgICB8IGV4dGVybmFsX3dhbGxldDpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBleHRlcm5hbF93YWxsZXQ6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCB8IE9yZ2FuaXphdGlvbiAgICAgICAgICB8IG9yZ2FuaXphdGlvbnM6cmVhZCAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgICAgICAgICAgICAgICAgfCBvcmdhbml6YXRpb25zOndyaXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IFVzZXIgICAgICAgICAgICAgICAgICB8IHVzZXJzOnJlYWQgKE9yZ2FuaXphdGlvbikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB1c2VyczpleGVjdXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgfCB8IFByaWNlICAgICAgICAgICAgICAgICB8IHByaWNlczpyZWFkIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IFF1b3RlICAgICAgICAgICAgICAgICB8IHF1b3RlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBxdW90ZXM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgfCB8IFRyYWRlICAgICAgICAgICAgICAgICB8IHRyYWRlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB0cmFkZXM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgfCB8IFRyYW5zZmVyICAgICAgICAgICAgICB8IHRyYW5zZmVyczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB0cmFuc2ZlcnM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgfCB8IFdvcmtmbG93ICAgICAgICAgICAgICB8IHdvcmtmbG93czpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB3b3JrZmxvd3M6ZXhlY3V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tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfCB8IElkZW50aXR5ICAgICB8IEJhbmsgICAgICAgICAgICAgICAgIHwgL2FwaS9iYW5rX2FwcGxpY2F0aW9ucyAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IGJhbmtzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgSWRlbnRpdHkgICAgIHwgQ3VzdG9tZXJUb2tlbiAgICAgICAgfCAvYXBpL2N1c3RvbWVyX3Rva2VucyAgICAgICAgICAgfCBDcmVhdGUgY3VzdG9tZXIgSldUIGFjY2VzcyB0b2tlbnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBJZGVudGl0eSAgICAgfCBPcmdhbml6YXRpb24gICAgICAgICB8IC9hcGkvb3JnYW5pemF0aW9uX2FwcGxpY2F0aW9ucyB8IENyZWF0ZSBhbmQgbGlzdCBvcmdhbml6YXRpb25zICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IElkZW50aXR5ICAgICB8IE9yZ2FuaXphdGlvbiAgICAgICAgIHwgL2FwaS91c2VycyAgICAgICAgICAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IG9yZ2FuaXphdGlvbiB1c2VycyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgT3JnYW5pemF0aW9uIHwgT3JnYW5pemF0aW9uICAgICAgICAgfCAvYXBpL29yZ2FuaXphdGlvbnMgICAgICAgICAgICAgfCBBUElzIHRvIHJldHJpZXZlIGFuZCB1cGRhdGUgb3JnYW5pemF0aW9uIG5hbWUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBBY2NvdW50ICAgICAgICAgICAgICB8IC9hcGkvYWNjb3VudHMgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBhY2NvdW50cywgd2hpY2ggaG9sZCBhIHNwZWNpZmljIGFzc2V0IGZvciBhIGN1c3RvbWVycyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IEFzc2V0ICAgICAgICAgICAgICAgIHwgL2FwaS9hc3NldHMgICAgICAgICAgICAgICAgICAgIHwgR2V0IGEgbGlzdCBvZiBhc3NldHMgc3VwcG9ydGVkIGJ5IHRoZSBwbGF0Zm9ybSAoZXg6IEJUQywgRVRIKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgQmFuayAgICAgICAgICAgICAgICAgfCAvYXBpL2JhbmtzICAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUsIHVwZGF0ZSBhbmQgbGlzdCBiYW5rcywgdGhlIHBhcmVudCB0byBjdXN0b21lcnMsIGFjY291bnRzLCBldGMgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBDdXN0b21lciAgICAgICAgICAgICB8IC9hcGkvY3VzdG9tZXJzICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBjdXN0b21lcnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IENvdW50ZXJwYXJ0eSAgICAgICAgIHwgL2FwaS9jb3VudGVycGFydGllcyAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IGNvdW50ZXJwYXJ0aWVzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgI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ICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFBheW1lbnRJbnN0cnVjdGlvbiAgIHwgL2FwaS9wYXltZW50X2luc3RydWN0aW9ucyAgICAgIHwgQ3JlYXRlLCBnZXQgYW5kIGxpc3QgcGF5bWVudCBpbnN0cnVjdGlvbnMgZm9yIGludm9pY2VzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgUHJpY2UgICAgICAgICAgICAgICAgfCAvYXBpL3ByaWNlcyAgICAgICAgICAgICAgICAgICAgfCBHZXQgdGhlIGN1cnJlbnQgcHJpY2VzIGZvciBhc3NldHMgb24gdGhlIHBsYXRmb3JtICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBRdW90ZSAgICAgICAgICAgICAgICB8IC9hcGkvcXVvdGVzICAgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBxdW90ZXMsIHdoaWNoIGFyZSByZXF1aXJlZCB0byBleGVjdXRlIHRyYWRlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFN5bWJvbCAgICAgICAgICAgICAgIHwgL2FwaS9zeW1ib2xzICAgICAgICAgICAgICAgICAgIHwgR2V0IGEgbGlzdCBvZiBzeW1ib2xzIHN1cHBvcnRlZCBmb3IgdHJhZGUgKGV4OiBCVEMtVVNEKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgVHJhZGUgICAgICAgICAgICAgICAgfCAvYXBpL3RyYWRlcyAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgdHJhZGVzLCB3aGljaCBidXkgb3Igc2VsbCBjcnlwdG9jdXJyZW5jeSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBC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RoZSBDb250ZW50LVR5cGUgaGVhZGVyXG4gICAgICAgIGNvbnN0IGNvbnN1bWVzOiBzdHJpbmdbXSA9IFtcbiAgICAgICAgICAgICdhcHBsaWNhdGlvbi9qc29uJ1xuICAgICAgICBdO1xuICAgICAgICBjb25zdCBodHRwQ29udGVudFR5cGVTZWxlY3RlZDogc3RyaW5nIHwgdW5kZWZpbmVkID0gdGhpcy5jb25maWd1cmF0aW9uLnNlbGVjdEhlYWRlckNvbnRlbnRUeXBlKGNvbnN1bWVzKTtcbiAgICAgICAgaWYgKGh0dHBDb250ZW50VHlwZVNlbGVjdGVkICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGxvY2FsVmFySGVhZGVycyA9IGxvY2FsVmFySGVhZGVycy5zZXQoJ0NvbnRlbnQtVHlwZScsIGh0dHBDb250ZW50VHlwZVNlbGVjdGVkKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCByZXNwb25zZVR5cGVfOiAndGV4dCcgfCAnanNvbicgfCAnYmxvYicgPSAnanNvbic7XG4gICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkge1xuICAgICAgICAgICAgaWYgKGxvY2FsVmFySHR0cEhlYWRlckFjY2VwdFNlbGVjdGVkLnN0YXJ0c1dpdGgoJ3RleHQnKSkge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAndGV4dCc7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMuY29uZmlndXJhdGlvbi5pc0pzb25NaW1lKGxvY2FsVmFySHR0cEhlYWRlckFjY2VwdFNlbGVjdGVkKSkge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAnanNvbic7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAnYmxvYic7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhp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xvY2FsVmFySHR0cENvbnRleHQgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgbG9jYWxWYXJIdHRwQ29udGV4dCA9IG5ldyBIdHRwQ29udGV4dCgpO1xuICAgICAgICB9XG5cblxuICAgICAgICBsZXQgcmVzcG9uc2VUeXBlXzogJ3RleHQnIHwgJ2pzb24nIHwgJ2Jsb2InID0gJ2pzb24nO1xuICAgICAgICBpZiAobG9jYWxWYXJIdHRwSGVhZGVyQWNjZXB0U2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZC5zdGFydHNXaXRoKCd0ZXh0JykpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ3RleHQnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmNvbmZpZ3VyYXRpb24uaXNKc29uTWltZShsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2pzb24nO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2Jsb2InO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cENsaWVudC5kZWxldGU8YW55PihgJHt0aGlzLmNvbmZpZ3VyYXRpb24uYmFzZVBhdGh9L2FwaS9vcmdhbml6YXRpb25fYXBwbGljYXRpb25zLyR7ZW5jb2RlVVJJQ29tcG9uZW50KFN0cmluZyhjbGllbnRJZCkpfWAsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgY29udGV4dDogbG9jYWxWYXJIdHRwQ29udGV4dCxcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGU6IDxhbnk+cmVzcG9uc2VUeXBlXyxcbiAgICAgICAgICAgICAgICB3aXRoQ3JlZGVudGlhbHM6IHR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hbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgbG9jYWxWYXJIdHRwQ29udGV4dDogSHR0cENvbnRleHQgfCB1bmRlZmluZWQgPSBvcHRpb25zICYmIG9wdGlvbnMuY29udGV4dDtcbiAgICAgICAgaWYgKGxvY2FsVmFySHR0cENvbnRleHQgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgbG9jYWxWYXJIdHRwQ29udGV4dCA9IG5ldyBIdHRwQ29udGV4dCgpO1xuICAgICAgICB9XG5cblxuICAgICAgICBsZXQgcmVzcG9uc2VUeXBlXzogJ3RleHQnIHwgJ2pzb24nIHwgJ2Jsb2InID0gJ2pzb24nO1xuICAgICAgICBpZiAobG9jYWxWYXJIdHRwSGVhZGVyQWNjZXB0U2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZC5zdGFydHNXaXRoKCd0ZXh0JykpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ3RleHQnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmNvbmZpZ3VyYXRpb24uaXNKc29uTWltZShsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2pzb24nO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2Jsb2InO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cENsaWVudC5nZXQ8QXBwbGljYXRpb25MaXN0SWRwTW9kZWw+KGAke3RoaXMuY29uZmlndXJhdGlvbi5iYXNlUGF0aH0vYXBpL29yZ2FuaXphdGlvbl9hcHBsaWNhdGlvbnNgLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGNvbnRleHQ6IGxvY2FsVmFySHR0cENvbnRleHQsXG4gICAgICAgICAgICAgICAgcGFyYW1zOiBsb2NhbFZhclF1ZXJ5UGFyYW1ldGVycyxcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGU6IDxhbnk+cmVzcG9uc2VUeXBlXyxcbiAgICAgICAgICAgICAgICB3aXRoQ3JlZGVudGlhbHM6IHRoaXMuY29uZmlndXJhdGlvbi53aXRoQ3JlZGVudGlhbHMsXG4gICAgICAgICAgICAgICAgaGVhZGVyczogbG9jYWxWYXJIZWFkZXJzLFxuICAgICAgICAgICAgICAgIG9ic2VydmU6IG9ic2VydmUsXG4gICAgICAgICAgICAgICAgcmVwb3J0UHJvZ3Jlc3M6IHJlcG9ydFByb2dyZXNzXG4gICAgICAgICAgICB9XG4gICAgICAgICk7XG4gICAgfVxuXG59XG4iXX0=
|