From d5720abd05ad13e228060a89454bc1e54da22585 Mon Sep 17 00:00:00 2001 From: KtorZ Date: Mon, 19 Aug 2024 10:00:31 +0200 Subject: [PATCH] update JSON specification and render it. --- LICENSE | 322 ++-- README.md | 36 + cardano.json | 1970 ------------------- docs/asyncapi-1.0.0-next.47.min.js | 51 + docs/cardano.json | 2867 ++++++++++++++++++++++++++++ docs/index.html | 48 + docs/logo.webp | Bin 0 -> 145618 bytes docs/logo_small.webp | Bin 0 -> 9526 bytes docs/specification.yaml | 240 +++ 9 files changed, 3363 insertions(+), 2171 deletions(-) create mode 100644 README.md delete mode 100644 cardano.json create mode 100644 docs/asyncapi-1.0.0-next.47.min.js create mode 100644 docs/cardano.json create mode 100644 docs/index.html create mode 100644 docs/logo.webp create mode 100644 docs/logo_small.webp create mode 100644 docs/specification.yaml diff --git a/LICENSE b/LICENSE index 261eeb9..0e259d4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,201 +1,121 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/README.md b/README.md new file mode 100644 index 0000000..339c006 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +# Cardanonical + +Cardanonical + +A standardized JSON-schema to represent *any* Cardano-related objects. The schema covers objects found in blocks and transactions, from the Byron era onward. + +## Overview + +| schema | format | +| --- | --- | +| [Raw schema](./docs/cardano.json) | JSON | +| [Rendered schema](https://cardanosolutions.github.io/cardanonical) | HTML | + +## Rationale + +The schema from this repository is the result of several years of experience dealing with Cardano objects and collecting feedback from builders through tools like [Ogmios](https://github.com/CardanoSolutions/ogmios). It is opinionated in a few ways, with choices that could be summarized as follows: + +1. The schema and its sub-schemas try to be era-independent. That is, it tries to blend together objects from multiple Cardano era into one unified model. This is only reasonable because efforts are done for each Cardano upgrades to keep objects as backward and forward-compatible as possible. Transactions are divided into fields which are most entirely optional. While only later era may instantiate transactions carrying all fields, the schema still only describes one transaction model. + +2. The previous point implies some _transformations_ and divergence compared to what one would expect from the binary format. For example, there's no MIR certificates in the schema. They are mapped to treasury withdrawal governance actions. These transformations are meant to reduce the cognitive load that comes with _undertanding the schema_ and dealing with evolutions of the chain. The schema present a final view on Cardano's objects, and thus make accomodations where needed. + +3. There are few exceptions, but most exclusively around the Byron era. This is because the Byron era simply is _too different_ that some schema couldn't be unified without bringing extreme awkwardness. + +4. The schema is _consistent_ in its naming. Things that represent the same concept are named the same. And things that represent different concept are named differently. This is true also between the Byron era and the others. So it is reasonable for one to expect the same sub-schema given a field name. + +5. We avoid as much as possible key/value objects with arbitrary key unless they bring a real cost-saving benefit (e.g. for assets). Instead, we prefer lists with inlined fields. This is because of two main reasons: such dictionnaries are usually _ordered_ and JSON parsers do not usually preserve this ordering; and it makes parsing and processing of those datasets sometimes more cumbersome. Lists are much more universal. + +6. As a means to keep the schema self-documented, we keep names full and avoid abbreviations. No `tx`, `pp`, `vk`, `pkh` or other acronyms either. The point of such schema isn't to be as compact as possible; If you need this, use a proper binary format (CBOR would be the only sensible choice given Cardano's landscape). + +7. We use discriminated unions consistently where it is needed. That is, no object shall be ambiguous to parse and objects that represent sum-types shall always have a field to discriminate on. + +8. Few integer values in the schema are unbounded (no `maximum` nor `minimum`). These are not oversight, but actual quantity that can grow unbounded, in particular when aggregated. Parsers are expected to use big numbers or equivalent for dealing with such unbounded quantities. + +## License + +

CC0 1.0 Universal

diff --git a/cardano.json b/cardano.json deleted file mode 100644 index 2a72d29..0000000 --- a/cardano.json +++ /dev/null @@ -1,1970 +0,0 @@ -{ "$schema": "https://json-schema.org/draft-07/schema" -, "$id": "cardano.json" -, "title": "Cardano" -, "definitions": - { "Address": - { "title": "Address" - , "type": "string" - , "description": "A Cardano address (either legacy format or new format)." - , "contentEncoding": "bech32|base58" - , "pattern": "[1-9A-HJ-NP-Za-km-z]*" - , "examples": - [ "addr1q9d34spgg2kdy47n82e7x9pdd6vql6d2engxmpj20jmhuc2047yqd4xnh7u6u5jp4t0q3fkxzckph4tgnzvamlu7k5psuahzcp" - , "DdzFFzCqrht8mbSTZHqpM2u4HeND2mdspsaBhdQ1BowPJBMzbDeBMeKgqdoKqo1D4sdPusEdZJVrFJRBBxX1jUEofNDYCJSZLg8MkyCE" - ] - } - - , "AddressAttributes": - { "title": "AddressAttributes" - , "type": "string" - , "description": "Extra attributes carried by Byron addresses (network magic and/or HD payload)." - , "contentEncoding": "base16" - } - - , "AssetQuantity": - { "title": "AssetQuantity" - , "type": "integer" - , "description": "A number of asset, can be negative went burning assets." - } - - , "Assets": - { "title": "Assets" - , "type": "object" - , "propertyNames": { "pattern": "^[0-9a-z]{56}$" } - , "additionalProperties": - { "type": "object" - , "propertyNames": { "pattern": "^[0-9a-z]{0,64}$" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/AssetQuantity" } - } - } - - , "Block": - { "title": "Block" - , "oneOf": - [ { "$ref": "cardano.json#/definitions/Block" } - , { "$ref": "cardano.json#/definitions/Block" } - , { "$ref": "cardano.json#/definitions/Block" } - ] - } - - , "Block": - { "title": "Block" - , "type": "object" - , "additionalProperties": false - , "required": - [ "id", "type", "era", "ancestor", "height" - ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "ebb" ] - } - , "era": - { "type": "string" - , "enum": [ "byron" ] - } - , "id": { "$ref": "cardano.json#/definitions/Digest" } - , "ancestor": { "$ref": "cardano.json#/definitions/Digest" } - , "height": { "$ref": "cardano.json#/definitions/BlockHeight" } - } - } - - , "Block": - { "title": "Block" - , "type": "object" - , "additionalProperties": false - , "required": - [ "id", "era", "type", "ancestor", "height", "size", "slot" - , "protocol", "issuer", "delegate" - ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "bft" ] - } - , "era": - { "type": "string" - , "enum": [ "byron" ] - } - , "id": { "$ref": "cardano.json#/definitions/Digest" } - , "ancestor": { "$ref": "cardano.json#/definitions/Digest" } - , "height": { "$ref": "cardano.json#/definitions/BlockHeight" } - , "slot": { "$ref": "cardano.json#/definitions/Slot" } - , "size": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "transactions": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Transaction" } - } - , "operationalCertificates": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/BootstrapOperationalCertificate"} - } - , "protocol": - { "type": "object" - , "additionalProperties": false - , "required": [ "id", "version", "software" ] - , "properties": - { "id": { "$ref": "cardano.json#/definitions/BootstrapProtocolId" } - , "version": { "$ref": "cardano.json#/definitions/ProtocolVersion" } - , "software": { "$ref": "cardano.json#/definitions/SoftwareVersion" } - , "update": { "$ref": "cardano.json#/definitions/BootstrapProtocolUpdate" } - } - } - , "issuer": - { "type": "object" - , "additionalProperties": false - , "required": [ "verificationKey" ] - , "properties": - { "verificationKey": { "$ref": "cardano.json#/definitions/ExtendedVerificationKey" } - } - } - , "delegate": - { "type": "object" - , "additionalProperties": false - , "required": [ "verificationKey" ] - , "properties": - { "verificationKey": { "$ref": "cardano.json#/definitions/ExtendedVerificationKey" } - } - } - } - } - - , "Block": - { "title": "Block" - , "type": "object" - , "additionalProperties": false - , "required": - [ "id", "era", "type", "ancestor", "height", "size", "slot" - , "protocol", "issuer" - ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "praos" ] - } - , "era": - { "type": "string" - , "enum": [ "shelley", "allegra", "mary", "alonzo", "babbage" ] - } - , "id": { "$ref": "cardano.json#/definitions/Digest" } - , "ancestor": - { "oneOf": - [ { "$ref": "cardano.json#/definitions/Digest" } - , { "title": "GenesisHash", "type": "string", "enum": [ "genesis" ] } - ] - } - , "nonce": { "$ref": "cardano.json#/definitions/CertifiedVrf" } - , "height": { "$ref": "cardano.json#/definitions/BlockHeight" } - , "size": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "slot": { "$ref": "cardano.json#/definitions/Slot" } - , "transactions": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Transaction" } - } - , "protocol": - { "type": "object" - , "additionalProperties": false - , "required": [ "version" ] - , "properties": - { "version": { "$ref": "cardano.json#/definitions/ProtocolVersion" } - } - } - , "issuer": - { "type": "object" - , "additionalProperties": false - , "required": [ "verificationKey", "vrfVerificationKey", "operationalCertificate", "leaderValue" ] - , "properties": - { "verificationKey": { "$ref": "cardano.json#/definitions/VerificationKey" } - , "vrfVerificationKey": { "$ref": "cardano.json#/definitions/VerificationKey" } - , "operationalCertificate": { "$ref": "cardano.json#/definitions/OperationalCertificate" } - , "leaderValue": { "$ref": "cardano.json#/definitions/CertifiedVrf" } - } - } - } - } - - , "BlockHeight": - { "title": "BlockHeight" - , "type": "integer" - , "description": "A block number, the i-th block to be minted is number i." - , "minimum": 0 - , "maximum": 18446744073709552999 - } - - , "BootstrapProtocolUpdate": - { "title": "BootstrapProtocolUpdate" - , "type": "object" - , "additionalProperties": false - , "required": [ "votes" ] - , "properties": - { "proposal": - { "type": "object" - , "additionalProperties": false - , "required": [ "version", "software", "parameters", "metadata" ] - , "properties": - { "version": - { "$ref": "cardano.json#/definitions/ProtocolVersion" - } - , "software": - { "$ref": "cardano.json#/definitions/SoftwareVersion" - } - , "parameters": - { "$ref": "cardano.json#/definitions/BootstrapProtocolParameters" - } - , "metadata": - { "type": "object" - , "additionalProperties": { "type": "string" } - } - } - } - , "votes": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/BootstrapVote" } - } - } - } - - , "BootstrapOperationalCertificate": - { "title": "BootstrapOperationalCertificate" - , "type": "object" - , "description": "A (Byron) delegation certificate." - , "additionalProperties": false - , "required": [ "issuer", "delegate" ] - , "properties": - { "issuer": - { "type": "object" - , "additionalProperties": false - , "required": [ "verificationKey" ] - , "properties": - { "verificationKey": { "$ref": "cardano.json#/definitions/VerificationKey" } - } - } - , "delegate": - { "type": "object" - , "additionalProperties": false - , "required": [ "verificationKey" ] - , "properties": - { "verificationKey": { "$ref": "cardano.json#/definitions/VerificationKey" } - } - } - } - } - - , "BootstrapProtocolId": - { "title": "BootstrapProtocolId" - , "type": "integer" - , "minimum": 0 - , "maximum": 4294967295 - , "examples": - [ 764824073 - ] - } - - , "BootstrapProtocolParameters": - { "title": "BootstrapProtocolParameters" - , "type": "object" - , "additionalProperties": false - , "properties": - { "heavyDelegationThreshold": { "$ref": "cardano.json#/definitions/Ratio" } - , "maxBlockBodySize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxBlockHeaderSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxUpdateProposalSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxTransactionSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "multiPartyComputationThreshold": { "$ref": "cardano.json#/definitions/Ratio" } - , "scriptVersion": { "$ref": "cardano.json#/definitions/UInt64" } - , "slotDuration": { "$ref": "cardano.json#/definitions/UInt64" } - , "unlockStakeEpoch": { "$ref": "cardano.json#/definitions/UInt64" } - , "updateProposalThreshold": { "$ref": "cardano.json#/definitions/Ratio" } - , "updateProposalTimeToLive": { "$ref": "cardano.json#/definitions/UInt64" } - , "updateVoteThreshold": { "$ref": "cardano.json#/definitions/Ratio" } - , "softForkInitThreshold": { "$ref": "cardano.json#/definitions/Ratio" } - , "softForkMinThreshold": { "$ref": "cardano.json#/definitions/Ratio" } - , "softForkDecrementThreshold": { "$ref": "cardano.json#/definitions/Ratio" } - , "minFeeCoefficient": { "$ref": "cardano.json#/definitions/UInt64" } - , "minFeeConstant": { "$ref": "cardano.json#/definitions/Lovelace" } - } - } - - , "BootstrapVote": - { "title": "BootstrapVote" - , "type": "object" - , "additionalProperties": false - , "required": [ "voter", "proposal" ] - , "properties": - { "voter": - { "type": "object" - , "additionalProperties": false - , "required": [ "verificationKey" ] - , "properties": - { "verificationKey": { "$ref": "cardano.json#/definitions/VerificationKey" } - } - } - , "proposal": - { "type": "object" - , "additionalProperties": false - , "required": [ "id" ] - , "properties": - { "id": { "$ref": "cardano.json#/definitions/Digest" } - } - } - } - } - - , "Bound": - { "title": "Bound" - , "type": "object" - , "description": "An era bound which captures the time, slot and epoch at which the era start. The time is relative to the start time of the network." - , "additionalProperties": false - , "required": ["time", "slot", "epoch"] - , "properties": - { "time": { "$ref": "cardano.json#/definitions/RelativeTime" } - , "slot": { "$ref": "cardano.json#/definitions/Slot" } - , "epoch": { "$ref": "cardano.json#/definitions/Epoch" } - } - } - - , "Certificate": - { "title": "Certificate" - , "oneOf": - [ { "type": "object" - , "description": "A stake delegation certificate, from a delegator to a stake pool." - , "title": "stakeDelegation" - , "additionalProperties": false - , "required": [ "type", "credential", "stakePool" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "stakeDelegation" ] - } - , "credential": - { "$ref": "cardano.json#/definitions/Digest" - } - , "stakePool": - { "type": "object" - , "additionalProperties": false - , "required": [ "id" ] - , "properties": - { "id": - { "$ref": "cardano.json#/definitions/StakePoolId" - } - } - } - } - } - , { "type": "object" - , "description": "A stake credential (key or script) registration certificate." - , "title": "stakeCredentialRegistration" - , "additionalProperties": false - , "required": [ "type", "credential" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "stakeCredentialRegistration" ] - } - , "credential": - { "$ref": "cardano.json#/definitions/Digest" - } - } - } - , { "type": "object" - , "description": "A stake key de-registration certificate." - , "title": "stakeCredentialDeregistration" - , "additionalProperties": false - , "required": [ "type", "credential" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "stakeCredentialDeregistration" ] - } - , "credential": - { "$ref": "cardano.json#/definitions/Digest" - } - } - } - , { "type": "object" - , "description": "A stake pool registration certificate." - , "title": "stakePoolRegistration" - , "additionalProperties": false - , "required": [ "type", "stakePool" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "stakePoolRegistration" ] - } - , "stakePool": - { "$ref": "cardano.json#/definitions/StakePool" - } - } - } - , { "type": "object" - , "description": "A stake pool retirement certificate." - , "additionalProperties": false - , "title": "stakePoolRetirement" - , "required": [ "type", "stakePool"] - , "properties": - { "type": - { "type": "string" - , "enum": [ "stakePoolRetirement" ] - } - , "stakePool": - { "type": "object" - , "additionalProperties": false - , "required": [ "id", "retirementEpoch" ] - , "properties": - { "retirementEpoch": { "$ref": "cardano.json#/definitions/Epoch" } - , "id": { "$ref": "cardano.json#/definitions/StakePoolId" } - } - } - } - } - , { "type": "object" - , "title": "genesisDelegation" - , "additionalProperties": false - , "required": [ "type", "delegate", "issuer" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "genesisDelegation" ] - } - , "delegate": - { "type": "object" - , "additionalProperties": false - , "required": [ "id" ] - , "properties": - { "id": - { "$ref": "cardano.json#/definitions/Digest" - } - } - } - , "issuer": - { "type": "object" - , "additionalProperties": false - , "required": [ "id", "vrfVerificationKeyHash" ] - , "properties": - { "id": - { "$ref": "cardano.json#/definitions/Digest" - } - , "vrfVerificationKeyHash": - { "$ref": "cardano.json#/definitions/Digest" - } - } - } - } - } - , { "title": "TreasuryTransfer" - , "oneOf": - [ { "type": "object" - , "title": "TreasuryTransfer" - , "description": "A transfer from or to the treasury / reserves authored by genesis delegates." - , "additionalProperties": false - , "required": [ "type", "source", "target", "value" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "treasuryTransfer" ] - } - , "source": - { "type": "string" - , "enum": [ "reserves", "treasury" ] - } - , "target": - { "type": "string" - , "enum": [ "reserves", "treasury" ] - } - , "value": - { "$ref": "cardano.json#/definitions/Lovelace" - } - } - } - , { "type": "object" - , "title": "TreasuryTransfer" - , "description": "A transfer from or to the treasury / reserves authored by genesis delegates." - , "additionalProperties": false - , "required": [ "type", "source", "target", "rewards" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "treasuryTransfer" ] - } - , "source": - { "type": "string" - , "enum": [ "reserves", "treasury" ] - } - , "target": - { "type": "string" - , "enum": [ "rewardAccounts" ] - } - , "rewards": - { "$ref": "cardano.json#/definitions/RewardTransfer" - } - } - } - ] - } - ] - } - - , "CertifiedVrf": - { "title": "CertifiedVrf" - , "type": "object" - , "additionalProperties": false - , "properties": - { "proof": { "$ref": "cardano.json#/definitions/VrfProof" } - , "output": { "$ref": "cardano.json#/definitions/VrfOutput" } - } - } - - , "ChainCode": - { "title": "ChainCode" - , "type": "string" - , "description": "An Ed25519-BIP32 chain-code for key deriviation." - , "contentEncoding": "base16" - } - - , "CostModels": - { "title": "CostModels" - , "type": "object" - , "additionalProperties": { "$ref": "cardano.json#/definitions/CostModel" } - , "propertyNames": { "$ref": "cardano.json#/definitions/Language" } - , "examples": - [ { "plutus:v1": - { "k": 14 - , "a": 123 - } - } - ] - } - - , "CostModel": - { "title": "CostModel" - , "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Int64" } - } - - , "Datum": - { "title": "Datum" - , "type": "string" - , "contentEncoding": "base16" - } - - , "Digest": - { "title": "Digest" - , "type": "string" - , "description": "A hash digest from an unspecified algorithm and length." - , "contentEncoding": "base16" - , "examples": - [ "90181c517a5beadc9c3fe64bf8" - ] - } - - , "Digest": - { "title": "Digest" - , "type": "string" - , "description": "A Blake2b 28-byte hash digest, encoded in base16." - , "contentEncoding": "base16" - , "minLength": 56 - , "maxLength": 56 - , "examples": - [ "90181c517a5beadc9c3fe64bf821d3e889a963fc717003ec248757d3" - ] - } - - , "Digest": - { "title": "Digest" - , "type": "string" - , "description": "A Blake2b 32-byte hash digest, encoded in base16." - , "contentEncoding": "base16" - , "minLength": 64 - , "maxLength": 64 - , "examples": - [ "c248757d390181c517a5beadc9c3fe64bf821d3e889a963fc717003ec248757d" - ] - } - - , "Epoch": - { "title": "Epoch" - , "type": "integer" - , "description": "An epoch number or length." - , "minimum": 0 - , "maximum": 18446744073709552000 - } - - , "Era": - { "title": "Era" - , "type": "string" - , "enum": [ "byron", "shelley", "allegra", "mary", "alonzo", "babbage", "conway" ] - } - - , "EraWithGenesis": - { "title": "EraWithGenesis" - , "type": "string" - , "enum": [ "byron", "shelley", "alonzo", "conway" ] - } - - , "EraParameters": - { "title": "EraParameters" - , "type": "object" - , "description": "Parameters that can vary across hard forks." - , "additionalProperties": false - , "required": [ "epochLength", "slotLength", "safeZone" ] - , "properties": - { "epochLength": { "$ref": "cardano.json#/definitions/Epoch" } - , "slotLength": { "$ref": "cardano.json#/definitions/SlotLength" } - , "safeZone": - { "oneOf": - [ { "$ref": "cardano.json#/definitions/SafeZone" } - , { "type": "null" } - ] - } - } - } - - , "EraSummary": - { "title": "EraSummary" - , "type": "object" - , "description": "Summary of the confirmed parts of the ledger." - , "additionalProperties": false - , "required": [ "start", "parameters" ] - , "properties": - { "start": { "$ref": "cardano.json#/definitions/Bound" } - , "end": { "$ref": "cardano.json#/definitions/Bound" } - , "parameters": { "$ref": "cardano.json#/definitions/EraParameters" } - } - } - - , "ExecutionUnits": - { "title": "ExecutionUnits" - , "type": "object" - , "additionalProperties": false - , "required": [ "memory", "cpu" ] - , "properties": - { "memory": { "$ref": "cardano.json#/definitions/UInt64" } - , "cpu": { "$ref": "cardano.json#/definitions/UInt64" } - } - } - - , "Genesis": - { "title": "Genesis" - , "type": "object" - , "description": "A Byron genesis configuration, with information used to bootstrap the era. Some parameters are also updatable across the era." - , "additionalProperties": false - , "required": - [ "era" - , "genesisKeyHashes" - , "genesisDelegations" - , "startTime" - , "initialFunds" - , "initialVouchers" - , "securityParameter" - , "networkMagic" - , "protocolParameters" - ] - , "properties": - { "era": - { "type": "string" - , "enum": [ "byron" ] - } - , "genesisKeyHashes": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Digest" } - } - , "genesisDelegations": - { "type": "object" - , "propertyNames": { "$ref": "cardano.json#/definitions/Digest" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/BootstrapOperationalCertificate" } - } - , "startTime": { "$ref": "cardano.json#/definitions/UtcTime" } - , "initialFunds": - { "type": "object" - , "propertyNames": { "$ref": "cardano.json#/definitions/Address" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/Lovelace" } - } - , "initialVouchers": - { "type": "object" - , "propertyNames": { "$ref": "cardano.json#/definitions/VerificationKey" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/Lovelace" } - } - , "securityParameter": { "$ref": "cardano.json#/definitions/UInt64" } - , "networkMagic": { "$ref": "cardano.json#/definitions/NetworkMagic" } - , "protocolParameters": { "$ref": "cardano.json#/definitions/ProtocolParameters" } - } - } - - , "Genesis": - { "title": "Genesis" - , "type": "object" - , "description": "A Shelley genesis configuration, with information used to bootstrap the era. Some parameters are also updatable across the era." - , "additionalProperties": false - , "required": - [ "era" - , "startTime" - , "networkMagic" - , "network" - , "activeSlotsCoefficient" - , "securityParameter" - , "epochLength" - , "slotsPerKesPeriod" - , "maxKesEvolutions" - , "slotLength" - , "updateQuorum" - , "maxLovelaceSupply" - , "initialParameters" - , "initialDelegates" - , "initialFunds" - , "initialStakePools" - ] - , "properties": - { "era": - { "type": "string" - , "enum": [ "shelley" ] - } - , "startTime": { "$ref": "cardano.json#/definitions/UtcTime" } - , "networkMagic": { "$ref": "cardano.json#/definitions/NetworkMagic" } - , "network": { "$ref": "cardano.json#/definitions/Network" } - , "activeSlotsCoefficient": { "$ref": "cardano.json#/definitions/Ratio" } - , "securityParameter": { "$ref": "cardano.json#/definitions/UInt64" } - , "epochLength": { "$ref": "cardano.json#/definitions/Epoch" } - , "slotsPerKesPeriod": { "$ref": "cardano.json#/definitions/UInt64" } - , "maxKesEvolutions": { "$ref": "cardano.json#/definitions/UInt64" } - , "slotLength": { "$ref": "cardano.json#/definitions/SlotLength" } - , "updateQuorum": { "$ref": "cardano.json#/definitions/UInt64" } - , "maxLovelaceSupply": { "$ref": "cardano.json#/definitions/UInt64" } - , "initialParameters": { "$ref": "cardano.json#/definitions/ProtocolParameters" } - , "initialDelegates": { "$ref": "cardano.json#/definitions/InitialDelegates" } - , "initialFunds": - { "type": "object" - , "title": "InitialFunds" - , "propertyNames": { "$ref": "cardano.json#/definitions/Address" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/Lovelace" } - } - , "initialStakePools": { "$ref": "cardano.json#/definitions/GenesisStakePools" } - } - } - - , "Genesis": - { "title": "Genesis" - , "type": "object" - , "description": "An Alonzo genesis configuration, with information used to bootstrap the era. Some parameters are also updatable across the era." - , "additionalProperties": false - , "required": - [ "era" - , "initialParameters" - ] - , "properties": - { "era": - { "type": "string" - , "enum": [ "alonzo" ] - } - , "initialParameters": - { "type": "object" - , "additionalProperties": false - , "required": - [ "minUtxoDepositCoefficient" - , "collateralPercentage" - , "plutusCostModels" - , "maxCollateralInputs" - , "maxExecutionUnitsPerBlock" - , "maxExecutionUnitsPerTransaction" - , "maxValueSize" - , "scriptExecutionPrices" - ] - , "properties": - { "minUtxoDepositCoefficient": { "$ref": "cardano.json#/definitions/UInt64" } - , "collateralPercentage": { "$ref": "cardano.json#/definitions/UInt64" } - , "plutusCostModels": { "$ref": "cardano.json#/definitions/CostModels" } - , "maxCollateralInputs": { "$ref": "cardano.json#/definitions/UInt64" } - , "maxExecutionUnitsPerBlock": { "$ref": "cardano.json#/definitions/ExecutionUnits" } - , "maxExecutionUnitsPerTransaction": { "$ref": "cardano.json#/definitions/ExecutionUnits" } - , "maxValueSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "scriptExecutionPrices": { "$ref": "cardano.json#/definitions/ScriptExecutionPrices" } - } - } - } - } - - , "Genesis": - { "title": "Genesis" - , "type": "object" - , "description": "An Conway genesis configuration, with information used to bootstrap the era. Some parameters are also updatable across the era." - , "additionalProperties": false - , "required": - [ "era" - , "initialDelegates" - ] - , "properties": - { "era": - { "type": "string" - , "enum": [ "conway" ] - } - , "initialDelegates": - { "$ref": "cardano.json#/definitions/InitialDelegates" - } - } - } - - , "GenesisDelegate": - { "title": "GenesisDelegate" - , "type": "object" - , "description": "A Genesis delegate, in charge of Cardano's governance." - , "additionalProperties": false - , "required": - [ "vrfVerificationKeyHash" - , "id" - ] - , "properties": - { "id": { "$ref": "cardano.json#/definitions/Digest" } - , "vrfVerificationKeyHash": { "$ref": "cardano.json#/definitions/Digest" } - } - } - - , "GenesisStakePools": - { "title": "GenesisStakePools" - , "type": "object" - , "description": "A Genesis stake pools configuration; primarily used for bootstrapping test networks." - , "additionalProperties": false - , "required": - [ "stakePools" - , "delegators" - ] - , "properties": - { "stakePools": - { "type": "object" - , "propertyNames": { "$ref": "cardano.json#/definitions/StakePoolId" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/StakePool" } - } - , "delegators": - { "type": "object" - , "propertyNames": { "$ref": "cardano.json#/definitions/Digest" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/StakePoolId" } - } - } - } - - , "GovernanceAction": - { "oneOf": - [ { "title": "GovernanceAction" - , "type": "object" - , "additionalProperties": false - , "required": [ "type", "parameters" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "protocolParametersUpdate" ] - } - , "parameters": - { "$ref": "cardano.json#/definitions/ProposedProtocolParameters" - } - } - } - ] - } - - , "GovernanceActionReference": - { "title": "GovernanceActionReference" - , "type": "object" - , "additionalProperties": false - , "required": [ "transaction", "governanceAction" ] - , "properties": - { "transaction": - { "type": "object" - , "additionalProperties": false - , "required": [ "id" ] - , "properties": - { "id": - { "$ref": "cardano.json#/definitions/TransactionId" - } - } - } - , "governanceAction": - { "$ref": "cardano.json#/definitions/Index" - } - } - } - - , "ExtendedVerificationKey": - { "title": "ExtendedVerificationKey" - , "type": "string" - , "description": "An Ed25519-BIP32 Byron genesis delegate verification key with chain-code." - , "contentEncoding": "base16" - , "minLength": 128 - , "maxLength": 128 - } - - , "Index": - { "type": "object" - , "additionalProperties": false - , "required": [ "index" ] - , "properties": - { "index": - { "$ref": "cardano.json#/definitions/UInt32" - } - } - } - - , "InitialDelegates": - { "title": "InitialDelegates" - , "type": "array" - , "items": - { "type": "object" - , "additionalProperties": false - , "required": [ "issuer", "delegate" ] - , "properties": - { "issuer": - { "type": "object" - , "additionalProperties": false - , "required": [ "id" ] - , "properties": - { "id": { "$ref": "cardano.json#/definitions/Digest" } - } - } - , "delegate": - { "$ref": "cardano.json#/definitions/GenesisDelegate" - } - } - } - } - - , "Int64": - { "title": "Int64" - , "type": "integer" - , "minimum": -9223372036854775808 - , "maximum": 9223372036854775807 - } - - , "InputSource": - { "type": "string" - , "enum": - [ "inputs" - , "collaterals" - ] - } - - , "Language": - { "title": "Language" - , "type": "string" - , "enum": [ "plutus:v1", "plutus:v2", "plutus:v3" ] - } - - , "Lovelace": - { "title": "Lovelace" - , "additionalProperties": false - , "required": [ "lovelace" ] - , "properties": - { "lovelace": - { "type": "integer" - , "description": "A number of lovelace, possibly large when summed up." - } - } - } - - , "LovelaceDelta": - { "title": "LovelaceDelta" - , "type": "object" - , "additionalProperties": false - , "required": [ "lovelace" ] - , "properties": - { "lovelace": - { "type": "integer" - , "description": "An amount, possibly negative, in Lovelace (1e6 Lovelace = 1 Ada)." - , "minimum": -9223372036854775808 - , "maximum": 9223372036854775807 - } - } - } - - , "KesVerificationKey": - { "title": "KesVerificationKey" - , "type": "string" - , "contentEncoding": "base16" - } - - , "Metadata": - { "title": "Metadata" - , "type": "object" - , "additionalProperties": false - , "required": [ "hash", "labels" ] - , "properties": - { "hash": { "$ref": "cardano.json#/definitions/Digest" } - , "labels": { "$ref": "cardano.json#/definitions/MetadataLabels" } - } - } - - , "MetadataLabels": - { "title": "MetadataLabels" - , "type": "object" - , "propertyNames": { "pattern": "^-?[0-9]+$" } - , "additionalProperties": - { "type": "object" - , "description": "An associated metadatum, as a CBOR bytestring or a JSON object if possible. Some binary representations cannot be represented in plain JSON and the 'json' field is therefore omitted." - , "required": [ "cbor" ] - , "additionalProperties": false - , "properties": - { "cbor": - { "type": "string" - , "contentEncoding": "base16" - , "pattern": "^[0-9a-f]*$" - } - , "json": - { "$ref": "cardano.json#/definitions/Metadatum" - } - } - } - } - - , "Metadatum": - { "title": "Metadatum" - , "oneOf": - [ { "title": "Integer", "type": "integer" } - , { "title": "String", "type": "string" } - , { "title": "Array", "type": "array", "items": { "$ref": "cardano.json#/definitions/Metadatum" } } - , { "title": "Object", "type": "object", "additionalProperties": { "$ref": "cardano.json#/definitions/Metadatum" } } - ] - } - - , "Network": - { "title": "Network" - , "type": "string" - , "description": "A network target, as defined since the Shelley era." - , "enum": [ "mainnet", "testnet" ] - } - - , "NetworkMagic": - { "title": "NetworkMagic" - , "type": "integer" - , "description": "A magic number for telling networks apart. (e.g. 764824073)" - , "minimum": 0 - , "maximum": 4294967296 - , "examples": - [ 764824073 - ] - } - - , "Nonce": - { "title": "Nonce" - , "oneOf": - [ { "type": "string" - , "enum": ["neutral"] - , "title": "neutral" - } - , { "$ref": "cardano.json#/definitions/Digest" } - ] - } - - , "Null": - { "type": "null" - } - - , "NumberOfBytes": - { "type": "object" - , "additionalProperties": false - , "required": [ "bytes" ] - , "properties": - { "bytes": { "$ref": "cardano.json#/definitions/Int64" } - } - } - - , "OperationalCertificate": - { "title": "OperationalCertificate" - , "type": "object" - , "description": "Certificate identifying a stake pool operator." - , "additionalProperties": false - , "required": [ "count", "kes" ] - , "properties": - { "count": { "$ref": "cardano.json#/definitions/UInt64" } - , "kes": - { "type": "object" - , "additionalProperties": false - , "required": [ "period", "verificationKey" ] - , "properties": - { "period": { "$ref": "cardano.json#/definitions/UInt64" } - , "verificationKey": { "$ref": "cardano.json#/definitions/KesVerificationKey" } - } - } - } - } - - , "Origin": - { "title": "Origin" - , "type": "string" - , "description": "The origin of the blockchain. This point is special in the sense that it doesn't point to any existing slots, but is preceding any existing other point." - , "enum": [ "origin" ] - } - - , "PolicyId": - { "title": "PolicyId" - , "$ref": "cardano.json#/definitions/Digest" - } - - , "StakePool": - { "title": "StakePool" - , "type": "object" - , "additionalProperties": false - , "required": - [ "id" - , "cost" - , "margin" - , "owners" - , "pledge" - , "relays" - , "rewardAccount" - , "vrfVerificationKeyHash" - ] - , "properties": - { "id": - { "$ref": "cardano.json#/definitions/StakePoolId" - } - , "vrfVerificationKeyHash": - { "$ref": "cardano.json#/definitions/Digest" - } - , "owners": - { "type": "array" - , "items": - { "$ref": "cardano.json#/definitions/Digest" - } - } - , "cost": - { "$ref": "cardano.json#/definitions/Lovelace" - } - , "margin": - { "$ref": "cardano.json#/definitions/Ratio" - } - , "pledge": - { "$ref": "cardano.json#/definitions/Lovelace" - } - , "rewardAccount": - { "$ref": "cardano.json#/definitions/RewardAccount" - } - , "metadata": - { "type": "object" - , "title": "poolMetadata" - , "additionalProperties": false - , "required": ["hash","url"] - , "properties": - { "hash": { "$ref": "cardano.json#/definitions/Digest" } - , "url": - { "type": "string" - , "format": "uri" - } - } - } - , "relays": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Relay" } - } - } - } - - , "StakePoolId": - { "title": "StakePoolId" - , "type": "string" - , "description": "A Blake2b 32-byte hash digest of a pool's verification key." - , "contentEncoding": "bech32" - , "pattern": "^pool1[0-9a-z]*$" - , "examples": - [ "pool1qqqqpanw9zc0rzh0yp247nzf2s35uvnsm7aaesfl2nnejaev0uc" - , "pool1qqqqqdk4zhsjuxxd8jyvwncf5eucfskz0xjjj64fdmlgj735lr9" - ] - } - - , "ProposedProtocolParameters": - { "title": "ProposedProtocolParameters" - , "type": "object" - , "additionalProperties": false - , "properties": - { "minFeeCoefficient": { "$ref": "cardano.json#/definitions/UInt64" } - , "minFeeConstant": { "$ref": "cardano.json#/definitions/Lovelace" } - , "minUtxoDepositCoefficient": { "$ref": "cardano.json#/definitions/UInt64" } - , "minUtxoDepositConstant": { "$ref": "cardano.json#/definitions/Lovelace" } - , "maxBlockBodySize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxBlockHeaderSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxTransactionSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxValueSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "extraEntropy": { "$ref": "cardano.json#/definitions/Nonce" } - , "stakeCredentialDeposit": { "$ref": "cardano.json#/definitions/Lovelace" } - , "stakePoolDeposit": { "$ref": "cardano.json#/definitions/Lovelace" } - , "stakePoolRetirementEpochBound": { "$ref": "cardano.json#/definitions/UInt64" } - , "stakePoolPledgeInfluence": { "$ref": "cardano.json#/definitions/Ratio" } - , "minStakePoolCost": { "$ref": "cardano.json#/definitions/Lovelace" } - , "desiredNumberOfStakePools": { "$ref": "cardano.json#/definitions/UInt64" } - , "federatedBlockProductionRatio": { "$ref": "cardano.json#/definitions/Ratio" } - , "monetaryExpansion": { "$ref": "cardano.json#/definitions/Ratio" } - , "treasuryExpansion": { "$ref": "cardano.json#/definitions/Ratio" } - , "collateralPercentage": { "$ref": "cardano.json#/definitions/UInt64" } - , "maxCollateralInputs": { "$ref": "cardano.json#/definitions/UInt64" } - , "plutusCostModels": { "$ref": "cardano.json#/definitions/CostModels" } - , "scriptExecutionPrices": { "$ref": "cardano.json#/definitions/ScriptExecutionPrices" } - , "maxExecutionUnitsPerTransaction": { "$ref": "cardano.json#/definitions/ExecutionUnits" } - , "maxExecutionUnitsPerBlock": { "$ref": "cardano.json#/definitions/ExecutionUnits" } - , "version": { "$ref": "cardano.json#/definitions/ProtocolVersion" } - } - } - - , "ProtocolParameters": - { "title": "ProtocolParameters" - , "type": "object" - , "additionalProperties": false - , "required": - [ "minFeeCoefficient" - , "minFeeConstant" - , "minUtxoDepositCoefficient" - , "minUtxoDepositConstant" - , "maxBlockBodySize" - , "maxBlockHeaderSize" - , "stakeCredentialDeposit" - , "stakePoolDeposit" - , "stakePoolRetirementEpochBound" - , "stakePoolPledgeInfluence" - , "minStakePoolCost" - , "monetaryExpansion" - , "treasuryExpansion" - , "desiredNumberOfStakePools" - , "version" - ] - , "properties": - { "minFeeCoefficient": { "$ref": "cardano.json#/definitions/UInt64" } - , "minFeeConstant": { "$ref": "cardano.json#/definitions/Lovelace" } - , "minUtxoDepositCoefficient": { "$ref": "cardano.json#/definitions/UInt64" } - , "minUtxoDepositConstant": { "$ref": "cardano.json#/definitions/Lovelace" } - , "maxBlockBodySize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxBlockHeaderSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxTransactionSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "maxValueSize": { "$ref": "cardano.json#/definitions/NumberOfBytes" } - , "extraEntropy": { "$ref": "cardano.json#/definitions/Nonce" } - , "stakeCredentialDeposit": { "$ref": "cardano.json#/definitions/Lovelace" } - , "stakePoolDeposit": { "$ref": "cardano.json#/definitions/Lovelace" } - , "stakePoolRetirementEpochBound": { "$ref": "cardano.json#/definitions/UInt64" } - , "stakePoolPledgeInfluence": { "$ref": "cardano.json#/definitions/Ratio" } - , "minStakePoolCost": { "$ref": "cardano.json#/definitions/Lovelace" } - , "desiredNumberOfStakePools": { "$ref": "cardano.json#/definitions/UInt64" } - , "federatedBlockProductionRatio": { "$ref": "cardano.json#/definitions/Ratio" } - , "monetaryExpansion": { "$ref": "cardano.json#/definitions/Ratio" } - , "treasuryExpansion": { "$ref": "cardano.json#/definitions/Ratio" } - , "collateralPercentage": { "$ref": "cardano.json#/definitions/UInt64" } - , "maxCollateralInputs": { "$ref": "cardano.json#/definitions/UInt64" } - , "plutusCostModels": { "$ref": "cardano.json#/definitions/CostModels" } - , "scriptExecutionPrices": { "$ref": "cardano.json#/definitions/ScriptExecutionPrices" } - , "maxExecutionUnitsPerTransaction": { "$ref": "cardano.json#/definitions/ExecutionUnits" } - , "maxExecutionUnitsPerBlock": { "$ref": "cardano.json#/definitions/ExecutionUnits" } - , "version": { "$ref": "cardano.json#/definitions/ProtocolVersion" } - } - } - - , "ProtocolVersion": - { "title": "ProtocolVersion" - , "type": "object" - , "additionalProperties": false - , "required": [ "major", "minor" ] - , "properties": - { "major": { "$ref": "cardano.json#/definitions/UInt32" } - , "minor": { "$ref": "cardano.json#/definitions/UInt32" } - , "patch": { "$ref": "cardano.json#/definitions/UInt32" } - } - } - - , "Ratio": - { "title": "Ratio" - , "type": "string" - , "description": "A ratio of two integers, to express exact fractions." - , "pattern": "^-?[0-9]+/[0-9]+$" - , "examples": - [ "2/3" - , "7/8" - ] - } - - , "Redeemer": - { "title": "Redeemer" - , "type": "object" - , "examples": - [ { "executionUnits": - { "memory": 2 - , "cpu": 2 - } - , "redeemer": "ggRCqSQ=" - } - ] - , "additionalProperties": false - , "required": [ "redeemer", "executionUnits" ] - , "properties": - { "redeemer": { "$ref": "cardano.json#/definitions/RedeemerData" } - , "executionUnits": { "$ref": "cardano.json#/definitions/ExecutionUnits" } - } - } - - , "RedeemerData": - { "title": "RedeemerData" - , "type": "string" - , "contentEncoding": "base16" - , "description": "Plutus data, CBOR-serialised." - } - - , "RedeemerPointer": - { "title": "RedeemerPointer" - , "type": "string" - , "pattern": "^(spend|mint|certificate|withdrawal):[0-9]+$" - } - - , "RelativeTime": - { "title": "RelativeTime" - , "type": "number" - , "description": "A time in seconds relative to another one (typically, system start or era start)." - } - - , "Relay": - { "title": "Relay" - , "oneOf": - [ { "type": "object" - , "title": "by address" - , "additionalProperties": false - , "required": [ "type" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "ipAddress" ] - } - , "ipv4": - { "type": "string" - } - , "ipv6": - { "type": "string" - } - , "port": - { "type": "integer" - , "minimum": 0 - , "maximum": 65535 - } - } - } - , { "type": "object" - , "title": "by name" - , "additionalProperties": false - , "required": [ "type", "hostname" ] - , "properties": - { "type": - { "type": "string" - , "enum": [ "hostname" ] - } - , "hostname": - { "type": "string" - } - , "port": - { "type": "integer" - , "minimum": 0 - , "maximum": 65535 - } - } - } - ] - } - - , "RewardAccount": - { "title": "RewardAccount" - , "type": "string" - , "description": "A reward account, also known as 'stake address'." - , "contentEncoding": "bech32" - , "pattern": "^stake(_test)?1[0-9a-z]+$" - , "examples": - [ "stake1ux7pt9adw8z46tgqn2f8fvurrhk325gcm4mf75mkmmxpx6gae9mzv" - ] - } - - , "RewardTransfer": - { "title": "RewardTransfer" - , "type": "object" - , "additionalProperties": { "$ref": "cardano.json#/definitions/LovelaceDelta" } - , "propertyNames": { "pattern": "[0-9a-f]{56}$" } - , "examples": - [ { "6d06fe0a5a8cb6d2bcc352581dea626bb5b2f66edf85678b2f2fa7b5": 123456789 - } - ] - } - - , "SafeZone": - { "title": "SafeZone" - , "type": "integer" - , "description": "Number of slots from the tip of the ledger in which it is guaranteed that no hard fork can take place. This should be (at least) the number of slots in which we are guaranteed to have k blocks." - , "minimum": 0 - , "maximum": 18446744073709552999 - } - - , "Script": - { "title": "Script" - , "oneOf": - [ { "type": "object" - , "title": "Native" - , "additionalProperties": false - , "required": [ "language", "cbor", "json" ] - , "properties": - { "language": - { "type": "string" - , "enum": [ "native" ] - } - , "json": - { "$ref": "cardano.json#/definitions/Script" - } - , "cbor": - { "type": "string" - , "contentEncoding": "base16" - } - } - } - , { "type": "object" - , "title": "Plutus" - , "additionalProperties": false - , "required": [ "language", "cbor" ] - , "properties": - { "language": - { "type": "string" - , "enum": [ "plutus:v1", "plutus:v2", "plutus:v3" ] - } - , "cbor": - { "type": "string" - , "contentEncoding": "base16" - } - } - } - ] - } - - , "Script": - { "title": "Script" - , "description": "A phase-1 monetary script. Timelocks constraints are only supported since Allegra." - , "examples": - [ { "clause": "signature", "from": "3c07030e36bfff7cd2f004356ef320f3fe3c07030e7cd2f004356437" } - , { "clause": "all" - , "from": - [ { "clause": "signature", "from": "ec09e5293d384637cd2f004356ef320f3fe3c07030e36bfffe67e2e2" } - , { "clause": "signature", "from": "3c07030e36bfff7cd2f004356ef320f3fe3c07030e7cd2f004356437" } - ] - } - , { "clause": "some" - , "atLeast": 2 - , "from": - [ { "clause": "signature", "from": "ec09e5293d384637cd2f004356ef320f3fe3c07030e36bfffe67e2e2" } - , { "clause": "signature", "from": "3c07030e36bfff7cd2f004356ef320f3fe3c07030e7cd2f004356437" } - , { "clause": "after", "slot": 42 } - ] - } - ] - , "oneOf": - [ { "type": "object" - , "title": "Clause" - , "additionalProperties": false - , "required": [ "clause", "from" ] - , "properties": - { "clause": - { "type": "string" - , "enum": [ "signature" ] - } - , "from": - { "$ref": "cardano.json#/definitions/Digest" - } - } - } - , { "type": "object" - , "title": "Clause" - , "additionalProperties": false - , "required": [ "clause", "from" ] - , "properties": - { "clause": - { "type": "string" - , "enum": [ "any" ] - } - , "from": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Script" } - } - } - } - - , { "type": "object" - , "title": "Clause" - , "additionalProperties": false - , "required": [ "clause", "from" ] - , "properties": - { "clause": - { "type": "string" - , "enum": [ "all" ] - } - , "from": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Script" } - } - } - } - , { "type": "object" - , "title": "Clause" - , "additionalProperties": false - , "required": [ "clause", "from", "atLeast" ] - , "properties": - { "clause": - { "type": "string" - , "enum": [ "some" ] - } - , "atLeast": - { "type": "integer" - } - , "from": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Script" } - } - } - } - , { "type": "object" - , "title": "Clause" - , "additionalProperties": false - , "required": [ "clause", "slot" ] - , "properties": - { "clause": - { "type": "string" - , "enum": [ "before" ] - } - , "slot": - { "$ref": "cardano.json#/definitions/Slot" - } - } - } - , { "type": "object" - , "title": "Clause" - , "additionalProperties": false - , "required": [ "clause", "slot" ] - , "properties": - { "clause": - { "type": "string" - , "enum": [ "after" ] - } - , "slot": - { "$ref": "cardano.json#/definitions/Slot" - } - } - } - ] - } - - , "ScriptExecutionPrices": - { "title": "ScriptExecutionPrices" - , "type": "object" - , "additionalProperties": false - , "required": [ "memory", "cpu" ] - , "properties": - { "memory": { "$ref": "cardano.json#/definitions/Ratio" } - , "cpu": { "$ref": "cardano.json#/definitions/Ratio" } - } - } - - , "ScriptPurpose": - { "title": "ScriptPurpose" - , "oneOf": - [ { "title": "spend" - , "type": "object" - , "additionalProperties": false - , "required": [ "purpose", "outputReference" ] - , "properties": - { "purpose": - { "type": "string" - , "enum": [ "spend" ] - } - , "outputReference": { "$ref": "cardano.json#/definitions/TransactionOutputReference" } - } - } - , { "title": "mint" - , "type": "object" - , "additionalProperties": false - , "required": [ "purpose", "policy" ] - , "properties": - { "purpose": - { "type": "string" - , "enum": [ "mint" ] - } - , "policy": { "$ref": "cardano.json#/definitions/PolicyId" } - } - } - , { "title": "publish" - , "type": "object" - , "additionalProperties": false - , "required": [ "purpose", "certificate" ] - , "properties": - { "purpose": - { "type": "string" - , "enum": [ "publish" ] - } - , "certificate": { "$ref": "cardano.json#/definitions/Certificate" } - } - } - , { "title": "withdraw" - , "type": "object" - , "additionalProperties": false - , "required": [ "purpose", "rewardAccount" ] - , "properties": - { "purpose": - { "type": "string" - , "enum": [ "withdraw" ] - } - , "rewardAccount": { "$ref": "cardano.json#/definitions/RewardAccount" } - } - } - ] - } - - , "Signature": - { "title": "Signature" - , "type": "string" - , "description": "An EdDSA signature." - , "contentEncoding": "base16" - , "minLength": 128 - , "maxLength": 128 - } - - , "Signatory": - { "title": "Signatory" - , "type": "object" - , "additionalProperties": false - , "required": [ "signature", "key" ] - , "properties": - { "key": { "$ref": "cardano.json#/definitions/VerificationKey" } - , "signature": { "$ref": "cardano.json#/definitions/Signature" } - , "chainCode": { "$ref": "cardano.json#/definitions/ChainCode" } - , "addressAttributes": { "$ref": "cardano.json#/definitions/AddressAttributes" } - } - , "examples": - [ { "signature": "deeb8f82f2af5836ebbc1b450b6dbf0b03c93afe5696f10d49e8a8304ebfac01deeb8f82f2af5836ebbc1b4ffffffff" - , "key": "deeb8f82f2af5836ebbc1b450b6dbf0b03c93afe5696f10d49e8a8304ebfac01" - , "addressAttributes": "cA==" - , "chainCode": "b6dbf0b03c93afe5696f10d49e8a8304ebfac01deeb8f82f2af5836ebbc1b450" - } - , { "signature": "deeb8f82f2af5836ebbc1b450b6dbf0b03c93afe5696f10d49e8a8304ebfac01deeb8f82f2af5836ebbc1b4ffffffff" - , "key": "0c02af01eaacc939b3d0d817f4eb57d323ea5686cb1fecb8de821df1296b84a7" - } - ] - } - - , "Slot": - { "title": "Slot" - , "description": "An absolute slot number." - , "type": "integer" - , "minimum": 0 - , "maximum": 18446744073709552000 - } - - , "SlotLength": - { "title": "SlotLength" - , "description": "A slot length, in seconds, possibly with decimals." - , "type": "object" - , "additionalProperties": false - , "required": [ "seconds" ] - , "properties": - { "seconds": - { "type": "number" - } - } - } - - , "SoftwareVersion": - { "title": "SoftwareVersion" - , "type": "object" - , "additionalProperties": false - , "required": [ "appName", "number" ] - , "properties": - { "appName": { "type": "string" } - , "number": { "$ref": "cardano.json#/definitions/UInt32" } - } - } - - , "StakeAddress": - { "title": "StakeAddress" - , "type": "string" - , "description": "A stake address (a.k.a reward account)" - , "contentEncoding": "bech32" - , "pattern": "^(stake|stake_test)1[0-9a-z]*$" - , "examples": - [ "stake179kzq4qulejydh045yzxwk4ksx780khkl4gdve9kzwd9vjcek9u8h" - ] - } - - , "Tip": - { "title": "tip" - , "type": "object" - , "additionalProperties": false - , "required": [ "slot", "id", "blockNo" ] - , "properties": - { "slot": { "$ref": "cardano.json#/definitions/Slot" } - , "id": { "$ref": "cardano.json#/definitions/Digest" } - , "blockNo": { "$ref": "cardano.json#/definitions/BlockHeight" } - } - } - - , "Transaction": - { "title": "Transaction" - , "type": "object" - , "additionalProperties": false - , "required": [ "id", "inputSource", "inputs", "outputs", "signatories", "cbor" ] - , "properties": - { "id": - { "$ref": "cardano.json#/definitions/Digest" - } - , "inputSource": - { "$ref": "cardano.json#/definitions/InputSource" - } - , "inputs": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/TransactionOutputReference" } - } - , "references": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/TransactionOutputReference" } - } - , "collaterals": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/TransactionOutputReference" } - } - , "totalCollateral": - { "$ref": "cardano.json#/definitions/Lovelace" - } - , "collateralReturn": - { "$ref": "cardano.json#/definitions/TransactionOutput" - } - , "outputs": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/TransactionOutput" } - } - , "certificates": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Certificate" } - } - , "withdrawals": - { "$ref": "cardano.json#/definitions/Withdrawals" - } - , "fee": - { "$ref": "cardano.json#/definitions/Lovelace" - } - , "validityInterval": - { "$ref": "cardano.json#/definitions/ValidityInterval" - } - , "mint": - { "$ref": "cardano.json#/definitions/Assets" - } - , "network": - { "$ref": "cardano.json#/definitions/Network" - } - , "scriptIntegrityHash": - { "$ref": "cardano.json#/definitions/Digest" - } - , "requiredExtraSignatories": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Digest" } - } - , "requiredExtraScripts": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Digest" } - } - , "governanceActions": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/GovernanceAction" } - } - , "metadata": - { "$ref": "cardano.json#/definitions/Metadata" - } - , "signatories": - { "type": "array" - , "items": { "$ref": "cardano.json#/definitions/Signatory" } - } - , "scripts": - { "type": "object" - , "propertyNames": { "contentEncoding": "base16", "pattern": "^[0-9a-f]+$" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/Script" } - } - , "datums": - { "type": "object" - , "propertyNames": { "contentEncoding": "base16", "pattern": "^[0-9a-f]+$" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/Datum" } - } - , "redeemers": - { "type": "object" - , "propertyNames": { "$ref": "cardano.json#/definitions/RedeemerPointer" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/Redeemer" } - } - , "cbor": - { "type": "string" - , "contentEncoding": "base16" - , "description": "The raw serialized (CBOR) transaction, as found on-chain." - } - } - } - - , "TransactionId": - { "title": "TransactionId" - , "description": "A Blake2b 32-byte hash digest of a transaction body" - , "type": "string" - , "contentEncoding": "base16" - , "minLength": 64 - , "maxLength": 64 - } - - , "TransactionOutput": - { "title": "TransactionOutput" - , "description": "A transaction output. Since Mary, 'value' always return a multi-asset value. Since Alonzo, 'datumHash' is always present (albeit sometimes 'null'). Since Babbage, 'datum' & 'script' are always present (albeit sometimes 'null')." - , "type": "object" - , "examples": - [ { "address": "addr_test1qz66ue36465w2qq40005h2hadad6pnjht8mu6sgplsfj74qdjnshguewlx4ww0eet26y2pal4xpav5prcydf28cvxtjqx46x7f" - , "value": - { "coins": 2 - , "assets": - { "3542acb3a64d80c29302260d62c3b87a742ad14abf855ebc6733081e": 42 - , "b5ae663aaea8e500157bdf4baafd6f5ba0ce5759f7cd4101fc132f54.706174617465": 1337 - } - } - , "datumHash": null - , "datum": null - , "script": null - } - ] - , "additionalProperties": false - , "required": [ "address", "value" ] - , "properties": - { "address": { "$ref": "cardano.json#/definitions/Address" } - , "value": { "$ref": "cardano.json#/definitions/Value" } - , "datumHash": { "$ref": "cardano.json#/definitions/Digest" } - , "datum": { "$ref": "cardano.json#/definitions/Datum" } - , "script": { "$ref": "cardano.json#/definitions/Script" } - } - } - - , "TransactionOutputReference": - { "title": "TransactionOutputReference" - , "type": "object" - , "additionalProperties": false - , "required": [ "transaction", "output" ] - , "properties": - { "transaction": - { "type": "object" - , "additionalProperties": false - , "required": [ "id" ] - , "properties": - { "id": - { "$ref": "cardano.json#/definitions/TransactionId" - } - } - } - , "output": - { "$ref": "cardano.json#/definitions/Index" - } - } - } - - , "UInt8": - { "title": "UInt8" - , "type": "integer" - , "minimum": 0 - , "maximum": 255 - } - - , "UInt32": - { "title": "UInt32" - , "type": "integer" - , "minimum": 0 - , "maximum": 4294967295 - } - - , "UInt64": - { "title": "UInt64" - , "type": "integer" - , "minimum": 0 - , "maximum": 18446744073709552999 - } - - , "UtcTime": - { "title": "UtcTime" - , "type": "string" - , "format": "date-time" - , "pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.?[0-9]*Z?" - } - - , "Utxo": - { "title": "Utxo" - , "type": "array" - , "additionalItems": false - , "items": - { "type": "array" - , "additionalItems": false - , "minItems": 2 - , "maxItems": 2 - , "items": - [ { "$ref": "cardano.json#/definitions/TransactionOutputReference" } - , { "$ref": "cardano.json#/definitions/TransactionOutput" } - ] - } - } - - , "ValidityInterval": - { "title": "ValidityInterval" - , "type": "object" - , "additionalProperties": false - , "properties": - { "invalidBefore": { "$ref": "cardano.json#/definitions/Slot" } - , "invalidAfter": { "$ref": "cardano.json#/definitions/Slot" } - } - } - - , "Value": - { "title": "Value" - , "type": "object" - , "propertyNames": { "pattern": "^[0-9a-z]{56}$" } - , "additionalProperties": - { "type": "object" - , "propertyNames": { "pattern": "^[0-9a-z]{0,64}$" } - , "additionalProperties": { "$ref": "cardano.json#/definitions/AssetQuantity" } - } - , "required": [ "ada" ] - , "properties": - { "ada": - { "type": "object" - , "additionalProperties": false - , "required": [ "lovelace" ] - , "properties": - { "lovelace": { "type": "integer" } - } - } - } - } - - , "VerificationKey": - { "title": "VerificationKey" - , "description": "An Ed25519 verification key." - , "type": "string" - , "contentEncoding": "base16" - , "minLength": 64 - , "maxLength": 64 - } - - , "VoterRole": - { "title": "VoterRole" - , "type": "string" - , "enum": [ "constitutionalCommittee", "delegateRepresentative", "stakePoolOperator" ] - } - - , "VotingPeriod": - { "title": "VotingPeriod" - , "type": "string" - , "enum": [ "voteForThisEpoch", "voteForNextEpoch" ] - } - - , "VrfProof": - { "title": "VrfProof" - , "type": "string" - , "contentEncoding": "base16" - } - - , "VrfOutput": - { "title": "VrfOutput" - , "type": "string" - , "contentEncoding": "base16" - } - - , "Withdrawals": - { "title": "Withdrawals" - , "type": "object" - , "additionalProperties": { "$ref": "cardano.json#/definitions/Lovelace" } - , "propertyNames": { "pattern": "^stake(_test)?1[0-9a-z]+$" } - } - } -} diff --git a/docs/asyncapi-1.0.0-next.47.min.js b/docs/asyncapi-1.0.0-next.47.min.js new file mode 100644 index 0000000..e42a45f --- /dev/null +++ b/docs/asyncapi-1.0.0-next.47.min.js @@ -0,0 +1,51 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AsyncApiStandalone",[],t):"object"==typeof exports?exports.AsyncApiStandalone=t():e.AsyncApiStandalone=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=309)}([function(e,t,n){"use strict";e.exports=n(76)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"l",(function(){return i})),n.d(t,"j",(function(){return o})),n.d(t,"k",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"b",(function(){return d}));var r="https://www.iana.org/assignments/media-types",i="https://github.com/asyncapi/parser-js/validation-errors",o="Terms of service",a="Support",s="External Docs",c="PUB",u="SUB",l="Servers",p="Operations",f="Messages",h="Schemas",d="Error"},function(e,t){const n=e.exports,r=(e,t,n,r)=>{if("string"!=typeof t||!e)return null;const i=e[String(t)];return void 0===i?null:n?new n(i,r):i};n.createMapOfType=(e,t,n)=>{const r={};return e?(Object.entries(e).forEach(([e,i])=>{r[String(e)]=new t(i,n)}),r):r},n.getMapValueOfType=(e,t,n,i)=>r(e,t,n,i),n.getMapValueByKey=(e,t)=>r(e,t),n.mix=(e,...t)=>{let n=!1;if(t.some((function(t){return e===t||(n=Object.keys(t).some(t=>e.prototype.hasOwnProperty(t)),n)})))throw n?new Error(`invalid mix function: model ${e.name} has at least one method that it is trying to replace by mixin`):new Error(`invalid mix function: cannot use the model ${e.name} as a mixin`);return t.forEach(t=>Object.assign(e.prototype,t)),e}},function(e,t,n){const r=n(26);e.exports=class{constructor(e){if(null==e)throw new r(`Invalid JSON to instantiate the ${this.constructor.name} object.`);this._json=e}json(e){return void 0===e?this._json:this._json?this._json[String(e)]:void 0}}},function(e,t){const n={hasExtensions(){return!!this.extensionKeys().length},extensions(){const e={};return Object.entries(this._json).forEach(([t,n])=>{/^x-[\w\d\.\-\_]+$/.test(t)&&(e[String(t)]=n)}),e},extensionKeys(){return Object.keys(this.extensions())},extKeys(){return this.extensionKeys()},hasExtension(e){return!!e.startsWith("x-")&&!!this._json[String(e)]},extension(e){return e.startsWith("x-")?this._json[String(e)]:null},hasExt(e){return this.hasExtension(e)},ext(e){return this.extension(e)}};e.exports=n},,function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n(87),i=n(88),o=n(66);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return L(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),p=0;pi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function $(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function I(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||I(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||I(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||$(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);$(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);$(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(13))},function(e,t,n){const{getMapValueByKey:r}=n(2),i={hasDescription(){return!!this._json.description},description(){return r(this._json,"description")}};e.exports=i},,function(e,t,n){"use strict";function r(e){return void 0!==e.url}var i;n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),function(e){e.PUBLISH="publish",e.SUBSCRIBE="subscribe"}(i||(i={}))},,function(e,t,n){const{createMapOfType:r,getMapValueOfType:i,mix:o}=n(2),a=n(3),{xParserCircle:s,xParserCircleProps:c}=n(27),u=n(7),l=n(17),p=n(4);class f extends a{constructor(e,t){super(e),this.options=t||{}}uid(){return this.$id()||this.ext("x-parser-schema-id")}$id(){return this._json.$id}multipleOf(){return this._json.multipleOf}maximum(){return this._json.maximum}exclusiveMaximum(){return this._json.exclusiveMaximum}minimum(){return this._json.minimum}exclusiveMinimum(){return this._json.exclusiveMinimum}maxLength(){return this._json.maxLength}minLength(){return this._json.minLength}pattern(){return this._json.pattern}maxItems(){return this._json.maxItems}minItems(){return this._json.minItems}uniqueItems(){return!!this._json.uniqueItems}maxProperties(){return this._json.maxProperties}minProperties(){return this._json.minProperties}required(){return this._json.required}enum(){return this._json.enum}type(){return this._json.type}allOf(){return this._json.allOf?this._json.allOf.map(e=>new f(e,{parent:this})):null}oneOf(){return this._json.oneOf?this._json.oneOf.map(e=>new f(e,{parent:this})):null}anyOf(){return this._json.anyOf?this._json.anyOf.map(e=>new f(e,{parent:this})):null}not(){return this._json.not?new f(this._json.not,{parent:this}):null}items(){return this._json.items?Array.isArray(this._json.items)?this._json.items.map(e=>new f(e,{parent:this})):new f(this._json.items,{parent:this}):null}properties(){return r(this._json.properties,f,{parent:this})}property(e){return i(this._json.properties,e,f,{parent:this})}additionalProperties(){const e=this._json.additionalProperties;if(null!=e)return"boolean"==typeof e?e:new f(e,{parent:this})}additionalItems(){const e=this._json.additionalItems;if(null!=e)return new f(e,{parent:this})}patternProperties(){return r(this._json.patternProperties,f,{parent:this})}const(){return this._json.const}contains(){return this._json.contains?new f(this._json.contains,{parent:this}):null}dependencies(){if(!this._json.dependencies)return null;const e={};return Object.entries(this._json.dependencies).forEach(([t,n])=>{e[String(t)]=Array.isArray(n)?n:new f(n,{parent:this})}),e}propertyNames(){return this._json.propertyNames?new f(this._json.propertyNames,{parent:this}):null}if(){return this._json.if?new f(this._json.if,{parent:this}):null}then(){return this._json.then?new f(this._json.then,{parent:this}):null}else(){return this._json.else?new f(this._json.else,{parent:this}):null}format(){return this._json.format}contentEncoding(){return this._json.contentEncoding}contentMediaType(){return this._json.contentMediaType}definitions(){return r(this._json.definitions,f,{parent:this})}title(){return this._json.title}default(){return this._json.default}deprecated(){return this._json.deprecated}discriminator(){return this._json.discriminator}readOnly(){return!!this._json.readOnly}writeOnly(){return!!this._json.writeOnly}examples(){return this._json.examples}isBooleanSchema(){return"boolean"==typeof this._json}isCircular(){if(this.ext(s))return!0;let e=this.options.parent;for(;e;){if(e._json===this._json)return!0;e=e.options&&e.options.parent}return!1}circularSchema(){let e=this.options.parent;for(;e;){if(e._json===this._json)return e;e=e.options&&e.options.parent}}hasCircularProps(){return Array.isArray(this.ext(c))?this.ext(c).length>0:Object.entries(this.properties()||{}).map(([e,t])=>{if(t.isCircular())return e}).filter(Boolean).length>0}circularProps(){return Array.isArray(this.ext(c))?this.ext(c):Object.entries(this.properties()||{}).map(([e,t])=>{if(t.isCircular())return e}).filter(Boolean)}}e.exports=o(f,u,l,p)},function(e,t,n){"use strict";var r=n(56),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('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!0},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=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,p=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):p=-1,u.length&&h())}function h(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++p1)for(var n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const c=e=>!!e.kind;class u{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){c(e)&&(this.buffer+="")}value(){return this.buffer}span(e){this.buffer+=``}}class l{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{l._collapse(e)}))}}class p extends l{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function f(e){return e?"string"==typeof e?e:e.source:null}const h=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const d="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m={begin:"\\\\[\\s\\S]",relevance:0},y={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[m]},g={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[m]},v={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},b=function(e,t,n={}){const r=s({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(v),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},x=b("//","$"),w=b("/\\*","\\*/"),E=b("#","$"),_={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},j={className:"number",begin:d,relevance:0},S={className:"number",begin:"\\b(0b[01]+)",relevance:0},D={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},A={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[m,{begin:/\[/,end:/\]/,relevance:0,contains:[m]}]}]},k={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},C={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},P={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var T=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:d,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>f(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:m,APOS_STRING_MODE:y,QUOTE_STRING_MODE:g,PHRASAL_WORDS_MODE:v,COMMENT:b,C_LINE_COMMENT_MODE:x,C_BLOCK_COMMENT_MODE:w,HASH_COMMENT_MODE:E,NUMBER_MODE:_,C_NUMBER_MODE:j,BINARY_NUMBER_MODE:S,CSS_NUMBER_MODE:D,REGEXP_MODE:A,TITLE_MODE:k,UNDERSCORE_TITLE_MODE:C,METHOD_GUARD:P,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function $(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function O(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=$,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function F(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>f(e)).join("|")+")"}(...e.illegal))}function I(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function N(e,t){void 0===e.relevance&&(e.relevance=1)}const R=["of","and","for","in","not","or","if","then","parent","list","value"];function B(e,t){return t?Number(t):function(e){return R.includes(e.toLowerCase())}(e)?0:1}function M(e,{plugins:t}){function n(t,n){return new RegExp(f(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,t="|"){let n=0;return e.map(e=>{n+=1;const t=n;let r=f(e),i="";for(;r.length>0;){const e=h.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i}).map(e=>`(${e})`).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),function t(r,o){const a=r;if(r.isCompiled)return a;[I].forEach(e=>e(r,o)),e.compilerExtensions.forEach(e=>e(r,o)),r.__beforeBegin=null,[O,F,N].forEach(e=>e(r,o)),r.isCompiled=!0;let c=null;if("object"==typeof r.keywords&&(c=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=function e(t,n,r="keyword"){const i={};return"string"==typeof t?o(r,t.split(" ")):Array.isArray(t)?o(r,t):Object.keys(t).forEach((function(r){Object.assign(i,e(t[r],n,r))})),i;function o(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach((function(t){const n=t.split("|");i[n[0]]=[e,B(n[0],n[1])]}))}}(r.keywords,e.case_insensitive)),r.lexemes&&c)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c=c||r.lexemes||/\w+/,a.keywordPatternRe=n(c,!0),o&&(r.begin||(r.begin=/\B|\b/),a.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(a.endRe=n(r.end)),a.terminatorEnd=f(r.end)||"",r.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(a.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return s(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return s(e,{starts:e.starts?s(e.starts):null});if(Object.isFrozen(e))return s(e);return e}("self"===e?r:e)}))),r.contains.forEach((function(e){t(e,a)})),r.starts&&t(r.starts,o),a.matcher=function(e){const t=new i;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function L(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const z={"after:highlightElement":({el:e,result:t,text:n})=>{const r=q(e);if(!r.length)return;const i=document.createElement("div");i.innerHTML=t.value,t.value=function(e,t,n){let r=0,i="";const o=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function u(e){i+=""}function l(e){("start"===e.event?c:u)(e.node)}for(;e.length||t.length;){let t=s();if(i+=a(n.substring(r,t[0].offset)),r=t[0].offset,t===e){o.reverse().forEach(u);do{l(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===r);o.reverse().forEach(c)}else"start"===t[0].event?o.push(t[0].node):o.pop(),l(t.splice(0,1)[0])}return i+a(n.substr(r))}(r,q(i),n)}};function U(e){return e.nodeName.toLowerCase()}function q(e){const t=[];return function e(n,r){for(let i=n.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:r,node:i}),r=e(i,r),U(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:i}));return r}(e,0),t}const H={},V=e=>{console.error(e)},J=(e,...t)=>{console.log("WARN: "+e,...t)},K=(e,t)=>{H[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),H[`${e}/${t}`]=!0)},X=a,W=s,G=Symbol("nomatch");var Y=function(e){const t=Object.create(null),n=Object.create(null),i=[];let a=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,c="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:p};function f(e){return l.noHighlightRe.test(e)}function h(e,t,n,r){let i="",o="";"object"==typeof t?(i=e,n=t.ignoreIllegals,o=t.language,r=void 0):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."),K("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,i=t);const a={code:i,language:o};D("before:highlight",a);const s=a.result?a.result:d(a.language,a.code,n,r);return s.code=a.code,D("after:highlight",s),s}function d(e,n,r,s){function u(e,t){const n=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function p(){null!=j.subLanguage?function(){if(""===A)return;let e=null;if("string"==typeof j.subLanguage){if(!t[j.subLanguage])return void D.addText(A);e=d(j.subLanguage,A,!0,S[j.subLanguage]),S[j.subLanguage]=e.top}else e=m(A,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(k+=e.relevance),D.addSublanguage(e.emitter,e.language)}():function(){if(!j.keywords)return void D.addText(A);let e=0;j.keywordPatternRe.lastIndex=0;let t=j.keywordPatternRe.exec(A),n="";for(;t;){n+=A.substring(e,t.index);const r=u(j,t);if(r){const[e,i]=r;if(D.addText(n),n="",k+=i,e.startsWith("_"))n+=t[0];else{const n=x.classNameAliases[e]||e;D.addKeyword(t[0],n)}}else n+=t[0];e=j.keywordPatternRe.lastIndex,t=j.keywordPatternRe.exec(A)}n+=A.substr(e),D.addText(n)}(),A=""}function f(e){return e.className&&D.openNode(x.classNameAliases[e.className]||e.className),j=Object.create(e,{parent:{value:j}}),j}function h(e){return 0===j.matcher.regexIndex?(A+=e[0],1):(T=!0,0)}function y(e){const t=e[0],n=e.rule,r=new o(n),i=[n.__beforeBegin,n["on:begin"]];for(const n of i)if(n&&(n(e,r),r.isMatchIgnored))return h(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?A+=t:(n.excludeBegin&&(A+=t),p(),n.returnBegin||n.excludeBegin||(A=t)),f(n),n.returnBegin?0:t.length}function g(e){const t=e[0],r=n.substr(e.index),i=function e(t,n,r){let i=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,r);if(i){if(t["on:end"]){const e=new o(t);t["on:end"](n,e),e.isMatchIgnored&&(i=!1)}if(i){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,r)}(j,e,r);if(!i)return G;const a=j;a.skip?A+=t:(a.returnEnd||a.excludeEnd||(A+=t),p(),a.excludeEnd&&(A=t));do{j.className&&D.closeNode(),j.skip||j.subLanguage||(k+=j.relevance),j=j.parent}while(j!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),f(i.starts)),a.returnEnd?0:t.length}let v={};function b(t,i){const o=i&&i[0];if(A+=t,null==o)return p(),0;if("begin"===v.type&&"end"===i.type&&v.index===i.index&&""===o){if(A+=n.slice(i.index,i.index+1),!a){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=v.rule,t}return 1}if(v=i,"begin"===i.type)return y(i);if("illegal"===i.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(j.className||"")+'"');throw e.mode=j,e}if("end"===i.type){const e=g(i);if(e!==G)return e}if("illegal"===i.type&&""===o)return 1;if(P>1e5&&P>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return A+=o,o.length}const x=_(e);if(!x)throw V(c.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=M(x,{plugins:i});let E="",j=s||w;const S={},D=new l.__emitter(l);!function(){const e=[];for(let t=j;t!==x;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>D.openNode(e))}();let A="",k=0,C=0,P=0,T=!1;try{for(j.matcher.considerAll();;){P++,T?T=!1:j.matcher.considerAll(),j.matcher.lastIndex=C;const e=j.matcher.exec(n);if(!e)break;const t=b(n.substring(C,e.index),e);C=e.index+t}return b(n.substr(C)),D.closeAllNodes(),D.finalize(),E=D.toHTML(),{relevance:Math.floor(k),value:E,language:e,illegal:!1,emitter:D,top:j}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:n.slice(C-100,C+100),mode:t.mode},sofar:E,relevance:0,value:X(n),emitter:D};if(a)return{illegal:!1,relevance:0,value:X(n),emitter:D,language:e,top:j,errorRaised:t};throw t}}function m(e,n){n=n||l.languages||Object.keys(t);const r=function(e){const t={relevance:0,emitter:new l.__emitter(l),value:X(e),illegal:!1,top:u};return t.emitter.addText(e),t}(e),i=n.filter(_).filter(S).map(t=>d(t,e,!1));i.unshift(r);const o=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(_(e.language).supersetOf===t.language)return 1;if(_(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=o,c=a;return c.second_best=s,c}const y={"before:highlightElement":({el:e})=>{l.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:e})=>{l.useBR&&(e.value=e.value.replace(/\n/g,"
"))}},g=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:e})=>{l.tabReplace&&(e.value=e.value.replace(g,e=>e.replace(/\t/g,l.tabReplace)))}};function b(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=l.languageDetectRe.exec(t);if(n){const t=_(n[1]);return t||(J(c.replace("{}",n[1])),J("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>f(e)||_(e))}(e);if(f(r))return;D("before:highlightElement",{el:e,language:r}),t=e;const i=t.textContent,o=r?h(i,{language:r,ignoreIllegals:!0}):m(i);D("after:highlightElement",{el:e,result:o,text:i}),e.innerHTML=o.value,function(e,t,r){const i=t?n[t]:r;e.classList.add("hljs"),i&&e.classList.add(i)}(e,r,o.language),e.result={language:o.language,re:o.relevance,relavance:o.relevance},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.relevance,relavance:o.second_best.relevance})}const x=()=>{if(x.called)return;x.called=!0,K("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(b)};let w=!1;function E(){if("loading"===document.readyState)return void(w=!0);document.querySelectorAll("pre code").forEach(b)}function _(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function j(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function S(e){const t=_(e);return t&&!t.disableAutodetect}function D(e,t){const n=e;i.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){w&&E()}),!1),Object.assign(e,{highlight:h,highlightAuto:m,highlightAll:E,fixMarkup:function(e){return K("10.2.0","fixMarkup will be removed entirely in v11.0"),K("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,l.tabReplace||l.useBR?t.replace(s,e=>"\n"===e?l.useBR?"
":e:l.tabReplace?e.replace(/\t/g,l.tabReplace):e):t;var t},highlightElement:b,highlightBlock:function(e){return K("10.7.0","highlightBlock will be removed entirely in v12.0"),K("10.7.0","Please use highlightElement now."),b(e)},configure:function(e){e.useBR&&(K("10.3.0","'useBR' will be removed entirely in v11.0"),K("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),l=W(l,e)},initHighlighting:x,initHighlightingOnLoad:function(){K("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),w=!0},registerLanguage:function(n,r){let i=null;try{i=r(e)}catch(e){if(V("Language definition for '{}' could not be registered.".replace("{}",n)),!a)throw e;V(e),i=u}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&j(i.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:_,registerAliases:j,requireLanguage:function(e){K("10.4.0","requireLanguage will be removed entirely in v11."),K("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=_(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:S,inherit:W,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),i.push(e)},vuePlugin:L(e).VuePlugin}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString="10.7.3";for(const e in T)"object"==typeof T[e]&&r(T[e]);return Object.assign(e,T),e.addPlugin(y),e.addPlugin(z),e.addPlugin(v),e}({});e.exports=Y},function(e,t,n){const{getMapValueOfType:r}=n(2),i=n(85),o={hasExternalDocs(){return!(!this._json.externalDocs||!Object.keys(this._json.externalDocs).length)},externalDocs(){return r(this._json,"externalDocs",i)}};e.exports=o},function(e,t,n){"use strict";(function(r){let i=/^win/.test(r.platform),o=/\//g,a=/^(\w{2,}):\/\//i,s=e.exports,c=/~1/g,u=/~0/g,l=[/\?/g,"%3F",/\#/g,"%23"],p=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=n(69).parse,t.resolve=n(69).resolve,t.cwd=function(){if(r.browser)return location.href;let e=r.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=a.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?s.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){let t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&r.browser},t.isFileSystemPath=function(e){if(r.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){i&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;tdecodeURIComponent(e).replace(c,"/").replace(u,"~"))}}).call(this,n(14))},function(e,t,n){"use strict";const{Ono:r}=n(28),{stripHash:i,toFileSystemPath:o}=n(18),a=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,r.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};c(a);const s=t.JSONParserErrorGroup=class e extends Error{constructor(e){super(),this.files=e,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${o(e.$refs._root$Ref.path)}'`,r.extend(this)}static getParserErrors(e){const t=[];for(const n of Object.values(e.$refs._$refs))n.errors&&t.push(...n.errors);return t}get errors(){return e.getParserErrors(this.files)}};c(s);c(t.ParserError=class extends a{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}});c(t.UnmatchedParserError=class extends a{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}});c(t.ResolverError=class extends a{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}});c(t.UnmatchedResolverError=class extends a{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}});c(t.MissingPointerError=class extends a{constructor(e,t){super(`Token "${e}" does not exist.`,i(t)),this.code="EMISSINGPOINTER"}});function c(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}c(t.InvalidPointerError=class extends a{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,i(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof a||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));const r=/\r?\n/,i=/\bono[ @]/;function o(e,t){let n=s(e.stack),r=t?t.stack:void 0;return n&&r?n+"\n\n"+r:n||r}function a(e,t,n){n?Object.defineProperty(t,"stack",{get:()=>o({stack:e.get.apply(t)},n),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>s(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function s(e){if(e){let t,n=e.split(r);for(let e=0;e0)return n.join("\n")}return e}const c=["function","symbol","undefined"],u=["constructor","prototype","__proto__"],l=Object.getPrototypeOf({});function p(){let e={},t=this;for(let n of f(t))if("string"==typeof n){let r=t[n],i=typeof r;c.includes(i)||(e[n]=r)}return e}function f(e,t=[]){let n=[];for(;e&&e!==l;)n=n.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let r=new Set(n);for(let e of t.concat(u))r.delete(e);return r}const h=["name","message","stack"];function d(e,t,n){let r=e;return function(e,t){let n=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(n)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(n)&&(e.stack=o(e,t)):a(n,e,t)}(r,t),t&&"object"==typeof t&&function(e,t){let n=f(t,h),r=e,i=t;for(let e of n)if(void 0===r[e])try{r[e]=i[e]}catch(e){}}(r,t),r.toJSON=p,n&&"object"==typeof n&&Object.assign(r,n),r}const m=y;function y(e,t){function n(...n){let{originalError:r,props:i,message:o}=function(e,t){let n,r,i,o="";return"string"==typeof e[0]?i=e:"string"==typeof e[1]?(e[0]instanceof Error?n=e[0]:r=e[0],i=e.slice(1)):(n=e[0],r=e[1],i=e.slice(2)),i.length>0&&(o=t.format?t.format.apply(void 0,i):i.join(" ")),t.concatMessages&&n&&n.message&&(o+=(o?" \n":"")+n.message),{originalError:n,props:r,message:o}}(n,t);return d(new e(o),r,i)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0!==e.format&&("function"==typeof e.format&&e.format)}}(t),n[Symbol.species]=e,n}y.toJSON=function(e){return p.call(e)},y.extend=function(e,t,n){return n||t instanceof Error?d(e,t,n):t?d(e,void 0,t):d(e)}},function(e,t,n){const{getMapValueByKey:r}=n(2),i={hasBindings(){return!(!this._json.bindings||!Object.keys(this._json.bindings).length)},bindings(){return this.hasBindings()?this._json.bindings:{}},bindingProtocols(){return Object.keys(this.bindings())},hasBinding(e){return this.hasBindings()&&!!this._json.bindings[String(e)]},binding(e){return r(this._json.bindings,e)}};e.exports=i},function(e,t,n){const r=n(84),i={hasTags(){return!(!Array.isArray(this._json.tags)||!this._json.tags.length)},tags(){return this.hasTags()?this._json.tags.map(e=>new r(e)):[]},tagNames(){return this.hasTags()?this._json.tags.map(e=>e.name):[]},hasTag(e){return this.hasTags()&&this._json.tags.some(t=>t.name===e)},tag(e){const t=this.hasTags()&&this._json.tags.find(t=>t.name===e);return t?new r(t):null}};e.exports=i},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),l(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(_(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(E(n))return p(n)}var u,x="",j=!1,S=["{","}"];(h(n)&&(j=!0,S=["[","]"]),_(n))&&(x=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(x=" "+RegExp.prototype.toString.call(n)),w(n)&&(x=" "+Date.prototype.toUTCString.call(n)),E(n)&&(x=" "+p(n)),0!==a.length||j&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=j?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,x,S)):S[0]+x+S[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return x(e)&&"[object RegExp]"===j(e)}function x(e){return"object"==typeof e&&null!==e}function w(e){return x(e)&&"[object Date]"===j(e)}function E(e){return x(e)&&("[object Error]"===j(e)||e instanceof Error)}function _(e){return"function"==typeof e}function j(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(v(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=d,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=x,t.isDate=w,t.isError=E,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(185);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",A(),t.format.apply(t,arguments))},t.inherits=n(186),t._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o{const n=this.channel(t);n.hasPublish()&&n.publish().messages().forEach(t=>{e.set(t.uid(),t)}),n.hasSubscribe()&&n.subscribe().messages().forEach(t=>{e.set(t.uid(),t)})}),this.hasComponents()&&Object.values(this.components().messages()).forEach(t=>{e.set(t.uid(),t)}),e}allSchemas(){const e=new Map;return _(this,t=>{t.uid()&&e.set(t.uid(),t)}),e}hasCircular(){return!!this._json[String(y)]}traverseSchemas(e,t){_(this,e,t)}static stringify(e,t){const n={...e.json()};return n[String(m)]=!0,JSON.stringify(n,function(){const e=new Map,t=new Map;let n=null;return function(r,i){const o=e.get(this)+(Array.isArray(this)?`[${r}]`:"."+r),a=i===Object(i);a&&e.set(i,o);const s=t.get(i)||"";if(!s&&a){const e=o.replace(/undefined\.\.?/,"");t.set(i,e)}const c="["===s[0]?"$":"$.";let u=s?`$ref:${c}${s}`:i;return null===n?n=i:u===n&&(u="$ref:$"),u}}(),t)}static parse(e){let t=e;if("string"==typeof e?t=JSON.parse(e):"object"==typeof e&&(t={...t}),"object"!=typeof t||!t[String(d)])throw new Error("Cannot parse invalid AsyncAPI document");if(!t[String(m)])return new j(t);delete t[String(m)];return function e(t,n,r,i,o){let a=t,s="$ref:$";if(void 0!==n){a=t[String(n)];const e=n?"."+n:"";s=i.get(t)+(Array.isArray(t)?`[${n}]`:e)}i.set(a,s),o.set(s,a);const c=o.get(a);c&&(t[String(n)]=c);"$ref:$"!==a&&"$ref:$"!==c||(t[String(n)]=r);if(a===Object(a))for(const t in a)e(a,t,r,i,o)}(t,void 0,t,new Map,new Map),new j(t)}}e.exports=o(j,f,p,h)},function(e,t){const n=(e,t)=>(t.type=e.type.startsWith("https://github.com/asyncapi/parser-js/")?e.type:"https://github.com/asyncapi/parser-js/"+e.type,t.title=e.title,e.detail&&(t.detail=e.detail),e.validationErrors&&(t.validationErrors=e.validationErrors),e.parsedJSON&&(t.parsedJSON=e.parsedJSON),e.location&&(t.location=e.location),e.refs&&(t.refs=e.refs),t);class r extends Error{constructor(e){super(),n(e,this),this.message=e.title}toJS(){return n(this,{})}}e.exports=r},function(e,t){e.exports={xParserSpecParsed:"x-parser-spec-parsed",xParserSpecStringified:"x-parser-spec-stringified",xParserMessageName:"x-parser-message-name",xParserSchemaId:"x-parser-schema-id",xParserCircle:"x-parser-circular",xParserCircleProps:"x-parser-circular-props"}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(104);n.d(t,"ono",(function(){return r.a}));var i=n(20);n.d(t,"Ono",(function(){return i.a}));n(116);t.default=r.a,"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))}.call(this,n(184)(e))},function(e,t,n){"use strict";var r=n(70),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var o=Object.create(n(55));o.inherits=n(24);var a=n(122),s=n(99);o.inherits(p,a);for(var c=i(s.prototype),u=0;u1)||(this._json.message,!1)}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new o(e)):[]}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}messages(){return this._json.message?this._json.message.oneOf?this._json.message.oneOf.map(e=>new i(e)):[new i(this._json.message)]:[]}message(e){return this._json.message?this._json.message.oneOf&&1===this._json.message.oneOf.length?new i(this._json.message.oneOf[0]):this._json.message.oneOf?"number"!=typeof e||e>this._json.message.oneOf.length-1?null:new i(this._json.message.oneOf[+e]):new i(this._json.message):null}security(){return this._json.security?this._json.security.map(e=>new a(e)):null}}},function(e,t,n){"use strict";function r(e,t,n,r){var i=r?" !== ":" === ",o=r?" || ":" && ",a=r?"!":"",s=r?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(n?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(n?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t,n){switch(e.length){case 1:return r(e[0],t,n,!0);default:var i="",a=o(e);for(var s in a.array&&a.object&&(i=a.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?" && ":"")+r(s,t,n,!0);return i}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(o="data"+(t-r||""),!i)return o}for(var s=o,u=i.split("/"),l=0;lt?l(e):(this._pos+e>t&&(this._slab=l(t),this._pos=0),this._slab.slice(this._pos,this._pos+=e))},m.prototype.nextBoolean=function(){return!!(this._nextInt()%2)},m.prototype.nextInt=function(e,t){return void 0===t&&(t=e,e=0),t=void 0===t?this._max:t,e+Math.floor(this.nextFloat()*(t-e))},m.prototype.nextFloat=function(e,t){return void 0===t&&(t=e,e=0),e+((t=void 0===t?1:t)-e)*this._nextInt()/this._max},m.prototype.nextString=function(e,t){e|=0;var n="";(t=t||"aA").indexOf("a")>-1&&(n+="abcdefghijklmnopqrstuvwxyz"),t.indexOf("A")>-1&&(n+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),t.indexOf("#")>-1&&(n+="0123456789"),t.indexOf("!")>-1&&(n+="~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\");for(var r=[],i=0;i0&&n[r].index>1].index;)e=n[r],n[r]=n[t],n[t]=e,r=t},y.prototype.pop=function(){var e=this._items,t=e.length-1|0,n=e[0];if(!n||n.index>this._index)return null;if(this._index++,!t)return e.pop(),n;e[0]=e.pop();for(var r,i,o,a,s,c,u,l=t>>1,p=0;p=a.index));)e[o]=a,e[p]=s,p=o;return n},g.prototype.isValid=function(){return this.pos<=this.buf.length},g.prototype._invalidate=function(){this.pos=this.buf.length+1},g.prototype.readBoolean=function(){return!!this.buf[this.pos++]},g.prototype.skipBoolean=function(){this.pos++},g.prototype.writeBoolean=function(e){this.buf[this.pos++]=!!e},g.prototype.readInt=g.prototype.readLong=function(){var e,t,n,r,i=0,o=0,a=this.buf;do{t=128&(e=a[this.pos++]),i|=(127&e)<>1^-(1&i)},g.prototype.skipInt=g.prototype.skipLong=function(){for(var e=this.buf;128&e[this.pos++];);},g.prototype.writeInt=g.prototype.writeLong=function(e){var t,n,r=this.buf;if(e>=-1073741824&&e<1073741824){n=e>=0?e<<1:~e<<1|1;do{r[this.pos]=127&n,n>>=7}while(n&&(r[this.pos++]|=128))}else{t=e>=0?2*e:2*-e-1;do{r[this.pos]=127&t,t/=128}while(t>=1&&(r[this.pos++]|=128))}this.pos++},g.prototype.readFloat=function(){var e=this.buf,t=this.pos;return this.pos+=4,this.pos>e.length?0:this.buf.readFloatLE(t)},g.prototype.skipFloat=function(){this.pos+=4},g.prototype.writeFloat=function(e){var t=this.buf,n=this.pos;if(this.pos+=4,!(this.pos>t.length))return this.buf.writeFloatLE(e,n)},g.prototype.readDouble=function(){var e=this.buf,t=this.pos;return this.pos+=8,this.pos>e.length?0:this.buf.readDoubleLE(t)},g.prototype.skipDouble=function(){this.pos+=8},g.prototype.writeDouble=function(e){var t=this.buf,n=this.pos;if(this.pos+=8,!(this.pos>t.length))return this.buf.writeDoubleLE(e,n)},g.prototype.readFixed=function(e){var t=this.pos;if(this.pos+=e,!(this.pos>this.buf.length)){var n=s.alloc(e);return this.buf.copy(n,0,t,t+e),n}},g.prototype.skipFixed=function(e){this.pos+=e},g.prototype.writeFixed=function(e,t){t=t||e.length;var n=this.pos;this.pos+=t,this.pos>this.buf.length||e.copy(this.buf,n,0,t)},g.prototype.readBytes=function(){var e=this.readLong();if(!(e<0))return this.readFixed(e);this._invalidate()},g.prototype.skipBytes=function(){var e=this.readLong();e<0?this._invalidate():this.pos+=e},g.prototype.writeBytes=function(e){var t=e.length;this.writeLong(t),this.writeFixed(e,t)},"function"==typeof a.prototype.utf8Slice?g.prototype.readString=function(){var e=this.readLong();if(e<0)return this._invalidate(),"";var t=this.pos,n=this.buf;return this.pos+=e,this.pos>n.length?void 0:this.buf.utf8Slice(t,t+e)}:g.prototype.readString=function(){var e=this.readLong();if(e<0)return this._invalidate(),"";var t=this.pos,n=this.buf;return this.pos+=e,this.pos>n.length?void 0:this.buf.slice(t,t+e).toString()},g.prototype.skipString=function(){var e=this.readLong();e<0?this._invalidate():this.pos+=e},g.prototype.writeString=function(e){var t=a.byteLength(e),n=this.buf;this.writeLong(t);var r,i,o,s,c=this.pos;if(this.pos+=t,!(this.pos>n.length))if(t>64&&"function"==typeof a.prototype.utf8Write)n.utf8Write(e,c,t);else for(r=0,i=t;r>6|192,n[c++]=63&o|128):55296==(64512&o)&&56320==(64512&(s=e.charCodeAt(r+1)))?(o=65536+((1023&o)<<10)+(1023&s),r++,n[c++]=o>>18|240,n[c++]=o>>12&63|128,n[c++]=o>>6&63|128,n[c++]=63&o|128):(n[c++]=o>>12|224,n[c++]=o>>6&63|128,n[c++]=63&o|128)},"function"==typeof a.prototype.latin1Write?g.prototype.writeBinary=function(e,t){var n=this.pos;this.pos+=t,this.pos>this.buf.length||this.buf.latin1Write(e,n,t)}:"function"==typeof a.prototype.binaryWrite?g.prototype.writeBinary=function(e,t){var n=this.pos;this.pos+=t,this.pos>this.buf.length||this.buf.binaryWrite(e,n,t)}:g.prototype.writeBinary=function(e,t){var n=this.pos;this.pos+=t,this.pos>this.buf.length||this.buf.write(e,n,t,"binary")},g.prototype.matchBoolean=function(e){return this.buf[this.pos++]-e.buf[e.pos++]},g.prototype.matchInt=g.prototype.matchLong=function(e){var t=this.readLong(),n=e.readLong();return t===n?0:t>1;128&e;)r|=(127&(e=a[this.pos++]))<=8&&(o-=8,n[i++]=r,r>>=8);return n[i]=r,t&&v(n,8),n},g.prototype.packLongBytes=function(e){var t,n=(128&e[7])>>7,r=this.buf,i=1,o=0,a=3;n?(v(e,8),t=1):t=0;for(var s=[e.readUIntLE(0,3),e.readUIntLE(3,3),e.readUIntLE(6,2)];a&&!s[--a];);for(;o7;)r[this.pos++]=127&t|128,t>>=7,i-=7;t|=s[a]<>=7}while(t&&(r[this.pos++]|=128));this.pos++,n&&v(e,8)},e.exports={abstractFunction:function(){throw new Error("abstract")},addDeprecatedGetters:function(e,t){var n,r,i,a,s=e.prototype;for(n=0,r=t.length;n=0)return-2;i=n}return i},hasDuplicates:function(e,t){var n,r,i,o=Object.create(null);for(n=0,r=e.length;n0&&i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#messages",onClick:function(){return n(!1)}},"Messages"),i.a.createElement("ul",{className:"text-sm mt-2"},Object.entries(u).map((function(e){var t=e[0],r=e[1];return i.a.createElement("li",{key:t},i.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#message-".concat(t),onClick:function(){return n(!1)}},i.a.createElement("div",{className:"break-all inline-block"},r.uid())))})))),h=l&&Object.keys(l).length>0&&i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#schemas",onClick:function(){return n(!1)}},"Schemas"),i.a.createElement("ul",{className:"text-sm mt-2"},Object.keys(l).map((function(e){return i.a.createElement("li",{key:e},i.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#schema-".concat(e),onClick:function(){return n(!1)}},i.a.createElement("div",{className:"break-all inline-block"},e)))}))));return i.a.createElement(b.Provider,{value:{setShowSidebar:n}},i.a.createElement("div",{className:"burger-menu rounded-full h-16 w-16 bg-white fixed bottom-16 right-8 flex items-center justify-center z-30 cursor-pointer shadow-md bg-teal-500",onClick:function(){return n((function(e){return!e}))},"data-lol":t},i.a.createElement("svg",{viewBox:"0 0 100 70",width:"40",height:"30",className:"fill-current text-gray-200"},i.a.createElement("rect",{width:"100",height:"10"}),i.a.createElement("rect",{y:"30",width:"100",height:"10"}),i.a.createElement("rect",{y:"60",width:"100",height:"10"}))),i.a.createElement("div",{className:"".concat(t?"block fixed w-full":"hidden"," sidebar relative w-64 max-h-screen h-full bg-gray-200 shadow z-20")},i.a.createElement("div",{className:"".concat(t?"w-full":""," block fixed max-h-screen h-full font-sans px-4 pt-8 pb-16 overflow-y-auto bg-gray-200")},i.a.createElement("div",{className:"sidebar--content"},i.a.createElement("div",null,s?i.a.createElement("img",{src:s,alt:"".concat(a.title()," logo, ").concat(a.version()," version")}):i.a.createElement("h1",{className:"text-2xl font-light"},a.title()," ",a.version())),i.a.createElement("ul",{className:"text-sm mt-10 relative"},i.a.createElement("li",{className:"mb-3"},i.a.createElement("a",{className:"text-gray-700 no-underline hover:text-gray-900",href:"#introduction",onClick:function(){return n(!1)}},"Introduction")),o.hasServers()&&i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#servers",onClick:function(){return n(!1)}},"Servers"),i.a.createElement(E,null)),p&&i.a.createElement(i.a.Fragment,null,i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#operations",onClick:function(){return n(!1)}},"Operations"),i.a.createElement(_,null)),f,h))))))};function w(e,t){var n=new Set,r=new Map;e.forEach((function(e){var i=[];t.forEach((function(t){var r=t.object;"function"==typeof r.tags&&((r.tags()||[]).map((function(e){return e.name()})).includes(e)&&(i.push(t),n.add(t)))})),r.set(e,i)}));var i=[];return t.forEach((function(e){n.has(e)||i.push(e)})),{tagged:r,untagged:i}}var E=function(){var e,t=g().sidebar,n=m(),r=n.servers(),o=(null==t?void 0:t.showServers)||"byDefault";if("byDefault"===o)return i.a.createElement("ul",{className:"text-sm mt-2"},Object.keys(r).map((function(e){return i.a.createElement(S,{serverName:e,key:e})})));if("bySpecTags"===o)e=(n.tags()||[]).map((function(e){return e.name()}));else{var a=new Set;Object.values(r).forEach((function(e){"function"==typeof e.tags&&e.tags().forEach((function(e){return a.add(e.name())}))})),e=Array.from(a)}var s=w(e,Object.entries(r).map((function(e){return{name:e[0],object:e[1],data:{}}}))),c=s.tagged,u=s.untagged;return i.a.createElement("ul",{className:"text-sm mt-2"},Array.from(c.entries()).map((function(e){var t=e[0],n=e[1];return i.a.createElement("li",{key:t},i.a.createElement(D,{tagName:t},n.map((function(e){var t=e.name;return i.a.createElement(S,{serverName:t,key:t})}))))})),u.length>0?i.a.createElement("li",null,i.a.createElement(D,{tagName:"Untagged"},u.map((function(e){var t=e.name;return i.a.createElement(S,{serverName:t,key:t})})))):null)},_=function(){var e,t=g().sidebar,n=m(),r=n.channels(),o=(null==t?void 0:t.showOperations)||"byDefault",a=[];if(Object.entries(r).forEach((function(e){var t=e[0],n=e[1];if(n.hasPublish()){var r=n.publish();a.push({name:"publish-".concat(t),object:r,data:{channelName:t,kind:"publish",summary:r.summary()}})}if(n.hasSubscribe()){r=n.subscribe();a.push({name:"subscribe-".concat(t),object:r,data:{channelName:t,kind:"subscribe",summary:r.summary()}})}})),"byDefault"===o)return i.a.createElement("ul",{className:"text-sm mt-2"},a.map((function(e){var t=e.name,n=e.data;return i.a.createElement(j,v({key:t},n))})));if("bySpecTags"===o)e=(n.tags()||[]).map((function(e){return e.name()}));else{var s=new Set;Object.values(a).forEach((function(e){var t=e.object;"function"==typeof t.tags&&t.tags().forEach((function(e){return s.add(e.name())}))})),e=Array.from(s)}var c=w(e,a),u=c.tagged,l=c.untagged;return i.a.createElement("ul",{className:"text-sm mt-2"},Array.from(u.entries()).map((function(e){var t=e[0],n=e[1];return i.a.createElement("li",{key:t},i.a.createElement(D,{tagName:t},n.map((function(e){var t=e.name,n=e.data;return i.a.createElement(j,v({key:t},n))}))))})),l.length>0?i.a.createElement("li",null,i.a.createElement(D,{tagName:"Untagged"},l.map((function(e){var t=e.name,n=e.data;return i.a.createElement(j,v({key:t},n))})))):null)},j=function(e){var t=e.channelName,n=e.summary,o=e.kind,s=g(),c=Object(r.useContext)(b).setShowSidebar,u="publish"===o,l="";return l=u?s.publishLabel||a.f:s.subscribeLabel||a.i,i.a.createElement("li",null,i.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-".concat(o,"-").concat(t),onClick:function(){return c(!1)}},i.a.createElement("span",{className:"".concat(u?"bg-blue-600":"bg-green-600"," font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs"),title:u?"Publish":"Subscribe"},l),i.a.createElement("span",{className:"break-all inline-block"},n||t)))},S=function(e){var t=e.serverName,n=Object(r.useContext)(b).setShowSidebar;return i.a.createElement("li",null,i.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#server-".concat(t),onClick:function(){return n(!1)}},i.a.createElement("span",{className:"break-all inline-block"},t)))},D=function(e){var t=e.tagName,n=e.children,o=Object(r.useState)(!1),a=o[0],s=o[1];return i.a.createElement("div",null,i.a.createElement(h,{onClick:function(){return s((function(e){return!e}))},chevronProps:{className:a?"-rotate-180":"-rotate-90"}},i.a.createElement("span",{className:"text-sm inline-block mt-1 font-extralight"},t)),i.a.createElement("ul",{className:"".concat(a?"block":"hidden"," text-sm mt-2 font-light")},n))},A=function(e){var t=e.href,n=e.title,r=e.className,o=e.children;return i.a.createElement("a",{href:t,title:n,className:r,target:"_blank",rel:"nofollow noopener noreferrer"},o)},k=n(60),C=n(61),P=n(16),T=n.n(P),$=n(62),O=n.n($),F=n(63),I=n.n(F),N=n(64),R=n.n(N);T.a.registerLanguage("json",O.a),T.a.registerLanguage("yaml",I.a),T.a.registerLanguage("bash",R.a);var B={langPrefix:"hljs language-",highlight:function(e,t){if(!T.a.getLanguage(t))return e;try{return T.a.highlight(e,{language:t}).value}catch(t){return e}}};var M=function(e){var t,n=e.children;return n?"string"!=typeof n?i.a.createElement(i.a.Fragment,null,n):i.a.createElement("div",{className:"prose max-w-none text-sm",dangerouslySetInnerHTML:{__html:Object(k.sanitize)((t=n,Object(C.marked)(t,B)))}}):null},L=function(e){var t=e.tag,n="#".concat(t.name()),r=t.description()||"",o=t.externalDocs(),a=i.a.createElement("div",{title:r,className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1"},i.a.createElement("span",{className:o?"underline":""},n));return o?i.a.createElement(A,{href:o.url(),title:r},a):a},z=function(e){var t=e.tags;return t&&t.length?i.a.createElement("ul",{className:"flex flex-wrap leading-normal"},t.map((function(e){return i.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e.name()},i.a.createElement(L,{tag:e}))}))):null},U=function(){var e=m(),t=e.info();if(!t)return null;var n=e.id(),r=e.externalDocs(),o=t.license(),s=t.termsOfService(),c=e.defaultContentType(),u=t.contact(),l=o||s||c||u||r;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center px-8 text-left",id:"introduction"},i.a.createElement("div",{className:"text-4xl"},t.title()," ",t.version()),l&&i.a.createElement("ul",{className:"flex flex-wrap mt-2 leading-normal"},o&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},o.url()?i.a.createElement(A,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:o.url()},i.a.createElement("span",null,o.name())):i.a.createElement("span",{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},o.name())),s&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(A,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:s},i.a.createElement("span",null,a.j))),c&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(A,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"".concat(a.a,"/").concat(c)},i.a.createElement("span",null,c))),r&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(A,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:r.url()},i.a.createElement("span",null,a.c))),u&&i.a.createElement(i.a.Fragment,null,u.url()&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(A,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},i.a.createElement("span",null,u.name()||a.k))),u.email()&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(A,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"mailto:".concat(u.email())},i.a.createElement("span",null,u.email())))),n&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement("span",{className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},"ID: ",n))),t.hasDescription()&&i.a.createElement("div",{className:"mt-4"},i.a.createElement(M,null,t.description())),e.hasTags()&&i.a.createElement("div",{className:"mt-4"},i.a.createElement(z,{tags:e.tags()}))),i.a.createElement("div",{className:"panel-item--right"}))},q=function(){function e(){}return e.securityType=function(e){switch(e){case"apiKey":return"API key";case"oauth2":return"OAuth2";case"openIdConnect":return"Open ID";case"http":return"HTTP";case"userPassword":return"User/Password";case"X509":return"X509:";case"symmetricEncryption":return"Symmetric Encription";case"asymmetricEncryption":return"Asymmetric Encription";case"httpApiKey":return"HTTP API key";case"scramSha256":return"ScramSha256";case"scramSha512":return"ScramSha512";case"gssapi":return"GSSAPI";default:return"API key"}},e.flowName=function(e){switch(e){case"implicit":return"Implicit";case"password":return"Password";case"clientCredentials":return"Client credentials";case"authorizationCode":return"Authorization Code";default:return"Implicit"}},e.getKafkaSecurity=function(e,t){var n,r;if(n="kafka"===e?t?"SASL_PLAINTEXT":"PLAINTEXT":t?"SASL_SSL":"SSL",t)switch(t.type()){case"plain":r="PLAIN";break;case"scramSha256":r="SCRAM-SHA-256";break;case"scramSha512":r="SCRAM-SHA-512";break;case"oauth2":r="OAUTHBEARER";break;case"gssapi":r="GSSAPI";break;case"X509":n="SSL"}return{securityProtocol:n,saslMechanism:r}},e}(),H=function(e){var t,n=e.security,r=void 0===n?[]:n,o=e.protocol,a=void 0===o?"":o,s=e.header,c=void 0===s?"Security":s,u=m(),l=u.hasComponents()&&u.components().securitySchemes();if(r&&r.length&&l&&Object.keys(l).length){var p=r.map((function(e){var t=e.json(),n=Object.keys(t)[0],r=l[String(n)],o=t[String(n)];return r?i.a.createElement(J,{protocol:a,securitySchema:r,requiredScopes:o,key:r.type()}):null})).filter(Boolean);t=i.a.createElement("ul",null,p.map((function(e,t){return i.a.createElement("li",{className:"mt-2",key:t},e)})))}else"kafka"!==a&&"kafka-secure"!==a||(t=i.a.createElement(J,{protocol:a,securitySchema:null}));return t?i.a.createElement("div",{className:"text-sm mt-4"},i.a.createElement("h5",{className:"text-gray-800"},c,":"),t):null};var V,J=function(e){var t,n=e.securitySchema,r=e.protocol,o=function(e,t){void 0===t&&(t=[]);var n=[];return e&&(e.name()&&n.push(i.a.createElement("span",null,"Name: ",e.name())),e.in()&&n.push(i.a.createElement("span",null,"In: ",e.in())),e.scheme()&&n.push(i.a.createElement("span",null,"Scheme: ",e.scheme())),e.bearerFormat()&&n.push(i.a.createElement("span",null,"Bearer format: ",e.bearerFormat())),e.openIdConnectUrl()&&n.push(i.a.createElement(A,{href:e.openIdConnectUrl(),className:"underline"},"Connect URL")),t.length&&n.push(i.a.createElement("span",null,"Required scopes: ",t.join(", ")))),n}(n,e.requiredScopes);if(["kafka","kafka-secure"].includes(r)){var a=q.getKafkaSecurity(r,n),s=a.securityProtocol,c=a.saslMechanism;t=i.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded"},s&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"security.protocol:"),i.a.createElement("span",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1"},s)),c&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"sasl.mechanism:"),i.a.createElement("span",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1"},c)))}var u=n&&n.flows(),l=u&&Object.entries(u).map((function(e){var t=e[0],n=e[1],r=n.authorizationUrl(),o=n.tokenUrl(),a=n.refreshUrl(),s=n.scopes();return i.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded",key:t},i.a.createElement("div",null,i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Flow:"),i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},q.flowName(t))),r&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Auth URL:"),i.a.createElement(A,{href:r,className:"underline"},r)),o&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Token URL:"),i.a.createElement(A,{href:o,className:"underline"},o)),a&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Refresh URL:"),i.a.createElement(A,{href:a,className:"underline"},a)),s&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Scopes:"),i.a.createElement("ul",{className:"inline-block"},s&&Object.entries(s).map((function(e){var t=e[0],n=e[1];return i.a.createElement("li",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1",title:n,key:t},t)})))))}));return i.a.createElement("div",null,n&&o&&i.a.createElement("div",null,i.a.createElement("span",null,q.securityType(n.type()),o.length>0&&i.a.createElement("ul",{className:"inline-block ml-2"},o.map((function(e,t){return i.a.createElement("li",{className:"inline-block font-bold no-underline bg-blue-400 text-white text-xs uppercase rounded px-2 py-0 ml-1",key:t},e)}))))),n&&n.hasDescription()&&i.a.createElement("div",null,i.a.createElement(M,null,n.description())),l&&l.length>0&&i.a.createElement("ul",{className:"my-2"},i.a.createElement("li",null,l)),t&&i.a.createElement("div",null,t))},K=n(11),X=n.n(K);!function(e){e.ANY="any",e.RESTRICTED_ANY="restricted any",e.NEVER="never",e.UNKNOWN="unknown"}(V||(V={}));var W=["string","number","integer","boolean","array","object","null"],G=Object.keys({maxLength:"string",minLength:"string",pattern:"string",contentMediaType:"string",contentEncoding:"string",multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",contains:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",properties:"object",patternProperties:"object",propertyNames:"object",dependencies:"object",additionalProperties:"object"}),Y=function(){function e(){}return e.toSchemaType=function(e){var t=this;if(!e||"function"!=typeof e.json)return V.UNKNOWN;if(e.isBooleanSchema())return!0===e.json()?V.ANY:V.NEVER;if(0===Object.keys(e.json()).length)return V.ANY;var n=e.not();if(n&&this.inferType(n)===V.ANY)return V.NEVER;var r=this.inferType(e);if(Array.isArray(r))return r.map((function(n){return t.toType(n,e)})).join(" | ");r=this.toType(r,e);var i=this.toCombinedType(e);return r&&i?"".concat(r," ").concat(i):i||r},e.applicatorSchemaName=function(e,t,n,r){var i=null!=r&&" ".concat(r,":")||":";return 0===e?"".concat(t).concat(i):"".concat(n).concat(i)},e.prettifyValue=function(e,t){void 0===t&&(t=!0);var n=typeof e;return"string"===n?t?'"'.concat(e,'"'):e:"number"===n||"bigint"===n||"boolean"===n?"".concat(e):Array.isArray(e)?"[".concat(e.toString(),"]"):JSON.stringify(e)},e.humanizeConstraints=function(e){var t=[],n=this.humanizeNumberRangeConstraint(e.minimum(),e.exclusiveMinimum(),e.maximum(),e.exclusiveMaximum());void 0!==n&&t.push(n);var r=this.humanizeMultipleOfConstraint(e.multipleOf());void 0!==r&&t.push(r);var i=this.humanizeRangeConstraint("characters",e.minLength(),e.maxLength());void 0!==i&&t.push(i);var o=e.uniqueItems(),a=this.humanizeRangeConstraint(o?"unique items":"items",e.minItems(),e.maxItems());void 0!==a&&t.push(a);var s=this.humanizeRangeConstraint("properties",e.minProperties(),e.maxProperties());return void 0!==s&&t.push(s),t},e.isExpandable=function(e){var t=this.inferType(e);if((t=Array.isArray(t)?t:[t]).includes("object")||t.includes("array"))return!0;if(e.oneOf()||e.anyOf()||e.allOf()||Object.keys(e.properties()).length||e.items()||e.not()||e.if()||e.then()||e.else())return!0;var n=this.getCustomExtensions(e);return!(!n||!Object.keys(n).length)},e.serverVariablesToSchema=function(e){var t;if(e&&Object.keys(e).length){var n=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=Object.assign({},r.json()||{}),e[n].type="string",e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new X.a(n)}},e.parametersToSchema=function(e){var t,n=this;if(e&&Object.keys(e).length){var r=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var r=t[0],i=t[1],o=i.schema();return e[r]=Object.assign({},o?o.json():{}),e[r].description=i.description()||e[r].description,e[r][n.extParameterLocation]=i.location(),e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new X.a(r)}},e.jsonToSchema=function(e){var t=this.jsonFieldToSchema(e);return new X.a(t)},e.getCustomExtensions=function(e){if(e&&"function"==typeof e.extensions)return Object.entries(e.extensions()||{}).reduce((function(e,t){var n=t[0],r=t[1];return n.startsWith("x-parser-")||n.startsWith("x-schema-private-")||(e[n]=r),e}),{})},e.getDependentRequired=function(e,t){var n=[],r=t.dependencies();if(r){for(var i=0,o=Object.entries(r);i")}return e},e.toItemsType=function(e,t){var n=this,r=e.map((function(e){return n.toSchemaType(e)})).join(", "),i=t.additionalItems();if(void 0===i||i.json()){var o=void 0===i||!0===i.json()?V.ANY:this.toSchemaType(i);return"tuple<".concat(r||V.UNKNOWN,", ...optional<").concat(o,">>")}return"tuple<".concat(r||V.UNKNOWN,">")},e.toCombinedType=function(e){return e.oneOf()?"oneOf":e.anyOf()?"anyOf":e.allOf()?"allOf":void 0},e.inferType=function(e){var t=e.type();if(void 0!==t)return Array.isArray(t)?(t.includes("integer")&&t.includes("number")&&(t=t.filter((function(e){return"integer"!==e}))),1===t.length?t[0]:t):t;var n=e.const();if(void 0!==n)return typeof n;var r=e.enum();if(Array.isArray(r)&&r.length){var i=Array.from(new Set(r.map((function(e){return typeof e}))));return 1===i.length?i[0]:i}var o=Object.keys(e.json()||{})||[];return!0===G.some((function(e){return o.includes(e)}))?V.RESTRICTED_ANY:this.toCombinedType(e)?"":V.ANY},e.humanizeNumberRangeConstraint=function(e,t,n,r){var i,o=void 0!==t,a=void 0!==e||o,s=void 0!==r,c=void 0!==n||s;return a&&c?(i=o?"( ":"[ ",i+=o?t:e,i+=" .. ",i+=s?r:n,i+=s?" )":" ]"):a?(i=o?"> ":">= ",i+=o?t:e):c&&(i=s?"< ":"<= ",i+=s?r:n),i},e.humanizeMultipleOfConstraint=function(e){if(void 0!==e){var t=e.toString(10);return/^0\.0*1$/.test(t)?"decimal places <= ".concat(t.split(".")[1].length):"multiple of ".concat(t)}},e.humanizeRangeConstraint=function(e,t,n){var r;return void 0!==t&&void 0!==n?r=t===n?"".concat(t," ").concat(e):"[ ".concat(t," .. ").concat(n," ] ").concat(e):void 0!==n?r="<= ".concat(n," ").concat(e):void 0!==t&&(r=1===t?"non-empty":">= ".concat(t," ").concat(e)),r},e.jsonFieldToSchema=function(e){var t,n,r,i,o=this;return null==e?((t={type:"string",const:""})[this.extRawValue]=!0,t):"object"!=typeof e?((n={type:"string",const:"function"==typeof e.toString?e.toString():e})[this.extRawValue]=!0,n):this.isJSONSchema(e)?e:Array.isArray(e)?((r={type:"array",items:e.map((function(e){return o.jsonFieldToSchema(e)}))})[this.extRenderType]=!1,r[this.extRenderAdditionalInfo]=!1,r):((i={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=o.jsonFieldToSchema(r),e}),{})})[this.extRenderType]=!1,i[this.extRenderAdditionalInfo]=!1,i)},e.isJSONSchema=function(e){return!(!e||"object"!=typeof e||!(W.includes(e.type)||Array.isArray(e.type)&&e.type.some((function(e){return!W.includes(e)}))))},e.extRenderType="x-schema-private-render-type",e.extRenderAdditionalInfo="x-schema-private-render-additional-info",e.extRawValue="x-schema-private-raw-value",e.extParameterLocation="x-schema-private-parameter-location",e}(),Z=function(e){var t=e.name,n=void 0===t?"Extensions":t,r=e.item,o=Y.getCustomExtensions(r);if(!o||!Object.keys(o).length)return null;var a=Y.jsonToSchema(o);return a&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(ee,{schemaName:n,schema:a,onlyTitle:!0}))},Q=i.a.createContext({reverse:!1,deepExpanded:!1}),ee=function(e){var t=e.schemaName,n=e.schema,o=e.required,a=void 0!==o&&o,s=e.isPatternProperty,c=void 0!==s&&s,u=e.isProperty,l=void 0!==u&&u,p=e.isCircular,f=void 0!==p&&p,d=e.dependentRequired,m=e.expanded,y=void 0!==m&&m,g=e.onlyTitle,v=void 0!==g&&g,b=Object(r.useContext)(Q),x=b.reverse,w=b.deepExpanded,E=Object(r.useState)(y),_=E[0],j=E[1],S=Object(r.useState)(!1),D=S[0],k=S[1];if(Object(r.useEffect)((function(){k(w)}),[w,k]),Object(r.useEffect)((function(){j(D)}),[D,j]),!n||"string"==typeof t&&((null==t?void 0:t.startsWith("x-parser-"))||(null==t?void 0:t.startsWith("x-schema-private-"))))return null;var C=Y.getDependentSchemas(n),P=Y.humanizeConstraints(n),T=n.externalDocs(),$=!1!==n.ext(Y.extRenderType),O=!0===n.ext(Y.extRawValue),F=n.ext(Y.extParameterLocation),I=Y.isExpandable(n)||C,N=Y.toSchemaType(n);f=f||n.isCircular()||n.ext("x-parser-circular")||!1;var R=n.uid(),B=n.items();B&&!Array.isArray(B)?(f=f||B.isCircular()||B.ext("x-parser-circular")||!1)&&"function"==typeof B.circularSchema&&(N=Y.toSchemaType(B.circularSchema())):f&&"function"==typeof n.circularSchema&&(N=Y.toSchemaType(n.circularSchema()));var L=l?"italic":"",z="string"==typeof t?i.a.createElement("span",{className:"break-words text-sm ".concat(L)},t):t;return i.a.createElement(Q.Provider,{value:{reverse:!x,deepExpanded:D}},i.a.createElement("div",null,i.a.createElement("div",{className:"flex py-2"},i.a.createElement("div",{className:"".concat(v?"":"min-w-1/4"," mr-2")},I&&!f?i.a.createElement(i.a.Fragment,null,i.a.createElement(h,{onClick:function(){return j((function(e){return!e}))},expanded:_},z),i.a.createElement("button",{type:"button",onClick:function(){return k((function(e){return!e}))},className:"ml-1 text-sm text-gray-500"},D?"Collapse all":"Expand all")):i.a.createElement("span",{className:"break-words text-sm ".concat(l?"italic":"")},t),c&&i.a.createElement("div",{className:"text-gray-500 text-xs italic"},"(pattern property)"),a&&i.a.createElement("div",{className:"text-red-600 text-xs"},"required"),d&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"text-gray-500 text-xs"},"required when defined:"),i.a.createElement("div",{className:"text-red-600 text-xs"},d.join(", "))),n.deprecated()&&i.a.createElement("div",{className:"text-red-600 text-xs"},"deprecated"),n.writeOnly()&&i.a.createElement("div",{className:"text-gray-500 text-xs"},"write-only"),n.readOnly()&&i.a.createElement("div",{className:"text-gray-500 text-xs"},"read-only")),O?i.a.createElement("div",null,i.a.createElement("div",{className:"text-sm"},Y.prettifyValue(n.const(),!1))):i.a.createElement("div",null,i.a.createElement("div",null,$&&i.a.createElement("div",{className:"capitalize text-sm text-teal-500 font-bold inline-block mr-2"},f?"".concat(N," [CIRCULAR]"):N),i.a.createElement("div",{className:"inline-block"},n.format()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"format: ",n.format()),void 0!==n.pattern()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded mr-2 p-1 text-xs"},"must match: ",n.pattern()),void 0!==n.contentMediaType()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"media type: ",n.contentMediaType()),void 0!==n.contentEncoding()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"encoding: ",n.contentEncoding()),!!P.length&&P.map((function(e){return i.a.createElement("span",{className:"bg-purple-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs",key:e},e)})),R&&!R.startsWith("e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function fe(...e){const t=e=>e&&"object"==typeof e;return e.reduce((e,n)=>(Object.keys(n).forEach(r=>{const i=e[r],o=n[r];t(i)&&t(o)?e[r]=fe(i,o):e[r]=o}),e),Array.isArray(e[e.length-1])?[]:{})}function he(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function de(e,t){t&&e.pop()}const me={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function ye(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(me);for(var n=0;nt.maxSampleDepth)return de(xe,r),he(ye(e));if(e.$ref){if(!n)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let i=decodeURIComponent(e.$ref);i.startsWith("#")&&(i=i.substring(1));const o=ve.a.get(n,i);let a;if(!0!==be[i])be[i]=!0,a=_e(o,t,n,r),be[i]=!1;else{a=he(ye(o))}return de(xe,r),a}if(void 0!==e.example)return de(xe,r),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return de(xe,r),Ee(e)||function(e,t,n,r,i){let o=_e(e,n,r);const a=[];for(let e of t){const{type:t,readOnly:s,writeOnly:c,value:u}=_e({type:o.type,...e},n,r,i);o.type&&t&&t!==o.type&&(console.warn("allOf: schemas with different types can't be merged"),o.type=t),o.type=o.type||t,o.readOnly=o.readOnly||s,o.writeOnly=o.writeOnly||c,null!=u&&a.push(u)}if("object"===o.type)return o.value=fe(o.value||{},...a.filter(e=>"object"==typeof e)),o;{"array"===o.type&&(n.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=a[a.length-1];return o.value=null!=e?e:o.value,o}}({...e,allOf:void 0},e.allOf,t,n,r);if(e.oneOf&&e.oneOf.length){e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),de(xe,r);const i=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]);return Ee(e)||_e(i,t,n,r)}if(e.anyOf&&e.anyOf.length)return de(xe,r),Ee(e)||_e(e.anyOf[0],t,n,r);if(e.if&&e.then)return de(xe,r),Ee(e)||_e(fe(e.if,e.then),t,n,r);let i=we(e),o=null;if(void 0===i){i=null,o=e.type,Array.isArray(o)&&e.type.length>0&&(o=e.type[0]),o||(o=ye(e));let a=ke[o];a&&(i=a(e,t,n,r))}return de(xe,r),{value:i,readOnly:e.readOnly,writeOnly:e.writeOnly,type:o}}function je(e){let t=0;if("boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function Se({min:e,max:t,omitTime:n,omitDate:r}){let i=function(e,t,n,r){var i=n?"":e.getUTCFullYear()+"-"+le(e.getUTCMonth()+1)+"-"+le(e.getUTCDate());return t||(i+="T"+le(e.getUTCHours())+":"+le(e.getUTCMinutes())+":"+le(e.getUTCSeconds())+(r?"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),i}(new Date("2019-08-24T14:15:22.123Z"),n,r,!1);return i.lengtht&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),i}function De(e,t){let n=pe("string",e);return t&&n.length>t&&(n=n.substring(0,t)),n}const Ae={email:function(){return"user@example.com"},"idn-email":function(){return"пошта@укр.нет"},password:function(e,t){let n="pa$$word";return e>n.length&&(n+="_",n+=pe("qwerty!@#$%^123456",e-n.length).substring(0,e-n.length)),n},"date-time":function(e,t){return Se({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return Se({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return Se({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:function(){return"example.com"},"idn-hostname":function(){return"приклад.укр"},iri:function(){return"http://example.com"},"iri-reference":function(){return"../словник"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,n){return s=function(e){var t=0;if(0==e.length)return t;for(var n=0;n>>5)|0;return r=i^((o|=0)<<17|o>>>15),i=o+(a|=0)|0,o=a+e|0,((a=r+e|0)>>>0)/4294967296},"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*c()%16|0;return("x"==e?t:3&t|8).toString(16)});var r,i,o,a,s,c},default:De,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};var ke={};const Ce={skipReadOnly:!1,maxSampleDepth:15};function Pe(e,t,n){let r=Object.assign({},Ce,t);return be={},xe=[],_e(e,r,n).value}function Te(e,t){ke[e]=t}Te("array",(function(e,t={},n,r){const i=r&&r.depth||1;let o=Math.min(null!=e.maxItems?e.maxItems:1/0,e.minItems||1);const a=e.items||e.contains;Array.isArray(a)&&(o=Math.max(o,a.length));let s=[];if(!a)return s;for(let r=0;r(e[t]=!0,e),{});Object.keys(e.properties).forEach(a=>{if(t.skipNonRequired&&!r.hasOwnProperty(a))return;const s=_e(e.properties[a],t,n,{propertyName:a,depth:o+1});t.skipReadOnly&&s.readOnly||t.skipWriteOnly&&s.writeOnly||(i[a]=s.value)})}if(e&&"object"==typeof e.additionalProperties){const r=e.additionalProperties["x-additionalPropertiesName"]||"property";i[String(r)+"1"]=_e(e.additionalProperties,t,n,{depth:o+1}).value,i[String(r)+"2"]=_e(e.additionalProperties,t,n,{depth:o+1}).value}return i})),Te("string",(function(e,t,n,r){let i=e.format||"default",o=Ae[i]||De,a=r&&r.propertyName;return o(0|e.minLength,e.maxLength,a)}));var $e,Oe=function(){function e(){}return e.generateExample=function(e,t){void 0===t&&(t={});try{return this.sanitizeExample(Pe(e,t))||""}catch(e){return""}},e.sanitizeExample=function(e){var t=this;return"object"==typeof e&&e&&!Array.isArray(e)?Object.entries(e).reduce((function(e,n){var r=n[0],i=n[1];return r.startsWith("x-parser-")||r.startsWith("x-schema-private-")||(e[r]=t.sanitizeExample(i)),e}),{}):e},e.getPayloadExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.payload}))){var n=t.flatMap((function(e){if(e.payload)return{name:e.name,summary:e.summary,example:e.payload}})).filter(Boolean);if(n.length>0)return n}var r=e.payload();if(r&&r.examples())return r.examples().map((function(e){return{example:e}}))},e.getHeadersExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.headers}))){var n=t.flatMap((function(e){if(e.headers)return{name:e.name,summary:e.summary,example:e.headers}})).filter(Boolean);if(n.length>0)return n}var r=e.headers();if(r&&r.examples())return r.examples().map((function(e){return{example:e}}))},e}(),Fe=function(e){var t=e.message;if(!t)return null;var n=t.payload(),r=t.headers();return i.a.createElement("div",{className:"bg-gray-800 px-8 py-4 mt-4 -mx-8 2xl:mx-0 2xl:px-4 2xl:rounded examples"},i.a.createElement("h4",{className:"text-white text-lg"},"Examples"),n&&i.a.createElement(Ie,{type:"Payload",schema:n,examples:Oe.getPayloadExamples(t)}),r&&i.a.createElement(Ie,{type:"Headers",schema:r,examples:Oe.getHeadersExamples(t)}))},Ie=function(e){var t=e.type,n=void 0===t?"Payload":t,o=e.schema,a=e.examples,s=void 0===a?[]:a,c=g(),u=Object(r.useState)(c&&c.expand&&c.expand.messageExamples||!1),l=u[0],p=u[1];return Object(r.useEffect)((function(){p(c&&c.expand&&c.expand.messageExamples||!1)}),[c.expand]),i.a.createElement("div",{className:"mt-4"},i.a.createElement("div",null,i.a.createElement(h,{onClick:function(){return p((function(e){return!e}))},expanded:l,chevronProps:{className:"fill-current text-gray-200"}},i.a.createElement("span",{className:"inline-block w-20 py-0.5 mr-1 text-gray-200 text-sm border text-center rounded focus:outline-none"},n))),i.a.createElement("div",{className:l?"block":"hidden"},s&&s.length>0?i.a.createElement("ul",null,s.map((function(e,t){return i.a.createElement("li",{className:"mt-4",key:t},i.a.createElement("h5",{className:"text-xs font-bold text-gray-500"},e.name?"#".concat(t+1," Example - ").concat(e.name):"#".concat(t+1," Example")),e.summary&&i.a.createElement("p",{className:"text-xs font-bold text-gray-500"},e.summary),i.a.createElement("div",{className:"mt-1"},i.a.createElement(ue,{snippet:Oe.sanitizeExample(e.example)})))}))):i.a.createElement("div",{className:"mt-4"},i.a.createElement(ue,{snippet:Oe.generateExample(o.json())}),i.a.createElement("h6",{className:"text-xs font-bold text-gray-600 italic mt-2"},"This example has been generated automatically."))))},Ne=function(e){var t=e.message,n=e.messageName,r=e.index,o=e.showExamples,s=void 0!==o&&o,c=g();if(!t)return null;var u="function"==typeof t.id&&t.id(),l=t.title(),p=t.summary(),f=t.payload(),h=t.headers(),d=t.correlationId(),m=t.contentType(),y=t.externalDocs(),v=m||y;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement("div",{className:"shadow rounded bg-gray-200 p-4 border"},i.a.createElement("div",null,void 0!==r&&i.a.createElement("span",{className:"text-gray-700 font-bold mr-2"},"#",r),l&&i.a.createElement("span",{className:"text-gray-700 mr-2"},l),i.a.createElement("span",{className:"border text-orange-600 rounded text-xs py-0 px-2"},t.uid())),p&&i.a.createElement("p",{className:"text-gray-600 text-sm"},p),v&&i.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},m&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(A,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"".concat(a.a,"/").concat(m)},i.a.createElement("span",null,m))),y&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(A,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:y.url()},i.a.createElement("span",null,a.c)))),u&&i.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},i.a.createElement("div",{className:"text-sm text-gray-700"},"Message ID",i.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},u))),d&&i.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},i.a.createElement("div",{className:"text-sm text-gray-700"},"Correlation ID",i.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},d.location())),d.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(M,null,d.description()))),t.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(M,null,t.description())),f&&i.a.createElement("div",{className:"mt-2",id:n?ae.getIdentifier("message-".concat(n,"-payload"),c):void 0},i.a.createElement(ee,{schemaName:"Payload",schema:f})),h&&i.a.createElement("div",{className:"mt-2",id:n?ae.getIdentifier("message-".concat(n,"-headers"),c):void 0},i.a.createElement(ee,{schemaName:"Headers",schema:h})),t.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(oe,{name:"Message specific information",bindings:t.bindings()})),i.a.createElement(Z,{item:t}),t.hasTags()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(z,{tags:t.tags()})))),s&&i.a.createElement("div",{className:"panel-item--right px-8"},i.a.createElement(Fe,{message:t})))},Re=n(9),Be=function(){return(Be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?i.a.createElement("div",{className:"mt-2 text-sm"},i.a.createElement("p",null,"Available only on servers:"),i.a.createElement("ul",{className:"flex flex-wrap leading-normal"},c.map((function(e){return i.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e},i.a.createElement("a",{href:"#".concat(ae.getIdentifier("server-"+e,t)),className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1 cursor-pointer"},i.a.createElement("span",{className:"underline"},e)))})))):null,l&&i.a.createElement("div",{className:"mt-2",id:ae.getIdentifier("operation-".concat(r,"-").concat(a,"-parameters"),t)},i.a.createElement(ee,{schemaName:"Parameters",schema:l,expanded:!0})),u&&i.a.createElement("div",{className:"mt-2",id:ae.getIdentifier("operation-".concat(r,"-").concat(a,"-security"),t)},i.a.createElement(H,{security:u,header:"Additional security requirements"})),s.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(oe,{name:"Channel specific information",bindings:s.bindings()})),i.a.createElement(Z,{name:"Channel Extensions",item:s}),o.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(oe,{name:"Operation specific information",bindings:o.bindings()})),i.a.createElement(Z,{name:"Operation Extensions",item:o}),o.hasTags()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(z,{tags:o.tags()}))),i.a.createElement("div",{className:"w-full mt-4",id:ae.getIdentifier("operation-".concat(r,"-").concat(a,"-message"),t)},o.hasMultipleMessages()?i.a.createElement("div",{className:"mt-2"},i.a.createElement("p",{className:"px-8"},"Accepts ",i.a.createElement("strong",null,"one of")," the following messages:"),i.a.createElement("ul",null,o.messages().map((function(e,t){return i.a.createElement("li",{className:"mt-4",key:t},i.a.createElement(Ne,{message:e,index:t,showExamples:!0}))})))):i.a.createElement("div",{className:"mt-2"},i.a.createElement("p",{className:"px-8"},"Accepts the following message:"),i.a.createElement("div",{className:"mt-2"},i.a.createElement(Ne,{message:o.message(0),showExamples:!0})))))},Le=function(e){var t=e.type,n=void 0===t?Re.a.PUBLISH:t,r=e.operation,o=e.channelName,s=e.channel,c=g(),u=r.summary(),l=r.externalDocs(),p=r.id();return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mb-4"},i.a.createElement("h3",null,i.a.createElement("span",{className:"font-mono border uppercase p-1 rounded mr-2 ".concat(n===Re.a.PUBLISH?"border-blue-600 text-blue-500":"border-green-600 text-green-600"),title:n},n===Re.a.PUBLISH?c.publishLabel||a.f:c.subscribeLabel||a.i)," ",i.a.createElement("span",{className:"font-mono text-base"},o))),s.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(M,null,s.description())),u&&i.a.createElement("p",{className:"text-gray-600 text-sm mt-2"},u),r.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(M,null,r.description())),l&&i.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},l&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(A,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:l.url()},i.a.createElement("span",null,a.c)))),p&&i.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},i.a.createElement("div",{className:"text-sm text-gray-700"},"Operation ID",i.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},p))))},ze=function(){var e=m().channels(),t=g();if(!Object.keys(e).length)return null;var n=[];return Object.entries(e).forEach((function(e){var r=e[0],o=e[1];o.hasPublish()&&n.push(i.a.createElement("li",{className:"mb-12",key:"pub-".concat(r),id:ae.getIdentifier("operation-".concat(Re.a.PUBLISH,"-").concat(r),t)},i.a.createElement(Me,{type:Re.a.PUBLISH,operation:o.publish(),channelName:r,channel:o}))),o.hasSubscribe()&&n.push(i.a.createElement("li",{className:"mb-12",key:"sub-".concat(r),id:ae.getIdentifier("operation-".concat(Re.a.SUBSCRIBE,"-").concat(r),t)},i.a.createElement(Me,{type:Re.a.SUBSCRIBE,operation:o.subscribe(),channelName:r,channel:o})))})),i.a.createElement("section",{id:"".concat(ae.getIdentifier("operations",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},a.e),i.a.createElement("ul",null,n))},Ue=function(){var e=m(),t=g(),n=e.hasComponents()&&e.components().messages();return n&&0!==Object.keys(n).length?i.a.createElement("section",{id:"".concat(ae.getIdentifier("messages",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},a.d),i.a.createElement("ul",null,Object.entries(n).map((function(e,n){var r=e[0],o=e[1];return i.a.createElement("li",{className:"mb-4",key:r,id:ae.getIdentifier("message-".concat(r),t)},i.a.createElement(Ne,{messageName:r,message:o,index:n+1,key:r}))})))):null},qe=function(e){var t=e.schemaName,n=e.schema;return n?i.a.createElement("div",null,i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement("div",{className:"shadow rounded px-4 py-2 border bg-gray-200"},i.a.createElement(ee,{schemaName:t,schema:n}))),i.a.createElement("div",{className:"w-full mt-4"})):null},He=function(){var e=m(),t=g(),n=e.hasComponents()&&e.components().schemas();return n&&0!==Object.keys(n).length?i.a.createElement("section",{id:"".concat(ae.getIdentifier("schemas",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},a.g),i.a.createElement("ul",null,Object.entries(n).map((function(e){var n=e[0],r=e[1];return i.a.createElement("li",{className:"mb-4",key:n,id:ae.getIdentifier("schema-".concat(n),t)},i.a.createElement(qe,{schemaName:n,schema:r}))})))):null},Ve=function(e){var t=e.error;if(!t)return null;var n,r=t.title,o=t.validationErrors;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center p-8"},i.a.createElement("section",{className:"shadow rounded bg-gray-200 border-red-500 border-l-8"},i.a.createElement("h2",{className:"p-2"},r?"".concat(a.b,": ").concat(r):a.b),o&&o.length?i.a.createElement("div",{className:"bg-gray-800 text-white text-xs p-2"},i.a.createElement("pre",null,(n=o)?n.map((function(e,t){return e&&e.title&&e.location?i.a.createElement("div",{key:t,className:"flex"},i.a.createElement("span",null,"".concat(e.location.startLine,".")),i.a.createElement("code",{className:"whitespace-pre-wrap break-all ml-2"},e.title)):null})).filter(Boolean):null)):null)),i.a.createElement("div",{className:"panel-item--right"}))},Je=function(e){var t=e.asyncapi,n=e.config,o=e.error,a=void 0===o?null:o,s=Object(r.useState)("container:xl"),c=s[0],l=s[1],p=u({onResize:function(e){var t=e.width;requestAnimationFrame((function(){if(void 0!==t){var e=t<=1280?"container:xl":"container:base";e!==c&&l(e)}}))}}).ref,f=n.show||{};return i.a.createElement(y.Provider,{value:n},i.a.createElement(d.Provider,{value:t},i.a.createElement("section",{className:"aui-root"},i.a.createElement("div",{className:"".concat(c," relative md:flex bg-white leading-normal"),id:n.schemaID||void 0,ref:p},f.sidebar&&i.a.createElement(x,null),i.a.createElement("div",{className:"panel--center relative py-8 flex-1"},i.a.createElement("div",{className:"relative z-10"},f.errors&&a&&i.a.createElement(Ve,{error:a}),f.info&&i.a.createElement(U,null),f.servers&&i.a.createElement(ce,null),f.operations&&i.a.createElement(ze,null),f.messages&&i.a.createElement(Ue,null),f.schemas&&i.a.createElement(He,null)),i.a.createElement("div",{className:"panel--right absolute top-0 right-0 h-full bg-gray-800"}))))))},Ke=($e=function(e,t){return($e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$e(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xe=function(){return(Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]new c(e)):null}},u,l,p,f)},function(e,t,n){const{mix:r}=n(2),i=n(3),o=n(7),a=n(4);e.exports=r(class extends i{allowedValues(){return this._json.enum}allows(e){return void 0===this._json.enum||this._json.enum.includes(e)}hasAllowedValues(){return void 0!==this._json.enum}defaultValue(){return this._json.default}hasDefaultValue(){return void 0!==this._json.default}examples(){return this._json.examples}},o,a)},function(e,t,n){const{createMapOfType:r,getMapValueOfType:i,mix:o}=n(2),a=n(3),s=n(44),c=n(86),u=n(90),l=n(7),p=n(21),f=n(4);e.exports=o(class extends a{parameters(){return r(this._json.parameters,s)}parameter(e){return i(this._json.parameters,e,s)}hasParameters(){return!!this._json.parameters}hasServers(){return!!this._json.servers}servers(){return this._json.servers?this._json.servers:[]}server(e){return this._json.servers?"number"!=typeof e||e>this._json.servers.length-1?null:this._json.servers[+e]:null}publish(){return this._json.publish?new c(this._json.publish):null}subscribe(){return this._json.subscribe?new u(this._json.subscribe):null}hasPublish(){return!!this._json.publish}hasSubscribe(){return!!this._json.subscribe}},l,p,f)},function(e,t,n){const{mix:r}=n(2),i=n(3),o=n(11),a=n(7),s=n(4);e.exports=r(class extends i{location(){return this._json.location}schema(){return this._json.schema?new o(this._json.schema):null}},a,s)},function(e,t,n){const{mix:r}=n(2),i=n(3),o=n(7),a=n(22),s=n(17),c=n(21),u=n(4);e.exports=r(class extends i{id(){return this._json.operationId}summary(){return this._json.summary}},o,a,s,c,u)},function(e,t,n){(function(t){const r=n(47),i=n(48),o=n(11);e.exports=class extends i{uid(){return this.id()||this.name()||this.ext("x-parser-message-name")||t.from(JSON.stringify(this._json)).toString("base64")}payload(){return this._json.payload?new o(this._json.payload):null}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new r(e)):[]}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}originalPayload(){return this._json["x-parser-original-payload"]||this.payload()}originalSchemaFormat(){return this._json["x-parser-original-schema-format"]||this.schemaFormat()}}}).call(this,n(6).Buffer)},function(e,t,n){const r=n(48);e.exports=class extends r{}},function(e,t,n){const{getMapValueOfType:r,mix:i}=n(2),o=n(3),a=n(11),s=n(49),c=n(7),u=n(17),l=n(22),p=n(21),f=n(4);e.exports=i(class extends o{headers(){return this._json.headers?new a(this._json.headers):null}header(e){return this._json.headers?r(this._json.headers.properties,e,a):null}id(){return this._json.messageId}correlationId(){return this._json.correlationId?new s(this._json.correlationId):null}schemaFormat(){return this._json.schemaFormat}contentType(){return this._json.contentType}name(){return this._json.name}title(){return this._json.title}summary(){return this._json.summary}examples(){return this._json.examples}},c,l,u,p,f)},function(e,t,n){const{mix:r}=n(2),i=n(3),o=n(7),a=n(4);e.exports=r(class extends i{location(){return this._json.location}},a,o)},function(e,t,n){const r=n(45);e.exports=class extends r{}},function(e,t){const n=Object.freeze({NEW_SCHEMA:"NEW_SCHEMA",END_SCHEMA:"END_SCHEMA"}),r=Object.freeze({parameters:"parameters",payloads:"payloads",headers:"headers",components:"components",objects:"objects",arrays:"arrays",oneOfs:"oneOfs",allOfs:"allOfs",anyOfs:"anyOfs",nots:"nots",propertyNames:"propertyNames",patternProperties:"patternProperties",contains:"contains",ifs:"ifs",thenes:"thenes",elses:"elses",dependencies:"dependencies",definitions:"definitions"});function i(e,t,o){if(!e)return;const{callback:a,schemaTypesToIterate:s,seenSchemas:c}=o,u=e.json();if(c.has(u))return;c.add(u);let l=e.type()||[];Array.isArray(l)||(l=[l]),!s.includes(r.objects)&&l.includes("object")||!s.includes(r.arrays)&&l.includes("array")||!1!==a(e,t,n.NEW_SCHEMA)&&(s.includes(r.objects)&&l.includes("object")&&function(e,t){Object.entries(e.properties()||{}).forEach(([e,n])=>{i(n,e,t)});const n=e.additionalProperties();"object"==typeof n&&i(n,null,t);const o=t.schemaTypesToIterate;o.includes(r.propertyNames)&&e.propertyNames()&&i(e.propertyNames(),null,t);o.includes(r.patternProperties)&&Object.entries(e.patternProperties()||{}).forEach(([e,n])=>{i(n,e,t)})}(e,o),s.includes(r.arrays)&&l.includes("array")&&function(e,t){const n=e.items();n&&(Array.isArray(n)?n.forEach((e,n)=>{i(e,n,t)}):i(n,null,t));const o=e.additionalItems();"object"==typeof o&&i(o,null,t);t.schemaTypesToIterate.includes(r.contains)&&e.contains()&&i(e.contains(),null,t)}(e,o),s.includes(r.oneOfs)&&(e.oneOf()||[]).forEach((e,t)=>{i(e,t,o)}),s.includes(r.anyOfs)&&(e.anyOf()||[]).forEach((e,t)=>{i(e,t,o)}),s.includes(r.allOfs)&&(e.allOf()||[]).forEach((e,t)=>{i(e,t,o)}),s.includes(r.nots)&&e.not()&&i(e.not(),null,o),s.includes(r.ifs)&&e.if()&&i(e.if(),null,o),s.includes(r.thenes)&&e.then()&&i(e.then(),null,o),s.includes(r.elses)&&e.else()&&i(e.else(),null,o),s.includes(r.dependencies)&&Object.entries(e.dependencies()||{}).forEach(([e,t])=>{t&&!Array.isArray(t)&&i(t,e,o)}),s.includes(r.definitions)&&Object.entries(e.definitions()||{}).forEach(([e,t])=>{i(t,e,o)}),a(e,t,n.END_SCHEMA),c.delete(u))}function o(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.headers)&&i(e.headers(),null,t),n.includes(r.payloads)&&i(e.payload(),null,t)}e.exports={SchemaIteratorCallbackType:n,SchemaTypesToIterate:r,traverseAsyncApiDocument:function(e,t,n){n||(n=Object.values(r));const a={callback:t,schemaTypesToIterate:n,seenSchemas:new Set};if(e.hasChannels()&&Object.values(e.channels()).forEach(e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.parameters)&&Object.values(e.parameters()||{}).forEach(e=>{i(e.schema(),null,t)});e.hasPublish()&&e.publish().messages().forEach(e=>{o(e,t)});e.hasSubscribe()&&e.subscribe().messages().forEach(e=>{o(e,t)})}(e,a)}),n.includes(r.components)&&e.hasComponents()){const t=e.components();Object.values(t.messages()||{}).forEach(e=>{o(e,a)}),Object.values(t.schemas()||{}).forEach(e=>{i(e,null,a)}),n.includes(r.parameters)&&Object.values(t.parameters()||{}).forEach(e=>{i(e.schema(),null,a)}),Object.values(t.messageTraits()||{}).forEach(e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.headers)&&i(e.headers(),null,t)}(e,a)})}}}},function(e,t,n){ +/*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */ +e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,o=Object.freeze,a=Object.seal,s=Object.create,c="undefined"!=typeof Reflect&&Reflect,u=c.apply,l=c.construct;u||(u=function(e,t,n){return e.apply(t,n)}),o||(o=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),i=1;i/gm),M=a(/^data-[\-\w.\u00B7-\uFFFF]/),L=a(/^aria-[\-\w]+$/),z=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H=a(/^html$/i),V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function J(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:K(),n=function(t){return e(t)};if(n.version="2.3.6",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,c=t.Node,u=t.Element,l=t.NodeFilter,p=t.NamedNodeMap,E=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,W=t.HTMLFormElement,G=t.DOMParser,Y=t.trustedTypes,Z=u.prototype,Q=S(Z,"cloneNode"),ee=S(Z,"nextSibling"),te=S(Z,"childNodes"),ne=S(Z,"parentNode");if("function"==typeof s){var re=i.createElement("template");re.content&&re.content.ownerDocument&&(i=re.content.ownerDocument)}var ie=X(Y,r),oe=ie?ie.createHTML(""):"",ae=i,se=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,pe=r.importNode,fe={};try{fe=j(i).documentMode?i.documentMode:{}}catch(e){}var he={};n.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==fe;var de=R,me=B,ye=M,ge=L,ve=U,be=q,xe=z,we=null,Ee=_({},[].concat(J(D),J(A),J(k),J(P),J($))),_e=null,je=_({},[].concat(J(O),J(F),J(I),J(N))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Ae=null,ke=!0,Ce=!0,Pe=!1,Te=!1,$e=!1,Oe=!1,Fe=!1,Ie=!1,Ne=!1,Re=!1,Be=!0,Me=!0,Le=!1,ze={},Ue=null,qe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),He=null,Ve=_({},["audio","video","img","source","image","track"]),Je=null,Ke=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1999/xhtml",Ye=Ge,Ze=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,it=i.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},at=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":V(e))||(e={}),e=j(e),we="ALLOWED_TAGS"in e?_({},e.ALLOWED_TAGS):Ee,_e="ALLOWED_ATTR"in e?_({},e.ALLOWED_ATTR):je,Je="ADD_URI_SAFE_ATTR"in e?_(j(Ke),e.ADD_URI_SAFE_ATTR):Ke,He="ADD_DATA_URI_TAGS"in e?_(j(Ve),e.ADD_DATA_URI_TAGS):Ve,Ue="FORBID_CONTENTS"in e?_({},e.FORBID_CONTENTS):qe,De="FORBID_TAGS"in e?_({},e.FORBID_TAGS):{},Ae="FORBID_ATTR"in e?_({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=e.SAFE_FOR_TEMPLATES||!1,$e=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,Me=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||xe,Ye=e.NAMESPACE||Ge,e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe=Qe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:m,Te&&(Ce=!1),Ne&&(Ie=!0),ze&&(we=_({},[].concat(J($))),_e=[],!0===ze.html&&(_(we,D),_(_e,O)),!0===ze.svg&&(_(we,A),_(_e,F),_(_e,N)),!0===ze.svgFilters&&(_(we,k),_(_e,F),_(_e,N)),!0===ze.mathMl&&(_(we,P),_(_e,I),_(_e,N))),e.ADD_TAGS&&(we===Ee&&(we=j(we)),_(we,e.ADD_TAGS)),e.ADD_ATTR&&(_e===je&&(_e=j(_e)),_(_e,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&_(Je,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Ue===qe&&(Ue=j(Ue)),_(Ue,e.FORBID_CONTENTS)),Me&&(we["#text"]=!0),$e&&_(we,["html","head","body"]),we.table&&(_(we,["tbody"]),delete De.tbody),o&&o(e),rt=e)},st=_({},["mi","mo","mn","ms","mtext"]),ct=_({},["foreignobject","desc","title","annotation-xml"]),ut=_({},A);_(ut,k),_(ut,C);var lt=_({},P);_(lt,T);var pt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ge,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===We)return t.namespaceURI===Ge?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(ut[n]);if(e.namespaceURI===Xe)return t.namespaceURI===Ge?"math"===n:t.namespaceURI===We?"math"===n&&ct[r]:Boolean(lt[n]);if(e.namespaceURI===Ge){if(t.namespaceURI===We&&!ct[r])return!1;if(t.namespaceURI===Xe&&!st[r])return!1;var i=_({},["title","style","font","a","script"]);return!lt[n]&&(i[n]||!ut[n])}return!1},ft=function(e){d(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},ht=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!_e[e])if(Ie||Ne)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){var t=void 0,n=void 0;if(Fe)e=""+e;else{var r=y(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Qe&&(e=''+e+"");var o=ie?ie.createHTML(e):e;if(Ye===Ge)try{t=(new G).parseFromString(o,Qe)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Ye,"template",null);try{t.documentElement.innerHTML=Ze?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Ye===Ge?le.call(t,$e?"html":"body")[0]:$e?t.documentElement:a},mt=function(e){return ce.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof E)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},gt=function(e){return"object"===(void 0===c?"undefined":V(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":V(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},vt=function(e,t,r){he[e]&&f(he[e],(function(e){e.call(n,t,r,rt)}))},bt=function(e){var t=void 0;if(vt("beforeSanitizeElements",e,null),yt(e))return ft(e),!0;if(y(e.nodeName,/[\u0080-\uFFFF]/))return ft(e),!0;var r=nt(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&x(/