From d9c65eb2b9298e6a4b10cd534fa661a7b32baa4e Mon Sep 17 00:00:00 2001 From: "Philip Schlesinger @ Cryoport" Date: Fri, 23 Aug 2024 17:59:30 -0700 Subject: [PATCH 01/15] Broken; working on migrating START HERE NEXT: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-migration.html#intellij-extension --- .gitignore | 3 +- .idea/kotlinScripting.xml | 9 -- .idea/kotlinc.xml | 4 +- .idea/misc.xml | 4 +- .sdkmanrc | 2 +- CHANGELOG.md | 32 +++++ build.gradle.kts | 150 +++++++++-------------- gradle/wrapper/gradle-wrapper.properties | 2 +- 8 files changed, 100 insertions(+), 106 deletions(-) delete mode 100644 .idea/kotlinScripting.xml diff --git a/.gitignore b/.gitignore index 467124b..df6ab63 100644 --- a/.gitignore +++ b/.gitignore @@ -126,4 +126,5 @@ gradle-app.setting # End of https://www.toptal.com/developers/gitignore/api/gradle,intellij -.DS_Store \ No newline at end of file +.DS_Store +/.idea diff --git a/.idea/kotlinScripting.xml b/.idea/kotlinScripting.xml deleted file mode 100644 index e56386c..0000000 --- a/.idea/kotlinScripting.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - 2147483647 - true - - - \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 46c6ce0..d4b7acc 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 5180e99..0248914 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,10 +4,10 @@ - + - + \ No newline at end of file diff --git a/.sdkmanrc b/.sdkmanrc index 489632b..fcebd7d 100644 --- a/.sdkmanrc +++ b/.sdkmanrc @@ -1,3 +1,3 @@ # Enable auto-env through the sdkman_auto_env config # Add key=value pairs of SDKs to use below -java=17.0.5-tem +java=21.0.4-tem diff --git a/CHANGELOG.md b/CHANGELOG.md index aacc14c..de268b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## 2.6.0+jre21 +published to: +- [JetBrains marketplace](https://plugins.jetbrains.com/plugin/15673-asyncapi/versions/stable/520779) +- [GitHub](https://github.com/asyncapi/jasyncapi-idea-plugin/releases/tag/2.5.0%2Bjre17) + +### Added + +- IDEA 2024.2 + +### Fixed + +- No fixes included + +### Changed + +- bump actions/checkout from 3 to 4 +- bump actions/setup-node from 3 to 4 +- bump actions/stale from 5.2.0 to 9.0.0 +- bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.3 +- bump com.fasterxml.jackson.core:jackson-core from 2.15.0 to 2.17.2 +- bump com.fasterxml.jackson.dataformat:jackson-dataformat-yaml from 2.15.0 to 2.17.2 +- bump com.fasterxml.jackson.module:jackson-module-kotlin from 2.15.0 to 2.17.2 +- bump hmarr/auto-approve-action from 3.2.1 to 4.0.0 +- bump jvm from 1.9.23 to 2.0.20 +- bump marocchino/sticky-pull-request-comment from 2.5.0 to 2.9.0 +- bump org.jetbrains.intellij from 1.17.3 to 1.17.4 +- bump org.junit.jupiter:junit-jupiter-api from 5.9.2 to 5.11.0 +- bump org.junit.jupiter:junit-jupiter-engine from 5.9.2 to 5.11.0 +- bump org.junit.vintage:junit-vintage-engine from 5.9.2 to 5.11.0 +- bump pascalgn/automerge-action from 0.15.6 to 0.16.3 + + ## 2.5.0+jre17 published to: - [JetBrains marketplace](https://plugins.jetbrains.com/plugin/15673-asyncapi/versions/stable/520779) diff --git a/build.gradle.kts b/build.gradle.kts index dda408d..91fd3d9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,11 +1,12 @@ plugins { - id("org.jetbrains.intellij") version "1.17.4" + id("org.jetbrains.intellij.platform") version "2.0.1" + id("org.jetbrains.intellij.platform.migration") version "2.0.1" java kotlin("jvm") version "2.0.20" } group = "com.asyncapi.plugin.idea" -version = "2.5.0+jre17" +version = "2.6.0+jre21" repositories { mavenCentral() @@ -23,116 +24,85 @@ dependencies { // See https://github.com/JetBrains/gradle-intellij-plugin/ intellij { - version.set("2024.1") + version.set("2024.2") plugins.set(listOf("yaml")) } tasks.getByName("patchPluginXml") { sinceBuild.set("223") - untilBuild.set("241.*") + untilBuild.set("242.*") changeNotes.set("""

Added

    -
  • IDEA 2024.1
  • +
  • IDEA 2024.2

Fixed

    -
  • Incorrect validation of Multi Format Schema and bindings
  • +
  • No fixes this release version

Changed

    -
  • 2.0.0 schema validation and completion:
      -
    • Updated allowed extension name: ^x-[\w\d\-\_]+${'$'} was changed to ^x-[\w\d\.\x2d_]+${'$'}
    • -
    • OpenAPI schema v3
    • -
    • Added schemaFormat to messages to recognize properly non AsyncAPI Schemas
    • -
    • Was updated JsonSchema Draft 07
    • -
    -
  • -
  • 2.1.0 schema validation and completion:
      -
    • OpenAPI schema v3
    • -
    • Added schemaFormat to messages to recognize properly non AsyncAPI Schemas
    • -
    • Was updated JsonSchema Draft 07
    • -
    -
  • -
  • 2.2.0 schema validation and completion:
      -
    • OpenAPI schema v3
    • -
    • Added schemaFormat to messages to recognize properly non AsyncAPI Schemas
    • -
    • Was updated JsonSchema Draft 07
    • -
    -
  • -
  • 2.3.0 schema validation and completion:
      -
    • OpenAPI schema v3
    • -
    • Added schemaFormat to messages to recognize properly non AsyncAPI Schemas
    • -
    • Was updated JsonSchema Draft 07
    • -
    -
  • -
  • 2.4.0 schema validation and completion:
      -
    • OpenAPI schema v3
    • -
    • Added schemaFormat to messages to recognize properly non AsyncAPI Schemas
    • -
    • Was updated JsonSchema Draft 07
    • -
    -
  • -
  • 2.5.0 schema validation and completion:
      -
    • OpenAPI schema v3
    • -
    • Added schemaFormat to messages to recognize properly non AsyncAPI Schemas
    • -
    • Was updated JsonSchema Draft 07
    • -
    -
  • -
  • 3.0.0 schema validation and completion:
      -
    • Bindings:
        -
      • Solace:
          -
        • server binding 0.4.0
        • -
        • operation binding 0.4.0
        • -
        -
      • -
      • HTTP:
          -
        • message binding 0.3.0
        • -
        • operation binding 0.3.0
        • -
        -
      • -
      -
    • -
    -
  • +
  • Gradle now 8.10
  • +
  • Plugin verifier now 1.373
  • +
  • Now using Github Dependabot
  • +
  • bump actions/checkout from 3 to 4
  • +
  • bump actions/setup-node from 3 to 4
  • +
  • bump actions/stale from 5.2.0 to 9.0.0
  • +
  • bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.3
  • +
  • bump com.fasterxml.jackson.core:jackson-core from 2.15.0 to 2.17.2
  • +
  • bump com.fasterxml.jackson.dataformat:jackson-dataformat-yaml from 2.15.0 to 2.17.2
  • +
  • bump com.fasterxml.jackson.module:jackson-module-kotlin from 2.15.0 to 2.17.2
  • +
  • bump hmarr/auto-approve-action from 3.2.1 to 4.0.0
  • +
  • bump jvm from 1.9.23 to 2.0.20
  • +
  • bump marocchino/sticky-pull-request-comment from 2.5.0 to 2.9.0
  • +
  • bump org.jetbrains.intellij from 1.17.3 to 1.17.4
  • +
  • bump org.junit.jupiter:junit-jupiter-api from 5.9.2 to 5.11.0
  • +
  • bump org.junit.jupiter:junit-jupiter-engine from 5.9.2 to 5.11.0
  • +
  • bump org.junit.vintage:junit-vintage-engine from 5.9.2 to 5.11.0
  • +
  • bump pascalgn/automerge-action from 0.15.6 to 0.16.3
- """.trimIndent()) + """.trimIndent() + ) } tasks.getByName("runPluginVerifier") { - ideVersions.set(listOf( - "2022.3", - "2022.3.1", - "2022.3.2", - "2022.3.3", - "2023.1", - "2023.1.1", - "2023.1.2", - "2023.1.3", - "2023.1.4", - "2023.1.5", - "2023.2", - "2023.2.1", - "2023.2.2", - "2023.2.3", - "2023.2.4", - "2023.2.5", - "2023.3", - "2023.3.1", - "2023.3.2", - "2023.3.3", - "2023.3.4", - "2023.3.5", - "2023.3.6", - "2024.1" - )) - verifierVersion.set("1.365") + ideVersions.set( + listOf( + "2022.3", + "2022.3.1", + "2022.3.2", + "2022.3.3", + "2023.1", + "2023.1.1", + "2023.1.2", + "2023.1.3", + "2023.1.4", + "2023.1.5", + "2023.2", + "2023.2.1", + "2023.2.2", + "2023.2.3", + "2023.2.4", + "2023.2.5", + "2023.3", + "2023.3.1", + "2023.3.2", + "2023.3.3", + "2023.3.4", + "2023.3.5", + "2023.3.6", + "2024.1", + "2024.2" + ) + ) + verifierVersion.set("1.373") } tasks { compileKotlin { - kotlinOptions.jvmTarget = "17" +// apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0) } compileTestKotlin { - kotlinOptions.jvmTarget = "17" +// apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0) } test { useJUnitPlatform() @@ -141,6 +111,6 @@ tasks { kotlin { jvmToolchain { - this.languageVersion.set(JavaLanguageVersion.of(17)) + this.languageVersion.set(JavaLanguageVersion.of(21)) } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index b82aa23..9355b41 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME From 3c4c55aa76b2a002e03f6ddbbf01b9db30775763 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Tue, 27 Aug 2024 13:57:48 +0400 Subject: [PATCH 02/15] build: rollback to java 17 and migrate intellij block --- ....jetbrains.plugins.yaml-2024.2.0.2+665.xml | 10 ++ .sdkmanrc | 2 +- build.gradle.kts | 169 ++++++++++-------- 3 files changed, 104 insertions(+), 77 deletions(-) create mode 100644 .intellijPlatform/localPlatformArtifacts/bundledPlugin-org.jetbrains.plugins.yaml-2024.2.0.2+665.xml diff --git a/.intellijPlatform/localPlatformArtifacts/bundledPlugin-org.jetbrains.plugins.yaml-2024.2.0.2+665.xml b/.intellijPlatform/localPlatformArtifacts/bundledPlugin-org.jetbrains.plugins.yaml-2024.2.0.2+665.xml new file mode 100644 index 0000000..77e3488 --- /dev/null +++ b/.intellijPlatform/localPlatformArtifacts/bundledPlugin-org.jetbrains.plugins.yaml-2024.2.0.2+665.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.sdkmanrc b/.sdkmanrc index fcebd7d..489632b 100644 --- a/.sdkmanrc +++ b/.sdkmanrc @@ -1,3 +1,3 @@ # Enable auto-env through the sdkman_auto_env config # Add key=value pairs of SDKs to use below -java=21.0.4-tem +java=17.0.5-tem diff --git a/build.gradle.kts b/build.gradle.kts index 91fd3d9..691e445 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.intellij.platform.gradle.TestFrameworkType + plugins { id("org.jetbrains.intellij.platform") version "2.0.1" id("org.jetbrains.intellij.platform.migration") version "2.0.1" @@ -6,13 +8,29 @@ plugins { } group = "com.asyncapi.plugin.idea" -version = "2.6.0+jre21" +version = "2.6.0+jre17" repositories { mavenCentral() + intellijPlatform { + defaultRepositories() + } } dependencies { + intellijPlatform { + intellijIdeaCommunity("2024.2.0.2", useInstaller = false) + + // Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins. + bundledPlugins(listOf( + "org.jetbrains.plugins.yaml" + )) + + instrumentationTools() + pluginVerifier() + testFramework(TestFrameworkType.Platform) + } + implementation("com.fasterxml.jackson.core:jackson-core:2.17.2") implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.2") implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.17.2") @@ -22,87 +40,86 @@ dependencies { testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.11.0") } -// See https://github.com/JetBrains/gradle-intellij-plugin/ -intellij { - version.set("2024.2") - plugins.set(listOf("yaml")) -} -tasks.getByName("patchPluginXml") { - sinceBuild.set("223") - untilBuild.set("242.*") - changeNotes.set(""" -

Added

-
    -
  • IDEA 2024.2
  • -
-

Fixed

-
    -
  • No fixes this release version
  • -
-

Changed

-
    -
  • Gradle now 8.10
  • -
  • Plugin verifier now 1.373
  • -
  • Now using Github Dependabot
  • -
  • bump actions/checkout from 3 to 4
  • -
  • bump actions/setup-node from 3 to 4
  • -
  • bump actions/stale from 5.2.0 to 9.0.0
  • -
  • bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.3
  • -
  • bump com.fasterxml.jackson.core:jackson-core from 2.15.0 to 2.17.2
  • -
  • bump com.fasterxml.jackson.dataformat:jackson-dataformat-yaml from 2.15.0 to 2.17.2
  • -
  • bump com.fasterxml.jackson.module:jackson-module-kotlin from 2.15.0 to 2.17.2
  • -
  • bump hmarr/auto-approve-action from 3.2.1 to 4.0.0
  • -
  • bump jvm from 1.9.23 to 2.0.20
  • -
  • bump marocchino/sticky-pull-request-comment from 2.5.0 to 2.9.0
  • -
  • bump org.jetbrains.intellij from 1.17.3 to 1.17.4
  • -
  • bump org.junit.jupiter:junit-jupiter-api from 5.9.2 to 5.11.0
  • -
  • bump org.junit.jupiter:junit-jupiter-engine from 5.9.2 to 5.11.0
  • -
  • bump org.junit.vintage:junit-vintage-engine from 5.9.2 to 5.11.0
  • -
  • bump pascalgn/automerge-action from 0.15.6 to 0.16.3
  • -
- """.trimIndent() - ) +// See https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html +intellijPlatform { + instrumentCode = true } +//tasks.getByName("patchPluginXml") { +// sinceBuild.set("223") +// untilBuild.set("242.*") +// changeNotes.set(""" +//

Added

+//
    +//
  • IDEA 2024.2
  • +//
+//

Fixed

+//
    +//
  • No fixes this release version
  • +//
+//

Changed

+//
    +//
  • Gradle now 8.10
  • +//
  • Plugin verifier now 1.373
  • +//
  • Now using Github Dependabot
  • +//
  • bump actions/checkout from 3 to 4
  • +//
  • bump actions/setup-node from 3 to 4
  • +//
  • bump actions/stale from 5.2.0 to 9.0.0
  • +//
  • bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.3
  • +//
  • bump com.fasterxml.jackson.core:jackson-core from 2.15.0 to 2.17.2
  • +//
  • bump com.fasterxml.jackson.dataformat:jackson-dataformat-yaml from 2.15.0 to 2.17.2
  • +//
  • bump com.fasterxml.jackson.module:jackson-module-kotlin from 2.15.0 to 2.17.2
  • +//
  • bump hmarr/auto-approve-action from 3.2.1 to 4.0.0
  • +//
  • bump jvm from 1.9.23 to 2.0.20
  • +//
  • bump marocchino/sticky-pull-request-comment from 2.5.0 to 2.9.0
  • +//
  • bump org.jetbrains.intellij from 1.17.3 to 1.17.4
  • +//
  • bump org.junit.jupiter:junit-jupiter-api from 5.9.2 to 5.11.0
  • +//
  • bump org.junit.jupiter:junit-jupiter-engine from 5.9.2 to 5.11.0
  • +//
  • bump org.junit.vintage:junit-vintage-engine from 5.9.2 to 5.11.0
  • +//
  • bump pascalgn/automerge-action from 0.15.6 to 0.16.3
  • +//
+// """.trimIndent() +// ) +//} -tasks.getByName("runPluginVerifier") { - ideVersions.set( - listOf( - "2022.3", - "2022.3.1", - "2022.3.2", - "2022.3.3", - "2023.1", - "2023.1.1", - "2023.1.2", - "2023.1.3", - "2023.1.4", - "2023.1.5", - "2023.2", - "2023.2.1", - "2023.2.2", - "2023.2.3", - "2023.2.4", - "2023.2.5", - "2023.3", - "2023.3.1", - "2023.3.2", - "2023.3.3", - "2023.3.4", - "2023.3.5", - "2023.3.6", - "2024.1", - "2024.2" - ) - ) - verifierVersion.set("1.373") -} +//tasks.getByName("runPluginVerifier") { +// ideVersions.set( +// listOf( +// "2022.3", +// "2022.3.1", +// "2022.3.2", +// "2022.3.3", +// "2023.1", +// "2023.1.1", +// "2023.1.2", +// "2023.1.3", +// "2023.1.4", +// "2023.1.5", +// "2023.2", +// "2023.2.1", +// "2023.2.2", +// "2023.2.3", +// "2023.2.4", +// "2023.2.5", +// "2023.3", +// "2023.3.1", +// "2023.3.2", +// "2023.3.3", +// "2023.3.4", +// "2023.3.5", +// "2023.3.6", +// "2024.1", +// "2024.2" +// ) +// ) +// verifierVersion.set("1.373") +//} tasks { compileKotlin { -// apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0) + kotlinOptions.jvmTarget = "17" } compileTestKotlin { -// apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0) + kotlinOptions.jvmTarget = "17" } test { useJUnitPlatform() @@ -111,6 +128,6 @@ tasks { kotlin { jvmToolchain { - this.languageVersion.set(JavaLanguageVersion.of(21)) + this.languageVersion.set(JavaLanguageVersion.of(17)) } } From bd718cd1ca6b206fe5e3b5e234ef0687190f87e6 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Tue, 27 Aug 2024 13:59:22 +0400 Subject: [PATCH 03/15] build(plugin.xml): remove applicationService for services annotated with '@Service' Service class annotated with '@Service' must not be registered in the 'plugin. xml' file --- .idea/misc.xml | 2 +- src/main/resources/META-INF/plugin.xml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 0248914..653f88b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index a03342b..18fce28 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -27,12 +27,6 @@ - - - - - - From 53de3bcf0e8285849ce21ee7f5e591e4d849af8d Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Tue, 27 Aug 2024 14:20:51 +0400 Subject: [PATCH 04/15] build(plugin.xml): migrate patchPluginXml --- build.gradle.kts | 56 +++++++------------- src/main/resources/META-INF/description.html | 13 +++++ src/main/resources/META-INF/plugin.xml | 16 ------ 3 files changed, 33 insertions(+), 52 deletions(-) create mode 100644 src/main/resources/META-INF/description.html diff --git a/build.gradle.kts b/build.gradle.kts index 691e445..fa2116a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -43,43 +43,27 @@ dependencies { // See https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html intellijPlatform { instrumentCode = true + + pluginConfiguration { + description = providers.fileContents( + layout.projectDirectory.file("src/main/resources/META-INF/description.html") + ).asText + + changeNotes = """ +

Added

+
    +
  • IDEA 2024.2
  • +
+ """.trimIndent() + } +} + +tasks { + patchPluginXml { + sinceBuild = "223" + untilBuild = "242.*" + } } -//tasks.getByName("patchPluginXml") { -// sinceBuild.set("223") -// untilBuild.set("242.*") -// changeNotes.set(""" -//

Added

-//
    -//
  • IDEA 2024.2
  • -//
-//

Fixed

-//
    -//
  • No fixes this release version
  • -//
-//

Changed

-//
    -//
  • Gradle now 8.10
  • -//
  • Plugin verifier now 1.373
  • -//
  • Now using Github Dependabot
  • -//
  • bump actions/checkout from 3 to 4
  • -//
  • bump actions/setup-node from 3 to 4
  • -//
  • bump actions/stale from 5.2.0 to 9.0.0
  • -//
  • bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.3
  • -//
  • bump com.fasterxml.jackson.core:jackson-core from 2.15.0 to 2.17.2
  • -//
  • bump com.fasterxml.jackson.dataformat:jackson-dataformat-yaml from 2.15.0 to 2.17.2
  • -//
  • bump com.fasterxml.jackson.module:jackson-module-kotlin from 2.15.0 to 2.17.2
  • -//
  • bump hmarr/auto-approve-action from 3.2.1 to 4.0.0
  • -//
  • bump jvm from 1.9.23 to 2.0.20
  • -//
  • bump marocchino/sticky-pull-request-comment from 2.5.0 to 2.9.0
  • -//
  • bump org.jetbrains.intellij from 1.17.3 to 1.17.4
  • -//
  • bump org.junit.jupiter:junit-jupiter-api from 5.9.2 to 5.11.0
  • -//
  • bump org.junit.jupiter:junit-jupiter-engine from 5.9.2 to 5.11.0
  • -//
  • bump org.junit.vintage:junit-vintage-engine from 5.9.2 to 5.11.0
  • -//
  • bump pascalgn/automerge-action from 0.15.6 to 0.16.3
  • -//
-// """.trimIndent() -// ) -//} //tasks.getByName("runPluginVerifier") { // ideVersions.set( diff --git a/src/main/resources/META-INF/description.html b/src/main/resources/META-INF/description.html new file mode 100644 index 0000000..74b4c0b --- /dev/null +++ b/src/main/resources/META-INF/description.html @@ -0,0 +1,13 @@ +

Edit AsyncAPI specifications in the IDE with syntax highlighting, auto-completion and a live preview.

+
+

Features

+
    +
  • Recognition of AsyncAPI specifications
  • +
  • AsyncAPI specification auto-completion
  • +
  • AsyncAPI specification example creation from file -> new -> AsyncAPI specification
  • +
  • AsyncAPI specification inspection and validation using AsyncAPI JSON Schema
  • +
  • Local references resolving with auto-completion in AsyncAPI specification
  • +
  • File references resolving with auto-completion in AsyncAPI specification
  • +
  • AsyncAPI specification preview as html in built-in/external browser
  • +
+
\ No newline at end of file diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 18fce28..5301a5d 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -3,22 +3,6 @@ AsyncAPI AsyncAPI - ⚠️ This plugin doesn't support AsyncAPI 1.x -

Plugin to help you easily edit AsyncAPI specification files.

-

Features

-
    -
  • Recognition of AsyncAPI specifications.
  • -
  • AsyncAPI specification auto-completion.
  • -
  • AsyncAPI specification example creation from file -> new -> AsyncAPI specification.
  • -
  • AsyncAPI specification inspection and validation using AsyncAPI JSON Schema.
  • -
  • Local references resolving with auto-completion in AsyncAPI specification.
  • -
  • File references resolving with auto-completion in AsyncAPI specification.
  • -
  • AsyncAPI specification preview as html in built-in/external browser.
  • -
- ]]> -
- com.intellij.modules.platform From 94dd100bde2db1dbf17805a01849d2a6b1ba393a Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Tue, 27 Aug 2024 20:49:43 +0400 Subject: [PATCH 05/15] build: migrate patchPluginXml --- .gitignore | 2 ++ README.md | 2 +- build.gradle.kts | 82 ++++++++++++++++++++++++++++-------------------- 3 files changed, 51 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index df6ab63..4d352d4 100644 --- a/.gitignore +++ b/.gitignore @@ -128,3 +128,5 @@ gradle-app.setting .DS_Store /.idea +.intellijPlatform +.kotlin \ No newline at end of file diff --git a/README.md b/README.md index fe13796..72a71db 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ cd jasyncapi-idea-plugin NOTE: This will take a while the first time as it will have to download every single version of IntelliJ IDEA listed in the `runPluginVerifier` section of the `build.gradle.kts` file. ```sh -./gradlew :runPluginVerifier +./gradlew :verifyPlugin ``` ... should have no errors 5. install plugin from disk - [JetBrains Instruction](https://www.jetbrains.com/help/idea/managing-plugins.html#install_plugin_from_disk) diff --git a/build.gradle.kts b/build.gradle.kts index fa2116a..b1bb06e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,8 +1,8 @@ import org.jetbrains.intellij.platform.gradle.TestFrameworkType +import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask plugins { id("org.jetbrains.intellij.platform") version "2.0.1" - id("org.jetbrains.intellij.platform.migration") version "2.0.1" java kotlin("jvm") version "2.0.20" } @@ -56,6 +56,53 @@ intellijPlatform { """.trimIndent() } + + pluginVerification { + failureLevel = listOf( + VerifyPluginTask.FailureLevel.INVALID_PLUGIN, + VerifyPluginTask.FailureLevel.COMPATIBILITY_PROBLEMS, + VerifyPluginTask.FailureLevel.NOT_DYNAMIC + ) + + ides { + ides(listOf( + "2022.3", + "2022.3.1", + "2022.3.2", + "2022.3.3", + "2023.1", + "2023.1.1", + "2023.1.2", + "2023.1.3", + "2023.1.4", + "2023.1.5", + "2023.2", + "2023.2.1", + "2023.2.2", + "2023.2.3", + "2023.2.4", + "2023.2.5", + "2023.3", + "2023.3.1", + "2023.3.2", + "2023.3.3", + "2023.3.4", + "2023.3.5", + "2023.3.6", + "2023.3.7", + "2024.1", + "2024.1.1", + "2024.1.2", + "2024.1.3", + "2024.1.4", + "2024.1.5", + "2024.1.6", + "2024.2", + "2024.2.0.1", + "2024.2.0.2" + )) + } + } } tasks { @@ -65,39 +112,6 @@ tasks { } } -//tasks.getByName("runPluginVerifier") { -// ideVersions.set( -// listOf( -// "2022.3", -// "2022.3.1", -// "2022.3.2", -// "2022.3.3", -// "2023.1", -// "2023.1.1", -// "2023.1.2", -// "2023.1.3", -// "2023.1.4", -// "2023.1.5", -// "2023.2", -// "2023.2.1", -// "2023.2.2", -// "2023.2.3", -// "2023.2.4", -// "2023.2.5", -// "2023.3", -// "2023.3.1", -// "2023.3.2", -// "2023.3.3", -// "2023.3.4", -// "2023.3.5", -// "2023.3.6", -// "2024.1", -// "2024.2" -// ) -// ) -// verifierVersion.set("1.373") -//} - tasks { compileKotlin { kotlinOptions.jvmTarget = "17" From 236b102dd7a8df5055f68ae3bc39ec65fb34ec0e Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Tue, 27 Aug 2024 22:12:44 +0400 Subject: [PATCH 06/15] build: update UI version --- .../AsyncAPISpecificationHtmlRenderer.kt | 4 +-- src/main/resources/ui/default(1.2.9).min.css | 5 --- src/main/resources/ui/default.min.css | 5 +++ src/main/resources/ui/index(1.2.9).js | 32 ------------------- src/main/resources/ui/index.html | 4 +-- src/main/resources/ui/index.js | 8 +++++ 6 files changed, 17 insertions(+), 41 deletions(-) delete mode 100644 src/main/resources/ui/default(1.2.9).min.css create mode 100644 src/main/resources/ui/default.min.css delete mode 100644 src/main/resources/ui/index(1.2.9).js create mode 100644 src/main/resources/ui/index.js diff --git a/src/main/kotlin/com/asyncapi/plugin/idea/_core/AsyncAPISpecificationHtmlRenderer.kt b/src/main/kotlin/com/asyncapi/plugin/idea/_core/AsyncAPISpecificationHtmlRenderer.kt index c5ac76c..9e7eec6 100644 --- a/src/main/kotlin/com/asyncapi/plugin/idea/_core/AsyncAPISpecificationHtmlRenderer.kt +++ b/src/main/kotlin/com/asyncapi/plugin/idea/_core/AsyncAPISpecificationHtmlRenderer.kt @@ -28,8 +28,8 @@ class AsyncAPISpecificationHtmlRenderer { private val urlProvider = service() private val specificationTemplateUrl = "/ui/index.html" - private val specificationTemplateCssUrl = "default(1.2.9).min.css" - private val specificationTemplateJsUrl = "index(1.2.9).js" + private val specificationTemplateCssUrl = "default.min.css" + private val specificationTemplateJsUrl = "index.js" fun render(request: FullHttpRequest, specificationUrl: String?): String { specificationUrl ?: return "specification: not found." diff --git a/src/main/resources/ui/default(1.2.9).min.css b/src/main/resources/ui/default(1.2.9).min.css deleted file mode 100644 index 97f8d3d..0000000 --- a/src/main/resources/ui/default(1.2.9).min.css +++ /dev/null @@ -1,5 +0,0 @@ -.aui-root .hljs{display:block;overflow-x:auto;padding:.5em;background:#011627;color:#d6deeb}.aui-root .hljs-keyword{color:#c792ea;font-style:italic}.aui-root .hljs-built_in{color:#addb67;font-style:italic}.aui-root .hljs-type{color:#82aaff}.aui-root .hljs-literal{color:#ff5874}.aui-root .hljs-number{color:#f78c6c}.aui-root .hljs-regexp{color:#5ca7e4}.aui-root .hljs-string{color:#ecc48d}.aui-root .hljs-subst{color:#d3423e}.aui-root .hljs-symbol{color:#82aaff}.aui-root .hljs-class{color:#ffcb8b}.aui-root .hljs-function{color:#82aaff}.aui-root .hljs-title{color:#dcdcaa;font-style:italic}.aui-root .hljs-params{color:#7fdbca}.aui-root .hljs-comment{color:#637777;font-style:italic}.aui-root .hljs-doctag{color:#7fdbca}.aui-root .hljs-meta,.aui-root .hljs-meta-keyword{color:#82aaff}.aui-root .hljs-meta-string{color:#ecc48d}.aui-root .hljs-section{color:#82b1ff}.aui-root .hljs-attr,.aui-root .hljs-builtin-name,.aui-root .hljs-name,.aui-root .hljs-tag{color:#7fdbca}.aui-root .hljs-attribute{color:#80cbc4}.aui-root .hljs-variable{color:#addb67}.aui-root .hljs-bullet{color:#d9f5dd}.aui-root .hljs-code{color:#80cbc4}.aui-root .hljs-emphasis{color:#c792ea;font-style:italic}.aui-root .hljs-strong{color:#addb67;font-weight:700}.aui-root .hljs-formula{color:#c792ea}.aui-root .hljs-link{color:#ff869a}.aui-root .hljs-quote{color:#697098;font-style:italic}.aui-root .hljs-selector-tag{color:#ff6363}.aui-root .hljs-selector-id{color:#fad430}.aui-root .hljs-selector-class{color:#addb67;font-style:italic}.aui-root .hljs-selector-attr,.aui-root .hljs-selector-pseudo{color:#c792ea;font-style:italic}.aui-root .hljs-template-tag{color:#c792ea}.aui-root .hljs-template-variable{color:#addb67}.aui-root .hljs-addition{color:#addb67;font-style:italic}.aui-root .hljs-deletion{color:rgba(239,83,80,.5647058823529412);font-style:italic} - -/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com*/ - -/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */.aui-root html{-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.15;-webkit-text-size-adjust:100%}.aui-root body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}.aui-root hr{height:0;color:inherit}.aui-root abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.aui-root b,.aui-root strong{font-weight:bolder}.aui-root code,.aui-root kbd,.aui-root pre,.aui-root samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}.aui-root small{font-size:80%}.aui-root sub,.aui-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.aui-root sub{bottom:-.25em}.aui-root sup{top:-.5em}.aui-root table{text-indent:0;border-color:inherit}.aui-root button,.aui-root input,.aui-root optgroup,.aui-root select,.aui-root textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.aui-root button,.aui-root select{text-transform:none}.aui-root [type=button],.aui-root button{-webkit-appearance:button}.aui-root legend{padding:0}.aui-root progress{vertical-align:baseline}.aui-root summary{display:list-item}.aui-root blockquote,.aui-root dd,.aui-root dl,.aui-root figure,.aui-root h1,.aui-root h2,.aui-root h3,.aui-root h4,.aui-root h5,.aui-root h6,.aui-root hr,.aui-root p,.aui-root pre{margin:0}.aui-root button{background-color:transparent;background-image:none}.aui-root fieldset{margin:0;padding:0}.aui-root ol,.aui-root ul{list-style:none;margin:0;padding:0}.aui-root html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.aui-root body{font-family:inherit;line-height:inherit}.aui-root *,.aui-root :after,.aui-root :before{box-sizing:border-box;border:0 solid}.aui-root hr{border-top-width:1px}.aui-root img{border-style:solid}.aui-root textarea{resize:vertical}.aui-root input::-moz-placeholder, .aui-root textarea::-moz-placeholder{opacity:1;color:#cbd5e0}.aui-root input:-ms-input-placeholder, .aui-root textarea:-ms-input-placeholder{opacity:1;color:#cbd5e0}.aui-root input::placeholder,.aui-root textarea::placeholder{opacity:1;color:#cbd5e0}.aui-root button{cursor:pointer}.aui-root table{border-collapse:collapse}.aui-root h1,.aui-root h2,.aui-root h3,.aui-root h4,.aui-root h5,.aui-root h6{font-size:inherit;font-weight:inherit}.aui-root a{color:inherit;text-decoration:inherit}.aui-root button,.aui-root input,.aui-root optgroup,.aui-root select,.aui-root textarea{padding:0;line-height:inherit;color:inherit}.aui-root code,.aui-root kbd,.aui-root pre,.aui-root samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.aui-root audio,.aui-root canvas,.aui-root embed,.aui-root iframe,.aui-root img,.aui-root object,.aui-root svg,.aui-root video{display:block;vertical-align:middle}.aui-root img,.aui-root video{max-width:100%;height:auto}.aui-root [hidden]{display:none}.aui-root *,.aui-root :after,.aui-root :before{--tw-border-opacity:1;border-color:rgba(203,213,224,var(--tw-border-opacity))}.aui-root .container{width:100%}@media (min-width:640px){.aui-root .container{max-width:640px}}@media (min-width:768px){.aui-root .container{max-width:768px}}@media (min-width:1024px){.aui-root .container{max-width:1024px}}@media (min-width:1280px){.aui-root .container{max-width:1280px}}@media (min-width:1536px){.aui-root .container{max-width:1536px}}.aui-root .prose{color:#4a5568;max-width:65ch}.aui-root .prose [class~=lead]{color:#718096;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.aui-root .prose a{color:#1a202c;text-decoration:underline;font-weight:500}.aui-root .prose strong{color:#1a202c;font-weight:600}.aui-root .prose ol[type=a]{--list-counter-style:lower-alpha}.aui-root .prose ol[type=i]{--list-counter-style:lower-roman}.aui-root .prose ol[type="1"]{--list-counter-style:decimal}.aui-root .prose ol>li{position:relative;padding-left:1.75em}.aui-root .prose ol>li:before{content:counter(list-item,var(--list-counter-style,decimal)) ".";position:absolute;font-weight:400;color:#a0aec0;left:0}.aui-root .prose ul>li{position:relative;padding-left:1.75em}.aui-root .prose ul>li:before{content:"";position:absolute;background-color:#e2e8f0;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.aui-root .prose hr{border-color:#edf2f7;border-top-width:1px;margin-top:3em;margin-bottom:3em}.aui-root .prose blockquote{font-weight:500;font-style:italic;color:#1a202c;border-left-width:.25rem;border-left-color:#edf2f7;quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.aui-root .prose blockquote p:first-of-type:before{content:open-quote}.aui-root .prose blockquote p:last-of-type:after{content:close-quote}.aui-root .prose h1{color:#1a202c;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.aui-root .prose h2{color:#1a202c;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.aui-root .prose h3{color:#1a202c;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.aui-root .prose h4{color:#1a202c;font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.aui-root .prose figure figcaption{color:#a0aec0;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.aui-root .prose code{color:#1a202c;font-weight:600;font-size:.875em}.aui-root .prose code:after,.aui-root .prose code:before{content:"`"}.aui-root .prose a code{color:#1a202c}.aui-root .prose pre{color:#edf2f7;background-color:#1a202c;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.aui-root .prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.aui-root .prose pre code:after,.aui-root .prose pre code:before{content:none}.aui-root .prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.aui-root .prose thead{color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:#e2e8f0}.aui-root .prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.aui-root .prose tbody tr{border-bottom-width:1px;border-bottom-color:#edf2f7}.aui-root .prose tbody tr:last-child{border-bottom-width:0}.aui-root .prose tbody td{vertical-align:top;padding:.5714286em}.aui-root .prose{font-size:1rem;line-height:1.75}.aui-root .prose p{margin-top:1.25em;margin-bottom:1.25em}.aui-root .prose figure,.aui-root .prose img,.aui-root .prose video{margin-top:2em;margin-bottom:2em}.aui-root .prose figure>*{margin-top:0;margin-bottom:0}.aui-root .prose h2 code{font-size:.875em}.aui-root .prose h3 code{font-size:.9em}.aui-root .prose ol,.aui-root .prose ul{margin-top:1.25em;margin-bottom:1.25em}.aui-root .prose li{margin-top:.5em;margin-bottom:.5em}.aui-root .prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.aui-root .prose>ul>li>:first-child{margin-top:1.25em}.aui-root .prose>ul>li>:last-child{margin-bottom:1.25em}.aui-root .prose>ol>li>:first-child{margin-top:1.25em}.aui-root .prose>ol>li>:last-child{margin-bottom:1.25em}.aui-root .prose ol ol,.aui-root .prose ol ul,.aui-root .prose ul ol,.aui-root .prose ul ul{margin-top:.75em;margin-bottom:.75em}.aui-root .prose h2+*,.aui-root .prose h3+*,.aui-root .prose h4+*,.aui-root .prose hr+*{margin-top:0}.aui-root .prose thead th:first-child{padding-left:0}.aui-root .prose thead th:last-child{padding-right:0}.aui-root .prose tbody td:first-child{padding-left:0}.aui-root .prose tbody td:last-child{padding-right:0}.aui-root .prose>:first-child{margin-top:0}.aui-root .prose>:last-child{margin-bottom:0}@media (min-width:1024px){.aui-root .container\:base .burger-menu{display:none}}@media (min-width:1024px){.aui-root .container\:base .sidebar{position:relative;display:block;height:auto;width:16rem}}@media (min-width:1024px){.aui-root .container\:base .sidebar--content{width:14rem}}.aui-root .container\:xl .sidebar--content{position:absolute;left:50%;transform:translate(-50%)}@media (min-width:1536px){.aui-root .container\:base .panel-item{display:flex}}.aui-root .container\:xl .panel-item{display:block}@media (min-width:1536px){.aui-root .container\:base .panel--center .panel-item--center{width:58.333333%}}@media (min-width:1536px){.aui-root .container\:base .panel--center .panel-item--right{width:41.666667%}}.aui-root .container\:xl .panel--center .panel-item--center,.aui-root .container\:xl .panel--center .panel-item--right{width:100%}@media (min-width:1536px){.aui-root .container\:base .examples{margin-top:0}}.aui-root .container\:base .panel--right{display:none}@media (min-width:1536px){.aui-root .container\:base .panel--right{display:block;width:41.666667%}}.aui-root .container\:xl .panel--right{display:none}.aui-root .prose pre{white-space:pre-wrap}.aui-root .fixed{position:fixed}.aui-root .absolute{position:absolute}.aui-root .relative{position:relative}.aui-root .top-0{top:0}.aui-root .right-0{right:0}.aui-root .right-8{right:2rem}.aui-root .bottom-16{bottom:4rem}.aui-root .z-10{z-index:10}.aui-root .z-20{z-index:20}.aui-root .z-30{z-index:30}.aui-root .mx-2{margin-left:.5rem;margin-right:.5rem}.aui-root .-mx-8{margin-left:-2rem;margin-right:-2rem}.aui-root .my-2{margin-top:.5rem;margin-bottom:.5rem}.aui-root .mt-1{margin-top:.25rem}.aui-root .mt-2{margin-top:.5rem}.aui-root .mt-4{margin-top:1rem}.aui-root .mt-9{margin-top:2.25rem}.aui-root .mt-10{margin-top:2.5rem}.aui-root .mt-16{margin-top:4rem}.aui-root .mr-1{margin-right:.25rem}.aui-root .mr-2{margin-right:.5rem}.aui-root .mb-2{margin-bottom:.5rem}.aui-root .mb-3{margin-bottom:.75rem}.aui-root .mb-4{margin-bottom:1rem}.aui-root .mb-12{margin-bottom:3rem}.aui-root .-mb-1{margin-bottom:-.25rem}.aui-root .ml-0{margin-left:0}.aui-root .ml-1{margin-left:.25rem}.aui-root .ml-2{margin-left:.5rem}.aui-root .ml-0\.5{margin-left:.125rem}.aui-root .block{display:block}.aui-root .inline-block{display:inline-block}.aui-root .flex{display:flex}.aui-root .table{display:table}.aui-root .hidden{display:none}.aui-root .h-5{height:1.25rem}.aui-root .h-6{height:1.5rem}.aui-root .h-8{height:2rem}.aui-root .h-11{height:2.75rem}.aui-root .h-16{height:4rem}.aui-root .h-full{height:100%}.aui-root .max-h-screen{max-height:100vh}.aui-root .w-1{width:.25rem}.aui-root .w-5{width:1.25rem}.aui-root .w-16{width:4rem}.aui-root .w-20{width:5rem}.aui-root .w-64{width:16rem}.aui-root .w-full{width:100%}.aui-root .min-w-1\/4{min-width:25%}.aui-root .max-w-none{max-width:none}.aui-root .flex-1{flex:1 1 0%}.aui-root .transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.aui-root .-rotate-180{--tw-rotate:-180deg}.aui-root .-rotate-90{--tw-rotate:-90deg}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.aui-root .cursor-pointer{cursor:pointer}.aui-root .flex-wrap{flex-wrap:wrap}.aui-root .items-center{align-items:center}.aui-root .justify-center{justify-content:center}.aui-root .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem*var(--tw-space-x-reverse));margin-left:calc(0.5rem*(1 - var(--tw-space-x-reverse)))}.aui-root .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}.aui-root .overflow-auto{overflow:auto}.aui-root .overflow-y-auto{overflow-y:auto}.aui-root .whitespace-pre-wrap{white-space:pre-wrap}.aui-root .break-words{overflow-wrap:break-word}.aui-root .break-all{word-break:break-all}.aui-root .rounded{border-radius:.25rem}.aui-root .rounded-full{border-radius:9999px}.aui-root .rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.aui-root .border{border-width:1px}.aui-root .border-l-8{border-left-width:8px}.aui-root .border-solid{border-style:solid}.aui-root .border-gray-400{--tw-border-opacity:1;border-color:rgba(203,213,224,var(--tw-border-opacity))}.aui-root .border-red-500{--tw-border-opacity:1;border-color:rgba(245,101,101,var(--tw-border-opacity))}.aui-root .border-red-600{--tw-border-opacity:1;border-color:rgba(229,62,62,var(--tw-border-opacity))}.aui-root .border-orange-300{--tw-border-opacity:1;border-color:rgba(251,211,141,var(--tw-border-opacity))}.aui-root .border-orange-600{--tw-border-opacity:1;border-color:rgba(221,107,32,var(--tw-border-opacity))}.aui-root .border-green-600{--tw-border-opacity:1;border-color:rgba(56,161,105,var(--tw-border-opacity))}.aui-root .border-blue-300{--tw-border-opacity:1;border-color:rgba(144,205,244,var(--tw-border-opacity))}.aui-root .border-blue-600{--tw-border-opacity:1;border-color:rgba(49,130,206,var(--tw-border-opacity))}.aui-root .border-purple-300{--tw-border-opacity:1;border-color:rgba(214,188,250,var(--tw-border-opacity))}.aui-root .bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.aui-root .bg-gray-100{--tw-bg-opacity:1;background-color:rgba(247,250,252,var(--tw-bg-opacity))}.aui-root .bg-gray-200{--tw-bg-opacity:1;background-color:rgba(237,242,247,var(--tw-bg-opacity))}.aui-root .bg-gray-800{--tw-bg-opacity:1;background-color:rgba(45,55,72,var(--tw-bg-opacity))}.aui-root .bg-yellow-600{--tw-bg-opacity:1;background-color:rgba(214,158,46,var(--tw-bg-opacity))}.aui-root .bg-green-600{--tw-bg-opacity:1;background-color:rgba(56,161,105,var(--tw-bg-opacity))}.aui-root .bg-teal-500{--tw-bg-opacity:1;background-color:rgba(56,178,172,var(--tw-bg-opacity))}.aui-root .bg-blue-400{--tw-bg-opacity:1;background-color:rgba(99,179,237,var(--tw-bg-opacity))}.aui-root .bg-blue-500{--tw-bg-opacity:1;background-color:rgba(66,153,225,var(--tw-bg-opacity))}.aui-root .bg-blue-600{--tw-bg-opacity:1;background-color:rgba(49,130,206,var(--tw-bg-opacity))}.aui-root .bg-indigo-400{--tw-bg-opacity:1;background-color:rgba(127,156,245,var(--tw-bg-opacity))}.aui-root .bg-purple-600{--tw-bg-opacity:1;background-color:rgba(128,90,213,var(--tw-bg-opacity))}.aui-root .hover\:bg-orange-300:hover{--tw-bg-opacity:1;background-color:rgba(251,211,141,var(--tw-bg-opacity))}.aui-root .hover\:bg-blue-300:hover{--tw-bg-opacity:1;background-color:rgba(144,205,244,var(--tw-bg-opacity))}.aui-root .hover\:bg-purple-300:hover{--tw-bg-opacity:1;background-color:rgba(214,188,250,var(--tw-bg-opacity))}.aui-root .fill-current{fill:currentColor}.aui-root .p-1{padding:.25rem}.aui-root .p-2{padding:.5rem}.aui-root .p-4{padding:1rem}.aui-root .p-8{padding:2rem}.aui-root .px-1{padding-left:.25rem;padding-right:.25rem}.aui-root .px-2{padding-left:.5rem;padding-right:.5rem}.aui-root .px-3{padding-left:.75rem;padding-right:.75rem}.aui-root .px-4{padding-left:1rem;padding-right:1rem}.aui-root .px-8{padding-left:2rem;padding-right:2rem}.aui-root .py-0{padding-top:0;padding-bottom:0}.aui-root .py-1{padding-top:.25rem;padding-bottom:.25rem}.aui-root .py-2{padding-top:.5rem;padding-bottom:.5rem}.aui-root .py-4{padding-top:1rem;padding-bottom:1rem}.aui-root .py-8{padding-top:2rem;padding-bottom:2rem}.aui-root .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.aui-root .pt-8{padding-top:2rem}.aui-root .pb-16{padding-bottom:4rem}.aui-root .text-left{text-align:left}.aui-root .text-center{text-align:center}.aui-root .align-baseline{vertical-align:baseline}.aui-root .font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.aui-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.aui-root .text-xs{font-size:.75rem}.aui-root .text-sm{font-size:.875rem}.aui-root .text-base{font-size:1rem}.aui-root .text-lg{font-size:1.125rem}.aui-root .text-2xl{font-size:1.5rem}.aui-root .text-3xl{font-size:1.875rem}.aui-root .text-4xl{font-size:2.25rem}.aui-root .font-thin{font-weight:100}.aui-root .font-extralight{font-weight:200}.aui-root .font-light{font-weight:300}.aui-root .font-bold{font-weight:700}.aui-root .uppercase{text-transform:uppercase}.aui-root .lowercase{text-transform:lowercase}.aui-root .capitalize{text-transform:capitalize}.aui-root .italic{font-style:italic}.aui-root .leading-normal{line-height:1.5}.aui-root .text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.aui-root .text-gray-200{--tw-text-opacity:1;color:rgba(237,242,247,var(--tw-text-opacity))}.aui-root .text-gray-500{--tw-text-opacity:1;color:rgba(160,174,192,var(--tw-text-opacity))}.aui-root .text-gray-600{--tw-text-opacity:1;color:rgba(113,128,150,var(--tw-text-opacity))}.aui-root .text-gray-700{--tw-text-opacity:1;color:rgba(74,85,104,var(--tw-text-opacity))}.aui-root .text-gray-800{--tw-text-opacity:1;color:rgba(45,55,72,var(--tw-text-opacity))}.aui-root .text-red-600{--tw-text-opacity:1;color:rgba(229,62,62,var(--tw-text-opacity))}.aui-root .text-orange-500{--tw-text-opacity:1;color:rgba(237,137,54,var(--tw-text-opacity))}.aui-root .text-orange-600{--tw-text-opacity:1;color:rgba(221,107,32,var(--tw-text-opacity))}.aui-root .text-green-600{--tw-text-opacity:1;color:rgba(56,161,105,var(--tw-text-opacity))}.aui-root .text-teal-500{--tw-text-opacity:1;color:rgba(56,178,172,var(--tw-text-opacity))}.aui-root .text-blue-500{--tw-text-opacity:1;color:rgba(66,153,225,var(--tw-text-opacity))}.aui-root .text-purple-500{--tw-text-opacity:1;color:rgba(159,122,234,var(--tw-text-opacity))}.aui-root .hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgba(26,32,44,var(--tw-text-opacity))}.aui-root .hover\:text-orange-600:hover{--tw-text-opacity:1;color:rgba(221,107,32,var(--tw-text-opacity))}.aui-root .hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgba(49,130,206,var(--tw-text-opacity))}.aui-root .hover\:text-purple-600:hover{--tw-text-opacity:1;color:rgba(128,90,213,var(--tw-text-opacity))}.aui-root .underline{text-decoration:underline}.aui-root .no-underline{text-decoration:none}.aui-root *,.aui-root :after,.aui-root :before{--tw-shadow:0 0 transparent}.aui-root .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)}.aui-root .shadow,.aui-root .shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.aui-root .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06)}.aui-root .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.aui-root *,.aui-root :after,.aui-root :before{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(66,153,225,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.aui-root .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/);--tw-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-invert:var(--tw-empty,/*!*/ /*!*/);--tw-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-sepia:var(--tw-empty,/*!*/ /*!*/);--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.aui-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.aui-root .duration-150{transition-duration:.15s}.aui-root .ease-linear{transition-timing-function:linear}.aui-root .break-anywhere{overflow-wrap:anywhere}@media (min-width:768px){.aui-root .md\:flex{display:flex}}@media (min-width:1536px){.aui-root .\32xl\:mx-0{margin-left:0;margin-right:0}.aui-root .\32xl\:w-7\/12{width:58.333333%}.aui-root .\32xl\:rounded{border-radius:.25rem}.aui-root .\32xl\:px-4{padding-left:1rem;padding-right:1rem}} \ No newline at end of file diff --git a/src/main/resources/ui/default.min.css b/src/main/resources/ui/default.min.css new file mode 100644 index 0000000..8b78c37 --- /dev/null +++ b/src/main/resources/ui/default.min.css @@ -0,0 +1,5 @@ +.aui-root .hljs{display:block;overflow-x:auto;padding:.5em;background:#011627;color:#d6deeb}.aui-root .hljs-keyword{color:#c792ea;font-style:italic}.aui-root .hljs-built_in{color:#addb67;font-style:italic}.aui-root .hljs-type{color:#82aaff}.aui-root .hljs-literal{color:#ff5874}.aui-root .hljs-number{color:#f78c6c}.aui-root .hljs-regexp{color:#5ca7e4}.aui-root .hljs-string{color:#ecc48d}.aui-root .hljs-subst{color:#d3423e}.aui-root .hljs-symbol{color:#82aaff}.aui-root .hljs-class{color:#ffcb8b}.aui-root .hljs-function{color:#82aaff}.aui-root .hljs-title{color:#dcdcaa;font-style:italic}.aui-root .hljs-params{color:#7fdbca}.aui-root .hljs-comment{color:#637777;font-style:italic}.aui-root .hljs-doctag{color:#7fdbca}.aui-root .hljs-meta,.aui-root .hljs-meta-keyword{color:#82aaff}.aui-root .hljs-meta-string{color:#ecc48d}.aui-root .hljs-section{color:#82b1ff}.aui-root .hljs-attr,.aui-root .hljs-builtin-name,.aui-root .hljs-name,.aui-root .hljs-tag{color:#7fdbca}.aui-root .hljs-attribute{color:#80cbc4}.aui-root .hljs-variable{color:#addb67}.aui-root .hljs-bullet{color:#d9f5dd}.aui-root .hljs-code{color:#80cbc4}.aui-root .hljs-emphasis{color:#c792ea;font-style:italic}.aui-root .hljs-strong{color:#addb67;font-weight:700}.aui-root .hljs-formula{color:#c792ea}.aui-root .hljs-link{color:#ff869a}.aui-root .hljs-quote{color:#697098;font-style:italic}.aui-root .hljs-selector-tag{color:#ff6363}.aui-root .hljs-selector-id{color:#fad430}.aui-root .hljs-selector-class{color:#addb67;font-style:italic}.aui-root .hljs-selector-attr,.aui-root .hljs-selector-pseudo{color:#c792ea;font-style:italic}.aui-root .hljs-template-tag{color:#c792ea}.aui-root .hljs-template-variable{color:#addb67}.aui-root .hljs-addition{color:#addb67;font-style:italic}.aui-root .hljs-deletion{color:rgba(239,83,80,.5647058823529412);font-style:italic} + +/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com*/ + +/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */.aui-root html{-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.15;-webkit-text-size-adjust:100%}.aui-root body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}.aui-root hr{height:0;color:inherit}.aui-root abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.aui-root b,.aui-root strong{font-weight:bolder}.aui-root code,.aui-root kbd,.aui-root pre,.aui-root samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}.aui-root small{font-size:80%}.aui-root sub,.aui-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.aui-root sub{bottom:-.25em}.aui-root sup{top:-.5em}.aui-root table{text-indent:0;border-color:inherit}.aui-root button,.aui-root input,.aui-root optgroup,.aui-root select,.aui-root textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.aui-root button,.aui-root select{text-transform:none}.aui-root [type=button],.aui-root button{-webkit-appearance:button}.aui-root ::-moz-focus-inner{border-style:none;padding:0}.aui-root legend{padding:0}.aui-root progress{vertical-align:baseline}.aui-root ::-webkit-inner-spin-button,.aui-root ::-webkit-outer-spin-button{height:auto}.aui-root [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.aui-root ::-webkit-search-decoration{-webkit-appearance:none}.aui-root ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.aui-root summary{display:list-item}.aui-root blockquote,.aui-root dd,.aui-root dl,.aui-root figure,.aui-root h1,.aui-root h2,.aui-root h3,.aui-root h4,.aui-root h5,.aui-root h6,.aui-root hr,.aui-root p,.aui-root pre{margin:0}.aui-root button{background-color:transparent;background-image:none}.aui-root fieldset{margin:0;padding:0}.aui-root ol,.aui-root ul{list-style:none;margin:0;padding:0}.aui-root html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.aui-root body{font-family:inherit;line-height:inherit}.aui-root *,.aui-root :after,.aui-root :before{box-sizing:border-box;border:0 solid}.aui-root hr{border-top-width:1px}.aui-root img{border-style:solid}.aui-root textarea{resize:vertical}.aui-root input::-moz-placeholder, .aui-root textarea::-moz-placeholder{opacity:1;color:#cbd5e0}.aui-root input::placeholder,.aui-root textarea::placeholder{opacity:1;color:#cbd5e0}.aui-root button{cursor:pointer}.aui-root table{border-collapse:collapse}.aui-root h1,.aui-root h2,.aui-root h3,.aui-root h4,.aui-root h5,.aui-root h6{font-size:inherit;font-weight:inherit}.aui-root a{color:inherit;text-decoration:inherit}.aui-root button,.aui-root input,.aui-root optgroup,.aui-root select,.aui-root textarea{padding:0;line-height:inherit;color:inherit}.aui-root code,.aui-root kbd,.aui-root pre,.aui-root samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.aui-root audio,.aui-root canvas,.aui-root embed,.aui-root iframe,.aui-root img,.aui-root object,.aui-root svg,.aui-root video{display:block;vertical-align:middle}.aui-root img,.aui-root video{max-width:100%;height:auto}.aui-root [hidden]{display:none}.aui-root *,.aui-root :after,.aui-root :before{--tw-border-opacity:1;border-color:rgba(203,213,224,var(--tw-border-opacity))}.aui-root .container{width:100%}@media (min-width:640px){.aui-root .container{max-width:640px}}@media (min-width:768px){.aui-root .container{max-width:768px}}@media (min-width:1024px){.aui-root .container{max-width:1024px}}@media (min-width:1280px){.aui-root .container{max-width:1280px}}@media (min-width:1536px){.aui-root .container{max-width:1536px}}.aui-root .prose{color:#4a5568;max-width:65ch}.aui-root .prose [class~=lead]{color:#718096;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.aui-root .prose a{color:#1a202c;text-decoration:underline;font-weight:500}.aui-root .prose strong{color:#1a202c;font-weight:600}.aui-root .prose ol[type=a]{--list-counter-style:lower-alpha}.aui-root .prose ol[type=i]{--list-counter-style:lower-roman}.aui-root .prose ol[type="1"]{--list-counter-style:decimal}.aui-root .prose ol>li{position:relative;padding-left:1.75em}.aui-root .prose ol>li:before{content:counter(list-item,var(--list-counter-style,decimal)) ".";position:absolute;font-weight:400;color:#a0aec0;left:0}.aui-root .prose ul>li{position:relative;padding-left:1.75em}.aui-root .prose ul>li:before{content:"";position:absolute;background-color:#e2e8f0;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.aui-root .prose hr{border-color:#edf2f7;border-top-width:1px;margin-top:3em;margin-bottom:3em}.aui-root .prose blockquote{font-weight:500;font-style:italic;color:#1a202c;border-left-width:.25rem;border-left-color:#edf2f7;quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.aui-root .prose blockquote p:first-of-type:before{content:open-quote}.aui-root .prose blockquote p:last-of-type:after{content:close-quote}.aui-root .prose h1{color:#1a202c;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.aui-root .prose h2{color:#1a202c;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.aui-root .prose h3{color:#1a202c;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.aui-root .prose h4{color:#1a202c;font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.aui-root .prose figure figcaption{color:#a0aec0;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.aui-root .prose code{color:#1a202c;font-weight:600;font-size:.875em}.aui-root .prose code:after,.aui-root .prose code:before{content:"`"}.aui-root .prose a code{color:#1a202c}.aui-root .prose pre{color:#edf2f7;background-color:#1a202c;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.aui-root .prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.aui-root .prose pre code:after,.aui-root .prose pre code:before{content:none}.aui-root .prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.aui-root .prose thead{color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:#e2e8f0}.aui-root .prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.aui-root .prose tbody tr{border-bottom-width:1px;border-bottom-color:#edf2f7}.aui-root .prose tbody tr:last-child{border-bottom-width:0}.aui-root .prose tbody td{vertical-align:top;padding:.5714286em}.aui-root .prose{font-size:1rem;line-height:1.75}.aui-root .prose p{margin-top:1.25em;margin-bottom:1.25em}.aui-root .prose figure,.aui-root .prose img,.aui-root .prose video{margin-top:2em;margin-bottom:2em}.aui-root .prose figure>*{margin-top:0;margin-bottom:0}.aui-root .prose h2 code{font-size:.875em}.aui-root .prose h3 code{font-size:.9em}.aui-root .prose ol,.aui-root .prose ul{margin-top:1.25em;margin-bottom:1.25em}.aui-root .prose li{margin-top:.5em;margin-bottom:.5em}.aui-root .prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.aui-root .prose>ul>li>:first-child{margin-top:1.25em}.aui-root .prose>ul>li>:last-child{margin-bottom:1.25em}.aui-root .prose>ol>li>:first-child{margin-top:1.25em}.aui-root .prose>ol>li>:last-child{margin-bottom:1.25em}.aui-root .prose ol ol,.aui-root .prose ol ul,.aui-root .prose ul ol,.aui-root .prose ul ul{margin-top:.75em;margin-bottom:.75em}.aui-root .prose h2+*,.aui-root .prose h3+*,.aui-root .prose h4+*,.aui-root .prose hr+*{margin-top:0}.aui-root .prose thead th:first-child{padding-left:0}.aui-root .prose thead th:last-child{padding-right:0}.aui-root .prose tbody td:first-child{padding-left:0}.aui-root .prose tbody td:last-child{padding-right:0}.aui-root .prose>:first-child{margin-top:0}.aui-root .prose>:last-child{margin-bottom:0}@media (min-width:1024px){.aui-root .container\:base .burger-menu{display:none}}@media (min-width:1024px){.aui-root .container\:base .sidebar{position:relative;display:block;height:auto;width:16rem}}@media (min-width:1024px){.aui-root .container\:base .sidebar--content{width:14rem}}.aui-root .container\:xl .sidebar--content{position:absolute;left:50%;transform:translate(-50%)}@media (min-width:1536px){.aui-root .container\:base .panel-item{display:flex}}.aui-root .container\:xl .panel-item{display:block}@media (min-width:1536px){.aui-root .container\:base .panel--center .panel-item--center{width:58.333333%}}@media (min-width:1536px){.aui-root .container\:base .panel--center .panel-item--right{width:41.666667%}}.aui-root .container\:xl .panel--center .panel-item--center,.aui-root .container\:xl .panel--center .panel-item--right{width:100%}@media (min-width:1536px){.aui-root .container\:base .examples{margin-top:0}}.aui-root .container\:base .panel--right{display:none}@media (min-width:1536px){.aui-root .container\:base .panel--right{display:block;width:41.666667%}}.aui-root .container\:xl .panel--right{display:none}.aui-root .prose pre{white-space:pre-wrap}.aui-root .fixed{position:fixed}.aui-root .absolute{position:absolute}.aui-root .relative{position:relative}.aui-root .top-0{top:0}.aui-root .right-0{right:0}.aui-root .right-8{right:2rem}.aui-root .bottom-16{bottom:4rem}.aui-root .z-10{z-index:10}.aui-root .z-20{z-index:20}.aui-root .z-30{z-index:30}.aui-root .mx-2{margin-left:.5rem;margin-right:.5rem}.aui-root .-mx-8{margin-left:-2rem;margin-right:-2rem}.aui-root .my-2{margin-top:.5rem;margin-bottom:.5rem}.aui-root .mt-1{margin-top:.25rem}.aui-root .mt-2{margin-top:.5rem}.aui-root .mt-4{margin-top:1rem}.aui-root .mt-9{margin-top:2.25rem}.aui-root .mt-10{margin-top:2.5rem}.aui-root .mt-16{margin-top:4rem}.aui-root .mr-1{margin-right:.25rem}.aui-root .mr-2{margin-right:.5rem}.aui-root .mb-2{margin-bottom:.5rem}.aui-root .mb-3{margin-bottom:.75rem}.aui-root .mb-4{margin-bottom:1rem}.aui-root .mb-12{margin-bottom:3rem}.aui-root .-mb-1{margin-bottom:-.25rem}.aui-root .ml-0{margin-left:0}.aui-root .ml-1{margin-left:.25rem}.aui-root .ml-2{margin-left:.5rem}.aui-root .ml-0\.5{margin-left:.125rem}.aui-root .block{display:block}.aui-root .inline-block{display:inline-block}.aui-root .flex{display:flex}.aui-root .table{display:table}.aui-root .hidden{display:none}.aui-root .h-5{height:1.25rem}.aui-root .h-6{height:1.5rem}.aui-root .h-8{height:2rem}.aui-root .h-11{height:2.75rem}.aui-root .h-16{height:4rem}.aui-root .h-full{height:100%}.aui-root .max-h-screen{max-height:100vh}.aui-root .w-1{width:.25rem}.aui-root .w-5{width:1.25rem}.aui-root .w-16{width:4rem}.aui-root .w-20{width:5rem}.aui-root .w-64{width:16rem}.aui-root .w-full{width:100%}.aui-root .min-w-1\/4{min-width:25%}.aui-root .max-w-none{max-width:none}.aui-root .flex-1{flex:1 1 0%}.aui-root .transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.aui-root .-rotate-180{--tw-rotate:-180deg}.aui-root .-rotate-90{--tw-rotate:-90deg}@keyframes spin{to{transform:rotate(1turn)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.aui-root .cursor-pointer{cursor:pointer}.aui-root .flex-wrap{flex-wrap:wrap}.aui-root .items-center{align-items:center}.aui-root .justify-center{justify-content:center}.aui-root .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem*var(--tw-space-x-reverse));margin-left:calc(0.5rem*(1 - var(--tw-space-x-reverse)))}.aui-root .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}.aui-root .overflow-y-auto{overflow-y:auto}.aui-root .whitespace-pre-wrap{white-space:pre-wrap}.aui-root .break-words{overflow-wrap:break-word}.aui-root .break-all{word-break:break-all}.aui-root .rounded{border-radius:.25rem}.aui-root .rounded-full{border-radius:9999px}.aui-root .rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.aui-root .border{border-width:1px}.aui-root .border-l-8{border-left-width:8px}.aui-root .border-solid{border-style:solid}.aui-root .border-gray-400{--tw-border-opacity:1;border-color:rgba(203,213,224,var(--tw-border-opacity))}.aui-root .border-red-500{--tw-border-opacity:1;border-color:rgba(245,101,101,var(--tw-border-opacity))}.aui-root .border-orange-300{--tw-border-opacity:1;border-color:rgba(251,211,141,var(--tw-border-opacity))}.aui-root .border-green-600{--tw-border-opacity:1;border-color:rgba(56,161,105,var(--tw-border-opacity))}.aui-root .border-blue-300{--tw-border-opacity:1;border-color:rgba(144,205,244,var(--tw-border-opacity))}.aui-root .border-blue-600{--tw-border-opacity:1;border-color:rgba(49,130,206,var(--tw-border-opacity))}.aui-root .border-purple-300{--tw-border-opacity:1;border-color:rgba(214,188,250,var(--tw-border-opacity))}.aui-root .bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.aui-root .bg-gray-100{--tw-bg-opacity:1;background-color:rgba(247,250,252,var(--tw-bg-opacity))}.aui-root .bg-gray-200{--tw-bg-opacity:1;background-color:rgba(237,242,247,var(--tw-bg-opacity))}.aui-root .bg-gray-800{--tw-bg-opacity:1;background-color:rgba(45,55,72,var(--tw-bg-opacity))}.aui-root .bg-red-600{--tw-bg-opacity:1;background-color:rgba(229,62,62,var(--tw-bg-opacity))}.aui-root .bg-orange-600{--tw-bg-opacity:1;background-color:rgba(221,107,32,var(--tw-bg-opacity))}.aui-root .bg-yellow-600{--tw-bg-opacity:1;background-color:rgba(214,158,46,var(--tw-bg-opacity))}.aui-root .bg-green-600{--tw-bg-opacity:1;background-color:rgba(56,161,105,var(--tw-bg-opacity))}.aui-root .bg-teal-500{--tw-bg-opacity:1;background-color:rgba(56,178,172,var(--tw-bg-opacity))}.aui-root .bg-blue-400{--tw-bg-opacity:1;background-color:rgba(99,179,237,var(--tw-bg-opacity))}.aui-root .bg-blue-500{--tw-bg-opacity:1;background-color:rgba(66,153,225,var(--tw-bg-opacity))}.aui-root .bg-blue-600{--tw-bg-opacity:1;background-color:rgba(49,130,206,var(--tw-bg-opacity))}.aui-root .bg-indigo-400{--tw-bg-opacity:1;background-color:rgba(127,156,245,var(--tw-bg-opacity))}.aui-root .bg-purple-600{--tw-bg-opacity:1;background-color:rgba(128,90,213,var(--tw-bg-opacity))}.aui-root .hover\:bg-orange-300:hover{--tw-bg-opacity:1;background-color:rgba(251,211,141,var(--tw-bg-opacity))}.aui-root .hover\:bg-blue-300:hover{--tw-bg-opacity:1;background-color:rgba(144,205,244,var(--tw-bg-opacity))}.aui-root .hover\:bg-purple-300:hover{--tw-bg-opacity:1;background-color:rgba(214,188,250,var(--tw-bg-opacity))}.aui-root .fill-current{fill:currentColor}.aui-root .p-1{padding:.25rem}.aui-root .p-2{padding:.5rem}.aui-root .p-4{padding:1rem}.aui-root .p-8{padding:2rem}.aui-root .px-1{padding-left:.25rem;padding-right:.25rem}.aui-root .px-2{padding-left:.5rem;padding-right:.5rem}.aui-root .px-3{padding-left:.75rem;padding-right:.75rem}.aui-root .px-4{padding-left:1rem;padding-right:1rem}.aui-root .px-8{padding-left:2rem;padding-right:2rem}.aui-root .py-0{padding-top:0;padding-bottom:0}.aui-root .py-1{padding-top:.25rem;padding-bottom:.25rem}.aui-root .py-2{padding-top:.5rem;padding-bottom:.5rem}.aui-root .py-4{padding-top:1rem;padding-bottom:1rem}.aui-root .py-8{padding-top:2rem;padding-bottom:2rem}.aui-root .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.aui-root .pt-8{padding-top:2rem}.aui-root .pb-16{padding-bottom:4rem}.aui-root .text-left{text-align:left}.aui-root .text-center{text-align:center}.aui-root .align-baseline{vertical-align:baseline}.aui-root .font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.aui-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.aui-root .text-xs{font-size:.75rem}.aui-root .text-sm{font-size:.875rem}.aui-root .text-base{font-size:1rem}.aui-root .text-lg{font-size:1.125rem}.aui-root .text-2xl{font-size:1.5rem}.aui-root .text-3xl{font-size:1.875rem}.aui-root .text-4xl{font-size:2.25rem}.aui-root .font-thin{font-weight:100}.aui-root .font-extralight{font-weight:200}.aui-root .font-light{font-weight:300}.aui-root .font-bold{font-weight:700}.aui-root .uppercase{text-transform:uppercase}.aui-root .lowercase{text-transform:lowercase}.aui-root .capitalize{text-transform:capitalize}.aui-root .italic{font-style:italic}.aui-root .leading-normal{line-height:1.5}.aui-root .text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.aui-root .text-gray-200{--tw-text-opacity:1;color:rgba(237,242,247,var(--tw-text-opacity))}.aui-root .text-gray-500{--tw-text-opacity:1;color:rgba(160,174,192,var(--tw-text-opacity))}.aui-root .text-gray-600{--tw-text-opacity:1;color:rgba(113,128,150,var(--tw-text-opacity))}.aui-root .text-gray-700{--tw-text-opacity:1;color:rgba(74,85,104,var(--tw-text-opacity))}.aui-root .text-gray-800{--tw-text-opacity:1;color:rgba(45,55,72,var(--tw-text-opacity))}.aui-root .text-red-600{--tw-text-opacity:1;color:rgba(229,62,62,var(--tw-text-opacity))}.aui-root .text-orange-500{--tw-text-opacity:1;color:rgba(237,137,54,var(--tw-text-opacity))}.aui-root .text-orange-600{--tw-text-opacity:1;color:rgba(221,107,32,var(--tw-text-opacity))}.aui-root .text-teal-500{--tw-text-opacity:1;color:rgba(56,178,172,var(--tw-text-opacity))}.aui-root .text-blue-500{--tw-text-opacity:1;color:rgba(66,153,225,var(--tw-text-opacity))}.aui-root .text-purple-500{--tw-text-opacity:1;color:rgba(159,122,234,var(--tw-text-opacity))}.aui-root .hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgba(26,32,44,var(--tw-text-opacity))}.aui-root .hover\:text-orange-600:hover{--tw-text-opacity:1;color:rgba(221,107,32,var(--tw-text-opacity))}.aui-root .hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgba(49,130,206,var(--tw-text-opacity))}.aui-root .hover\:text-purple-600:hover{--tw-text-opacity:1;color:rgba(128,90,213,var(--tw-text-opacity))}.aui-root .underline{text-decoration:underline}.aui-root .no-underline{text-decoration:none}.aui-root *,.aui-root :after,.aui-root :before{--tw-shadow:0 0 transparent}.aui-root .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)}.aui-root .shadow,.aui-root .shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.aui-root .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06)}.aui-root .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.aui-root *,.aui-root :after,.aui-root :before{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(66,153,225,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.aui-root .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/);--tw-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-invert:var(--tw-empty,/*!*/ /*!*/);--tw-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-sepia:var(--tw-empty,/*!*/ /*!*/);--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.aui-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.aui-root .duration-150{transition-duration:.15s}.aui-root .ease-linear{transition-timing-function:linear}.aui-root .break-anywhere{overflow-wrap:anywhere}@media (min-width:768px){.aui-root .md\:flex{display:flex}}@media (min-width:1536px){.aui-root .\32xl\:mx-0{margin-left:0;margin-right:0}.aui-root .\32xl\:w-7\/12{width:58.333333%}.aui-root .\32xl\:rounded{border-radius:.25rem}.aui-root .\32xl\:px-4{padding-left:1rem;padding-right:1rem}} \ No newline at end of file diff --git a/src/main/resources/ui/index(1.2.9).js b/src/main/resources/ui/index(1.2.9).js deleted file mode 100644 index 349df1a..0000000 --- a/src/main/resources/ui/index(1.2.9).js +++ /dev/null @@ -1,32 +0,0 @@ -/*! For license information please see index.js.LICENSE.txt */ -!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,(()=>(()=>{var e,t,n={34553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(43407),i=n(88211),o=n(42409),s=n(90123),a=n(50570),c=n(68768),p="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:n,data:m,schema:y,schemaValue:g,it:v}=t;if(!1===v.createErrors)return;const b=y,_=i.strConcat(c.default.instancePath,v.errorPath);function $(e,t){return i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,r._`${e}.instancePath === ${_}`,r._`${e}.keyword in ${t}`,r._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function w(e,t){const r=[];for(const n in e){const e=t[n];d.test(e)&&r.push([n,x(e)])}return n.object(...r)}function j(e){return d.test(e)?new o._Code(o.safeStringify(e).replace(f,((e,t)=>`" + JSON.stringify(${s.getData(t,v)}) + "`)).replace(h,"")):r.stringify(e)}function x(e){return r._`function(){return ${j(e)}}`}n.if(r._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,s]=function(e){let t,n;for(const r in e){if("properties"===r||"items"===r)continue;const i=e[r];if("object"==typeof i){t||(t={});const e=t[r]={};for(const t in i)e[t]=[]}else n||(n={}),n[r]=[]}return[t,n]}(b);s&&function(i){const o=n.const("emErrors",r.stringify(i)),s=n.const("templates",w(i,y));n.forOf("err",c.default.vErrors,(e=>n.if($(e,o),(()=>n.code(r._`${o}[${e}.keyword].push(${e})`).assign(r._`${e}.${l}`,!0)))));const{singleError:p}=e;if(p){const e=n.let("message",r._`""`),i=n.let("paramsErrors",r._`[]`);u((t=>{n.if(e,(()=>n.code(r._`${e} += ${"string"==typeof p?p:";"}`))),n.code(r._`${e} += ${d(t)}`),n.assign(i,r._`${i}.concat(${o}[${t}])`)})),a.reportError(t,{message:e,params:r._`{errors: ${i}}`})}else u((e=>a.reportError(t,{message:d(e),params:r._`{errors: ${o}[${e}]}`})));function u(e){n.forIn("key",o,(t=>n.if(r._`${o}[${t}].length`,(()=>e(t)))))}function d(e){return r._`${e} in ${s} ? ${s}[${e}]() : ${g}[${e}]`}}(s),o&&function(e){const i=n.const("emErrors",r.stringify(e)),o=[];for(const t in e)o.push([t,w(e[t],y[t])]);const s=n.const("templates",n.object(...o)),p=n.scopeValue("obj",{ref:u,code:r.stringify(u)}),d=n.let("emPropParams"),f=n.let("emParamsErrors");n.forOf("err",c.default.vErrors,(e=>n.if($(e,i),(()=>{n.assign(d,r._`${p}[${e}.keyword]`),n.assign(f,r._`${i}[${e}.keyword][${e}.params[${d}]]`),n.if(f,(()=>n.code(r._`${f}.push(${e})`).assign(r._`${e}.${l}`,!0)))})))),n.forIn("key",i,(e=>n.forIn("keyProp",r._`${i}[${e}]`,(o=>{n.assign(f,r._`${i}[${e}][${o}]`),n.if(r._`${f}.length`,(()=>{const i=n.const("tmpl",r._`${s}[${e}] && ${s}[${e}][${o}]`);a.reportError(t,{message:r._`${i} ? ${i}() : ${g}[${e}][${o}]`,params:r._`{errors: ${f}}`})}))}))))}(o),function(e){const{props:o,items:s}=e;if(!o&&!s)return;const u=r._`typeof ${m} == "object"`,d=r._`Array.isArray(${m})`,f=n.let("emErrors");let h,v;const b=n.let("templates");function $(e,t){n.assign(f,r.stringify(e)),n.assign(b,w(e,t))}o&&s?(h=n.let("emChildKwd"),n.if(u),n.if(d,(()=>{$(s,y.items),n.assign(h,r.str`items`)}),(()=>{$(o,y.properties),n.assign(h,r.str`properties`)})),v=r._`[${h}]`):s?(n.if(d),$(s,y.items),v=r._`.items`):o&&(n.if(i.and(u,i.not(d))),$(o,y.properties),v=r._`.properties`),n.forOf("err",c.default.vErrors,(e=>function(e,t,o){n.if(i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,r._`${e}.instancePath.indexOf(${_}) === 0`),(()=>{const i=n.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),s=n.const("emMatches",r._`${i}.exec(${e}.instancePath.slice(${_}.length))`),a=n.const("emChild",r._`${s} && ${s}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);n.if(r._`${a} !== undefined && ${a} in ${t}`,(()=>o(a)))}))}(e,f,(t=>n.code(r._`${f}[${t}].push(${e})`).assign(r._`${e}.${l}`,!0))))),n.forIn("key",f,(e=>n.if(r._`${f}[${e}].length`,(()=>{a.reportError(t,{message:r._`${e} in ${b} ? ${b}[${e}]() : ${g}${v}[${e}]`,params:r._`{errors: ${f}[${e}]}`}),n.assign(r._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,r._`${_} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),n.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;en.if(function(e){return i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,i.or(r._`${e}.instancePath === ${_}`,i.and(r._`${e}.instancePath.indexOf(${_}) === 0`,r._`${e}.instancePath[${_}.length] === "/"`)),r._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>n.code(r._`${o}.push(${e})`).assign(r._`${e}.${l}`,!0))))),n.if(r._`${o}.length`,(()=>a.reportError(t,{message:j(e),params:r._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=n.const("emErrs",r._`[]`);n.forOf("err",c.default.vErrors,(t=>n.if(r._`!${t}.${l}`,(()=>n.code(r._`${e}.push(${t})`))))),n.assign(c.default.vErrors,e).assign(c.default.errors,r._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},43407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(29541),i=n(39940),o=n(72062),s=n(50841),a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=n(90123);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=n(88211);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=n(28572);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=n(37046);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},42409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(42409),i=n(41);var o=n(42409);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=n(41);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=A(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class p extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=A(this.rhs,e,t),this}get names(){return k(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class l extends p{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=A(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(I(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>T(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class v extends y{}v.kind="else";class b extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(N(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=A(this.condition,e,t),this}get names(){const e=super.names;return k(e,this.condition),this.else&&T(e,this.else.names),e}}b.kind="if";class _ extends y{}_.kind="for";class $ extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=A(this.iteration,e,t),this}get names(){return T(super.names,this.iteration.names)}}class w extends _{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=k(super.names,this.from);return k(e,this.to)}}class j extends _{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=A(this.iterable,e,t),this}get names(){return T(super.names,this.iterable.names)}}class x extends y{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class P extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&T(e,this.catch.names),this.finally&&T(e,this.finally.names),e}}class E extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class O extends y{render(e){return"finally"+super.render(e)}}function T(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function k(e,t){return t instanceof r._CodeOrName?T(e,t.names):e}function A(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function I(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}O.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new c(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new p(e,t,n))}add(e,n){return this._leafNode(new l(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new $(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new w(o,s,t,n),(()=>r(s)))}forOf(e,t,n,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(s,r._`${e}[${t}]`),n(s)}))}return this._for(new j("of",o,s,t),(()=>n(s)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const s=this._scope.toName(e);return this._for(new j("in",o,s,t),(()=>n(s)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new P;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(E,O)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new x(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=N;const R=C(t.operators.AND);t.and=function(...e){return e.reduce(R)};const M=C(t.operators.OR);function C(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(M)}},41:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(42409);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=a;const c=r._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:r.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,r);const a=this._scope[i]||(this._scope[i]=[]),c=a.length;return a[c]=t.ref,r.setValue(t,{property:i,itemIndex:c}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,s={},a){let c=r.nil;for(const p in e){const l=e[p];if(!l)continue;const u=s[p]=s[p]||new Map;l.forEach((e=>{if(u.has(e))return;u.set(e,o.Started);let s=n(e);if(s){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=r._`${c}${n} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);c=r._`${c}${s}${this.opts._n}`}u.set(e,o.Completed)}))}return c}}},50570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(88211),i=n(83261),o=n(68768);function s(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function a(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:c}=e,{gen:l,compositeRule:u,allErrors:d}=c,f=p(e,n,i);(null!=o?o:u||d)?s(l,f):a(c,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:c,compositeRule:l,allErrors:u}=i;s(c,p(e,n,r)),l||u||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,o.default.errors,(s=>{e.const(c,r._`${o.default.vErrors}[${s}]`),e.if(r._`${c}.instancePath === undefined`,(()=>e.assign(r._`${c}.instancePath`,(0,r.strConcat)(o.default.instancePath,a.errorPath)))),e.assign(r._`${c}.schemaPath`,r.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(r._`${c}.schema`,n),e.assign(r._`${c}.data`,i))}))};const c={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function p(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:s}=e,a=[l(s,n),u(e,n)];return function(e,{params:t,message:n},i){const{keyword:s,data:a,schemaValue:p,it:l}=e,{opts:u,propertyName:d,topSchemaRef:f,schemaPath:h}=l;i.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||r._`{}`]),u.messages&&i.push([c.message,"function"==typeof n?n(e):n]),u.verbose&&i.push([c.schema,p],[c.parentSchema,r._`${f}${h}`],[o.default.data,a]),d&&i.push([c.propertyName,d])}(e,t,a),i.object(...a)}(e,t,n)}function l({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function u({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let s=o?t:r.str`${t}/${e}`;return n&&(s=r.str`${s}${(0,i.getErrorPath)(n,i.Type.Str)}`),[c.schemaPath,s]}},3164:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(88211),i=n(28572),o=n(68768),s=n(75100),a=n(83261),c=n(90123);class p{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(e){const t=d.call(this,e);if(t)return t;const n=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:p}=this.opts.code,{ownProperties:l}=this.opts,u=new r.CodeGen(this.scope,{es5:a,lines:p,ownProperties:l});let f;e.$async&&(f=u.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=u.scopeName("validate");e.validateName=h;const m={gen:u,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),u.optimize(this.opts.code.optimize);const t=u.toString();y=`${u.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:u._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function u(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function d(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function f(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),r=(0,s._getFullPath)(this.opts.uriResolver,n);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return y.call(this,n,e);const o=(0,s.normalizeId)(r),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=h.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||l.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,r)),new p({schema:t,schemaId:n,root:e,baseId:i})}return y.call(this,n,a)}}t.SchemaEnv=p,t.compileSchema=l,t.resolveRef=function(e,t,n){var r;n=(0,s.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=f.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:s}=this.opts;i&&(o=new p({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[n]=u.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,r,e)}const{schemaId:c}=this.opts;return o=o||new p({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},68768:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},37046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(75100);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},75100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(83261),i=n(64063),o=n(80690),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&p(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function p(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=p(e))),t===1/0))return 1/0}return t}function l(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return u(e,r)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=u;const d=/#\/?$/;function f(e){return e?e.replace(d,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,s=f(e[n]||t),a={"":s},c=l(r,s,!1),p={},u=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=c+t;let s=a[i];function l(t){const n=this.opts.uriResolver.resolve;if(t=f(s?n(s,t):t),u.has(t))throw m(t);u.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?d(e,r.schema,t):t!==f(o)&&("#"===t[0]?(d(e,p[t],t),p[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[n]&&(s=l.call(this,e[n])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=s})),p;function d(e,t,n){if(void 0!==t&&!i(e,t))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},42580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},83261:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(88211),i=n(42409);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||h(e,`unknown keyword: "${n}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function p({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,s,a,c)=>{const p=void 0===a?s:a instanceof r.Name?(s instanceof r.Name?e(o,s,a):t(o,s,a),a):s instanceof r.Name?(t(o,a,s),s):n(s,a);return c!==r.Name||p instanceof r.Name?p:i(o,p)}}function l(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&u(e,n,t),n}function u(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),u(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=u;const d={};var f;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===f.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=h},94283:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},59642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(50570),i=n(88211),o=n(68768),s={message:"boolean schema is false"};function a(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),a(e)):n.var(t,!0)}},98239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(42580),i=n(94283),o=n(50570),s=n(88211),a=n(83261);var c;function p(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=p(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=p,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,a=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),p=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(p){const i=d(t,r,o.strictNumbers,c.Wrong);n.if(i,(()=>{a.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,a=r.let("dataType",s._`typeof ${i}`),c=r.let("coerced",s._`undefined`);"array"===o.coerceTypes&&r.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(d(t,i,o.strictNumbers),(()=>r.assign(c,i))))),r.if(s._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===o.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void r.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(c,s._`""`);case"number":return void r.elseIf(s._`${a} == "boolean" || ${i} === null - || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,s._`+${i}`);case"integer":return void r.elseIf(s._`${a} === "boolean" || ${i} === null - || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,s._`+${i}`);case"boolean":return void r.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return r.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(c,null);case"array":r.elseIf(s._`${a} === "string" || ${a} === "number" - || ${a} === "boolean" || ${i} === null`).assign(c,s._`[${i}]`)}}r.else(),h(e),r.endIf(),r.if(s._`${c} !== undefined`,(()=>{r.assign(i,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${n}]`,r)))}(e,c)}))}(e,t,a):h(e)}))}return p};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,n,r=c.Correct){const i=r===c.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return r===c.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,n?s._`isFinite(${t})`:s.nil)}}function d(e,t,n,r){if(1===e.length)return u(e[0],t,n,r);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,u(e,t,n,r));return i}t.checkDataType=u,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=h},40716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(88211),i=n(83261);function o(e,t,n){const{gen:o,compositeRule:s,data:a,opts:c}=e;if(void 0===n)return;const p=r._`${a}${(0,r.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${p}`);let l=r._`${p} === undefined`;"empty"===c.useDefaults&&(l=r._`${l} || ${p} === null || ${p} === ""`),o.if(l,r._`${p} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},90123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(59642),i=n(98239),o=n(94283),s=n(98239),a=n(40716),c=n(12287),p=n(13570),l=n(88211),u=n(68768),d=n(75100),f=n(83261),h=n(50570);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,l._`${u.default.data}, ${u.default.valCxt}`,r.$async,(()=>{e.code(l._`"use strict"; ${y(n,i)}`),function(e,t){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,l._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,l._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,l._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,l._`${u.default.valCxt}.${u.default.rootData}`),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,l._`""`),e.var(u.default.parentData,l._`undefined`),e.var(u.default.parentDataProperty,l._`undefined`),e.var(u.default.rootData,u.default.data),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`{}`)}))}(e,i),e.code(o)})):e.func(t,l._`${u.default.data}, ${function(e){return l._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?l._`, ${u.default.dynamicAnchors}={}`:l.nil}}={}`}(i)}`,r.$async,(()=>e.code(y(n,i)).code(o)))}function y(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?l._`/*# sourceURL=${n} */`:l.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function _(e,t){if(e.opts.jtd)return w(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);w(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function $({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(l._`${u.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=l.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(l._`${u.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function w(e,t,n,r){const{gen:i,schema:a,data:c,allErrors:p,opts:d,self:h}=e,{RULES:m}=h;function y(f){(0,o.shouldUseGroup)(a,f)&&(f.type?(i.if((0,s.checkDataType)(f.type,c,d.strictNumbers)),j(e,f),1===t.length&&t[0]===f.type&&n&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):j(e,f),p||i.if(l._`${u.default.errors} === ${r||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{x(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)x(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&S(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)y(e);y(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function j(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),g(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(u.default.vErrors,null),r.let(u.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",l._`${n}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(l._`${u.default.errors} === 0`,(()=>t.return(u.default.data)),(()=>t.throw(l._`new ${i}(${u.default.vErrors})`))):(t.assign(l._`${r}.errors`,u.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof l.Name&&e.assign(l._`${t}.props`,n),r instanceof l.Name&&e.assign(l._`${t}.items`,r)}(e),t.return(l._`${u.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",k(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",u.default.errors))}result(e,t,n){this.failResult((0,l.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=l.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,l.or)(l._`${r} === undefined`,t)),e!==l.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,l.or)(function(){if(n.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return l._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return l.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return l._`!${n}(${t})`}return l.nil}())}subschema(e,t){const n=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(n,this.it,e),(0,p.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),g(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",u.default.errors);_(e,o),r.var(t,l._`${o} === ${u.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function E(e,t,n,r){const i=new P(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,c.funcKeywordCode)(i,n):"macro"in n?(0,c.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(i,n)}t.KeywordCxt=P;const O=/^\/(?:[^~]|~0|~1)*$/,T=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function k(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return u.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=u.default.rootData}else{const s=T.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(c("property/index",a));return r[t-a]}if(a>t)throw new Error(c("data",a));if(o=n[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=l._`${o}${(0,l.getProperty)((0,f.unescapeJsonPointer)(e))}`,s=l._`${s} && ${o}`);return s;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=k},12287:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(88211),i=n(68768),o=n(41829),s=n(50570);function a(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:s,it:a}=e,p=t.macro.call(a.self,o,s,a),l=c(n,i,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const u=n.name("valid");e.subschema({schema:p,schemaPath:r.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:p,keyword:l,schema:u,parentSchema:d,$data:f,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!f&&t.compile?t.compile.call(h.self,u,d,h):t.validate,y=c(p,l,m),g=p.let("valid");function v(n=(t.async?r._`await `:r.nil)){const s=h.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!f||!1===t.schema);p.assign(g,r._`${n}${(0,o.callValidateCode)(e,y,s,a)}`,t.modifying)}function b(e){var n;p.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const n=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>v(r._`await `)),(t=>p.assign(g,!1).if(r._`${t} instanceof ${h.ValidationError}`,(()=>p.assign(e,r._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=r._`${y}.errors`;return p.assign(e,null),v(r.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:g)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},13570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(88211),i=n(83261);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==n){const{errorPath:s,dataPathArr:a,opts:c}=t;l(p.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${s}${(0,i.getErrorPath)(n,o,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function l(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==s&&(l(s instanceof r.Name?s:p.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},29541:(e,t,n)=>{"use strict";var r=n(25108);Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var i=n(90123);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var o=n(88211);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const s=n(28572),a=n(37046),c=n(42580),p=n(3164),l=n(88211),u=n(75100),d=n(98239),f=n(83261),h=n(27681),m=n(58862),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function $(e){var t,n,r,i,o,s,a,c,p,l,u,d,f,h,g,v,b,_,$,w,j,x,S,P,E;const O=e.strict,T=null===(t=e.code)||void 0===t?void 0:t.optimize,k=!0===T||void 0===T?1:T||0,A=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:y,I=null!==(i=e.uriResolver)&&void 0!==i?i:m.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:O)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:O)||void 0===c||c,strictTypes:null!==(l=null!==(p=e.strictTypes)&&void 0!==p?p:O)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(u=e.strictTuples)&&void 0!==u?u:O)&&void 0!==d?d:"log",strictRequired:null!==(h=null!==(f=e.strictRequired)&&void 0!==f?f:O)&&void 0!==h&&h,code:e.code?{...e.code,optimize:k,regExp:A}:{optimize:k,regExp:A},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(x=e.validateSchema)||void 0===x||x,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(E=e.int32range)||void 0===E||E,uriResolver:I}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...$(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:v,es5:t,lines:n}),this.logger=function(e){if(!1===e)return T;if(void 0===e)return r;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,c.getRules)(),j.call(this,b,e,"NOT SUPPORTED"),j.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=O.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=h;"id"===n&&(r={...h},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await p.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new p.SchemaEnv({schema:{},schemaId:n});if(t=p.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,n,t),!t)return(0,f.eachItem)(n,(e=>I.call(this,e))),this;R.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach((t=>I.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=C(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,u.normalizeId)(o||n);const c=u.getSchemaRefs.call(this,e,n);return a=new p.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:c}),this._cache.set(a.schema,a),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):p.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,e)}finally{this.opts=t}}}function j(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function P(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function O(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=w,w.ValidationError=s.default,w.MissingRefError=a.default;const T={log(){},warn(){},error(){}},k=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,t){const{RULES:n}=this;if((0,f.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!k.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:e})=>e===n));if(s||(s={type:n,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?N.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function N(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,M]}}},17226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64063);r.code='require("ajv/dist/runtime/equal").default',t.default=r},74246:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(60540);r.code='require("ajv/dist/runtime/uri").default',t.default=r},28572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},4393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(88211),i=n(83261),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?s(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:n,schema:o,data:s,keyword:a,it:c}=e;c.items=!0;const p=n.const("len",r._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${p} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=n.var("valid",r._`${p} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},69807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41829),i=n(88211),o=n(68768),s=n(83261),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:p,it:l}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:u,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,s.alwaysValidSchema)(l,n))return;const f=(0,r.allSchemaProperties)(a.properties),h=(0,r.allSchemaProperties)(a.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function y(r){if("all"===d.removeAdditional||d.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(u||t.break());if("object"==typeof n&&!(0,s.alwaysValidSchema)(l,n)){const n=t.name("valid");"failing"===d.removeAdditional?(g(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),m(r)}))):(g(r,n),u||t.if((0,i.not)(n),(()=>t.break())))}}}function g(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",c,(n=>{f.length||h.length?t.if(function(n){let o;if(f.length>8){const e=(0,s.schemaRefOrVal)(l,a.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=f.length?(0,i.or)(...f.map((e=>i._`${n} === ${e}`))):i.nil;return h.length&&(o=(0,i.or)(o,...h.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>y(n))):y(n)})),e.ok(i._`${p} === ${o.default.errors}`)}};t.default=a},61226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(83261),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(s)}))}};t.default=i},20908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(41829).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},48538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(83261),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:a}=e;let c,p;const{minContains:l,maxContains:u}=o;a.opts.next?(c=void 0===l?1:l,p=u):c=1;const d=t.const("len",r._`${s}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,n)){let t=r._`${d} >= ${c}`;return void 0!==p&&(t=r._`${t} && ${d} <= ${p}`),void e.pass(t)}a.items=!0;const f=t.name("valid");function h(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===p?t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0).break())):(t.if(r._`${e} > ${p}`,(()=>t.assign(f,!1).break())),1===c?t.assign(f,!0):t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0))))}(n)))))}function m(n,r){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===p&&1===c?m(f,(()=>t.if(f,(()=>t.break())))):0===c?(t.let(f,!0),void 0!==p&&t.if(r._`${s}.length > 0`,h)):(t.let(f,!1),h()),e.result(f,(()=>e.reset()))}};t.default=o},52453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(88211),i=n(83261),o=n(41829);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e}, - missingProperty: ${i}, - depsCount: ${t}, - deps: ${n}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const l=(0,o.propertyInData)(n,i,c,s.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),s.allErrors?n.if(l,(()=>{for(const t of p)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${l} && (${(0,o.checkMissingProp)(e,p,a)})`),(0,o.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:s,it:a}=e,c=n.name("valid");for(const p in t)(0,i.alwaysValidSchema)(a,t[p])||(n.if((0,o.propertyInData)(n,r,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},89390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(83261),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),c=s(o,"else");if(!a&&!c)return;const p=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(l,u("then",n),u("else",n))}else a?t.if(l,u("then")):t.if((0,r.not)(l),u("else"));function u(n,i){return()=>{const o=e.subschema({keyword:n},l);t.assign(p,l),e.mergeValidEvaluated(o,p),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(p,(()=>e.error(!0)))}};function s(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},20247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4393),i=n(26165),o=n(830),s=n(81779),a=n(48538),c=n(52453),p=n(96999),l=n(69807),u=n(92029),d=n(27339),f=n(1801),h=n(20908),m=n(98227),y=n(61226),g=n(89390),v=n(44036);t.default=function(e=!1){const t=[f.default,h.default,m.default,y.default,g.default,v.default,p.default,l.default,c.default,u.default,d.default];return e?t.push(i.default,s.default):t.push(r.default,o.default),t.push(a.default),t}},830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(88211),i=n(83261),o=n(41829),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:o,parentSchema:s,data:a,keyword:c,it:p}=e;!function(e){const{opts:r,errSchemaPath:o}=p,s=n.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(p,e,r.strictTuples)}}(s),p.opts.unevaluated&&n.length&&!0!==p.items&&(p.items=i.mergeEvaluated.items(o,n.length,p.items));const l=o.name("valid"),u=o.const("len",r._`${a}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(p,t)||(o.if(r._`${u} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},l))),e.ok(l))}))}t.validateTuple=a,t.default=s},81779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(83261),o=n(41829),s=n(4393),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},1801:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(83261),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},98227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(83261),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=n,c=t.let("valid",!1),p=t.let("passing",null),l=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((n,o)=>{let a;(0,i.alwaysValidSchema)(s,n)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(r._`${l} && ${c}`).assign(c,!1).assign(p,r._`[${p}, ${o}]`).else(),t.if(l,(()=>{t.assign(c,!0),t.assign(p,o),a&&e.mergeEvaluated(a,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},27339:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41829),i=n(88211),o=n(83261),s=n(83261),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:p}=e,{opts:l}=p,u=(0,r.allSchemaProperties)(n),d=u.filter((e=>(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length||d.length===u.length&&(!p.opts.unevaluated||!0===p.props))return;const f=l.strictSchema&&!l.allowMatchingProperties&&c.properties,h=t.name("valid");!0===p.props||p.props instanceof i.Name||(p.props=(0,s.evaluatedPropsToName)(t,p.props));const{props:m}=p;function y(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",a,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=d.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:s.Type.Str},h),p.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||p.allErrors||t.if((0,i.not)(h),(()=>t.break()))}))}))}!function(){for(const e of u)f&&y(e),p.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=a},26165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(830),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},92029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90123),i=n(41829),o=n(83261),s=n(69807),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new r.KeywordCxt(p,s.default,"additionalProperties"));const l=(0,i.allSchemaProperties)(n);for(const e of l)p.definedProperties.add(e);p.opts.unevaluated&&l.length&&!0!==p.props&&(p.props=o.mergeEvaluated.props(t,(0,o.toHash)(l),p.props));const u=l.filter((e=>!(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length)return;const d=t.name("valid");for(const n of u)f(n)?h(n):(t.if((0,i.propertyInData)(t,c,n,p.opts.ownProperties)),h(n),p.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function f(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},96999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(83261),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,n))return;const a=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=o},44036:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(83261),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},41829:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(88211),i=n(83261),o=n(68768),s=n(83261);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function p(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(c(e,t,n))):o}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(p(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(p(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${c(e,t,n)}`:o},t.noPropertyInData=p,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:s,errorPath:a},it:c},p,l,u){const d=u?r._`${e}, ${t}, ${i}${s}`:t,f=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=r._`${d}, ${n.object(...f)}`;return l!==r.nil?r._`${p}.call(${l}, ${h})`:r._`${p}(${h})`};const u=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===o.code?u:(0,s.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(s){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},a),t.if((0,r.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,r.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},34215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},63068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(34215),i=n(55407),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},55407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(37046),i=n(41829),o=n(88211),s=n(68768),a=n(3164),c=n(83261),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:s,schemaEnv:c,validateName:p,opts:d,self:f}=i,{root:h}=c;if(("#"===n||"#/"===n)&&s===h.baseId)return function(){if(c===h)return u(e,p,c,c.$async);const n=t.scopeValue("root",{ref:h});return u(e,o._`${n}.validate`,h,h.$async)}();const m=a.resolveRef.call(f,h,s,n);if(void 0===m)throw new r.default(i.opts.uriResolver,s,n);return m instanceof a.SchemaEnv?function(t){const n=l(e,t);u(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===d.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),s=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function l(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function u(e,t,n,r){const{gen:a,it:p}=e,{allErrors:l,schemaEnv:u,opts:d}=p,f=d.passContext?s.default.this:o.nil;function h(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function m(e){var t;if(!p.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(r&&!r.dynamicProps)void 0!==r.props&&(p.props=c.mergeEvaluated.props(a,r.props,p.props));else{const t=a.var("props",o._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,o.Name)}if(!0!==p.items)if(r&&!r.dynamicItems)void 0!==r.items&&(p.items=c.mergeEvaluated.items(a,r.items,p.items));else{const t=a.var("items",o._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,o.Name)}}r?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),m(t),l||a.assign(n,!0)}),(e=>{a.if(o._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),h(e),l||a.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,f),(()=>m(t)),(()=>h(t)))}t.getValidate=l,t.callRef=u,t.default=p},72062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(54027),o=n(3164),s=n(83261),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:p}=e,{oneOf:l}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=a.propertyName;if("string"!=typeof u)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),f=t.const("tag",r._`${n}${(0,r.getProperty)(u)}`);function h(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${f} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(c);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:u}))),e.ok(d)}};t.default=a},54027:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},39940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(63068),i=n(87087),o=n(20247),s=n(75766),a=n(73065),c=[r.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},29629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:s,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:l,schemaEnv:u,self:d}=c;p.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:p.code.formats}),s=n.const("fDef",r._`${o}[${a}]`),c=n.let("fType"),l=n.let("format");n.if(r._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>n.assign(c,r._`${s}.type || "string"`).assign(l,r._`${s}.validate`)),(()=>n.assign(c,r._`"string"`).assign(l,s))),e.fail$data((0,r.or)(!1===p.strictSchema?r.nil:r._`${a} && !${l}`,function(){const e=u.$async?r._`(${s}.async ? await ${l}(${i}) : ${l}(${i}))`:r._`${l}(${i})`,n=r._`(typeof ${l} == "function" ? ${e} : ${l}.test(${i}))`;return r._`${l} && ${l} !== true && ${c} === ${t} && !${n}`}()))}():function(){const o=d.formats[s];if(!o)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${l}"`}d.logger.warn(e())}();if(!0===o)return;const[a,c,f]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):p.code.formats?r._`${p.code.formats}${(0,r.getProperty)(s)}`:void 0,i=n.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return r._`await ${f}(${i})`}return"function"==typeof c?r._`${f}(${i})`:r._`${f}.test(${i})`}())}())}};t.default=i},75766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(29629).default];t.default=r},73065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},6316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(83261),o=n(17226),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=s},69233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(83261),o=n(17226),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:s,schema:a,schemaCode:c,it:p}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=p.opts.loopEnum;let u;const d=()=>null!=u?u:u=(0,i.useFunc)(t,o.default);let f;if(l||s)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",c,(e=>t.if(r._`${d()}(${n}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);f=(0,r.or)(...a.map(((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?r._`${d()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(f)}};t.default=s},87087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50381),i=n(84056),o=n(77620),s=n(76230),a=n(62001),c=n(77402),p=n(75242),l=n(76144),u=n(6316),d=n(69233),f=[r.default,i.default,o.default,s.default,a.default,c.default,p.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,d.default];t.default=f},75242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},77620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=n(83261),o=n(74246),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,p=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${p} ${c} ${s}`)}};t.default=s},50381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=a},62001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},84056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88211),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),c=s?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${i} === 0 || (${a} = ${n}/${i}, ${c}))`)}};t.default=i},76230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41829),i=n(88211),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=n?i._`(new RegExp(${s}, ${c}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${p}.test(${t})`)}};t.default=o},77402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41829),i=n(88211),o=n(83261),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:s,data:a,$data:c,it:p}=e,{opts:l}=p;if(!c&&0===n.length)return;const u=n.length>=l.loopRequired;if(p.allErrors?function(){if(u||c)e.block$data(i.nil,d);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(u||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,s,(()=>{t.assign(o,(0,r.propertyInData)(t,a,n,l.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(p,t,p.opts.strictRequired)}}function d(){t.forOf("prop",s,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,l.ownProperties),(()=>e.error()))}))}}};t.default=s},76144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(98239),i=n(88211),o=n(83261),s=n(17226),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:p,schemaCode:l,it:u}=e;if(!a&&!c)return;const d=t.let("valid"),f=p.items?(0,r.getSchemaTypes)(p.items):[];function h(o,s){const a=t.name("item"),c=(0,r.checkDataTypes)(f,a,u.opts.strictNumbers,r.DataType.Wrong),p=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(a,i._`${n}[${o}]`),t.if(c,i._`continue`),f.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(s,i._`${p}[${a}]`),e.error(),t.assign(d,!1).break()})).code(i._`${p}[${a}] = ${o}`)}))}function m(r,a){const c=(0,o.useFunc)(t,s.default),p=t.name("outer");t.label(p).for(i._`;${r}--;`,(()=>t.for(i._`${a} = ${r}; ${a}--;`,(()=>t.if(i._`${c}(${n}[${r}], ${n}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(p)}))))))}e.block$data(d,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(d,!0),t.if(i._`${r} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?h:m)(r,o)))}),i._`${l} === false`),e.ok(d)}};t.default=a},80690:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,s,a,c,p,l,u){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in r(o,s,a,c,p,l,u),o){var f=o[d];if(Array.isArray(f)){if(d in t.arrayKeywords)for(var h=0;h{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStringifiedDocument=t.isParsedDocument=t.isOldAsyncAPIDocument=t.isAsyncAPIDocument=t.toAsyncAPIDocument=t.createAsyncAPIDocument=void 0;const r=n(99711),i=n(21634),o=n(28227),s=n(8262);function a(e){switch(e.semver.major){case 2:return new r.AsyncAPIDocumentV2(e.parsed,{asyncapi:e,pointer:"/"});case 3:return new r.AsyncAPIDocumentV3(e.parsed,{asyncapi:e,pointer:"/"});default:throw new Error(`Unsupported AsyncAPI version: ${e.semver.version}`)}}function c(e){return!!e&&(e instanceof r.AsyncAPIDocumentV2||e instanceof r.AsyncAPIDocumentV3||!(!e||"function"!=typeof e.json)&&e.json()[s.xParserApiVersion]===r.ParserAPIVersion)}function p(e){return"object"==typeof e&&null!==e&&Boolean(e[s.xParserSpecParsed])}t.createAsyncAPIDocument=a,t.toAsyncAPIDocument=function(e){return c(e)?e:p(e)?a((0,o.createDetailedAsyncAPI)(e,e)):(0,i.unstringify)(e)},t.isAsyncAPIDocument=c,t.isOldAsyncAPIDocument=function(e){if(e&&"function"==typeof e.json){const t=e.json()[s.xParserApiVersion];return void 0===t||0===t}return!1},t.isParsedDocument=p,t.isStringifiedDocument=function(e){try{return"object"==typeof(e="string"==typeof e?JSON.parse(e):e)&&null!==e&&Boolean(e[s.xParserSpecParsed])&&Boolean(e[s.xParserSpecStringified])}catch(e){return!1}}},4613:(e,t)=>{"use strict";var n,r;function i(e,t,o){if(!e)return;const{schemaTypesToIterate:s,callback:a,seenSchemas:c}=o,p=e.json();if(c.has(p))return;c.add(p);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 r=e.additionalItems();"object"==typeof r&&i(r,null,t),t.schemaTypesToIterate.includes("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(p))}function o(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.Headers)&&e.hasHeaders()&&i(e.headers(),null,t),n.includes(r.Payloads)&&e.hasPayload()&&i(e.payload(),null,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.traverseAsyncApiDocument=t.SchemaTypesToIterate=t.SchemaIteratorCallbackType=void 0,function(e){e.NEW_SCHEMA="NEW_SCHEMA",e.END_SCHEMA="END_SCHEMA"}(n=t.SchemaIteratorCallbackType||(t.SchemaIteratorCallbackType={})),function(e){e.Parameters="parameters",e.Payloads="payloads",e.Headers="headers",e.Components="components",e.Objects="objects",e.Arrays="arrays",e.OneOfs="oneOfs",e.AllOfs="allOfs",e.AnyOfs="anyOfs",e.Nots="nots",e.PropertyNames="propertyNames",e.PatternProperties="patternProperties",e.Contains="contains",e.Ifs="ifs",e.Thenes="thenes",e.Elses="elses",e.Dependencies="dependencies",e.Definitions="definitions"}(r=t.SchemaTypesToIterate||(t.SchemaTypesToIterate={})),t.traverseAsyncApiDocument=function(e,t,n=[]){0===n.length&&(n=Object.values(r));const s={callback:t,schemaTypesToIterate:n,seenSchemas:new Set};if(e.channels().isEmpty()||e.channels().all().forEach((e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.Parameters)&&Object.values(e.parameters().filterBy((e=>e.hasSchema()))||{}).forEach((e=>{i(e.schema(),null,t)})),e.messages().all().forEach((e=>{o(e,t)}))}(e,s)})),n.includes(r.Components)&&!e.components().isEmpty()){const t=e.components();Object.values(t.messages().all()||{}).forEach((e=>{o(e,s)})),Object.values(t.schemas().all()||{}).forEach((e=>{i(e,null,s)})),n.includes(r.Parameters)&&Object.values(t.channelParameters().filterBy((e=>e.hasSchema()))).forEach((e=>{i(e.schema(),null,s)})),Object.values(t.messageTraits().all()||{}).forEach((e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.Headers)&&e.hasHeaders()&&i(e.headers(),null,t)}(e,s)}))}}},41029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParserAPIVersion=void 0,t.ParserAPIVersion=3},87506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseModel=void 0,t.BaseModel=class{constructor(e,t={}){this._json=e,this._meta=t}json(e){return void 0===e||null===this._json||void 0===this._json?this._json:this._json[e]}meta(e){return void 0===e?this._meta:this._meta?this._meta[e]:void 0}jsonPath(e){return"string"!=typeof e?this._meta.pointer:`${this._meta.pointer}/${e}`}createModel(e,t,n){return new e(t,Object.assign(Object.assign({},n),{asyncapi:this._meta.asyncapi}))}}},19488:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},41318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},31247:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0,t.Collection=class extends Array{constructor(e,t={}){super(...e),this.collections=e,this._meta=t}has(e){return void 0!==this.get(e)}all(){return this.collections}isEmpty(){return 0===this.collections.length}filterBy(e){return this.collections.filter(e)}meta(e){return void 0===e?this._meta:this._meta?this._meta[String(e)]:void 0}}},39762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},46449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},51760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalDocumentations=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.ExternalDocumentations=i},99711:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(91776),t),i(n(11195),t),i(n(41029),t),i(n(87506),t),i(n(19488),t),i(n(5205),t),i(n(99594),t),i(n(41318),t),i(n(44634),t),i(n(2504),t),i(n(31247),t),i(n(39762),t),i(n(21078),t),i(n(48139),t),i(n(46449),t),i(n(230),t),i(n(3272),t),i(n(51760),t),i(n(67137),t),i(n(27990),t),i(n(17595),t),i(n(9532),t),i(n(1412),t),i(n(18593),t),i(n(15548),t),i(n(28875),t),i(n(48945),t),i(n(63221),t),i(n(22874),t),i(n(52959),t),i(n(77186),t),i(n(20919),t),i(n(78583),t),i(n(92469),t),i(n(67990),t),i(n(90964),t),i(n(7527),t),i(n(61746),t),i(n(77990),t),i(n(20262),t),i(n(85797),t),i(n(34241),t),i(n(98341),t),i(n(778),t),i(n(64780),t),i(n(24851),t),i(n(37020),t),i(n(31591),t)},67137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},27990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},17595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},18593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},15548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},28875:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48945:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},63221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},22874:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},52959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},92469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},67990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},90964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},61746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34241:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},98341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},64780:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},24851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},37020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},31591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemasFromDocument=t.createModel=void 0;const r=n(4613);t.createModel=function(e,t,n,r){return new e(t,Object.assign(Object.assign({},n),{asyncapi:n.asyncapi||(null==r?void 0:r.meta().asyncapi)}))},t.schemasFromDocument=function(e,t,n){const i=new Set,o=new Set;let s=Object.values(r.SchemaTypesToIterate);return n||(s=s.filter((e=>e!==r.SchemaTypesToIterate.Components))),(0,r.traverseAsyncApiDocument)(e,(function(e){i.has(e.json())||(i.add(e.json()),o.add(e))}),s),new t(Array.from(o))}},26325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAPIDocument=void 0;const r=n(87506),i=n(84505),o=n(91548),s=n(14620),a=n(21688),c=n(88537),p=n(74262),l=n(80758),u=n(53890),d=n(52773),f=n(98643),h=n(9481),m=n(99237),y=n(28227),g=n(33584);class v extends r.BaseModel{version(){return this._json.asyncapi}defaultContentType(){return this._json.defaultContentType}hasDefaultContentType(){return!!this._json.defaultContentType}info(){return this.createModel(i.Info,this._json.info,{pointer:"/info"})}servers(){return new l.Servers(Object.entries(this._json.servers||{}).map((([e,t])=>this.createModel(u.Server,t,{id:e,pointer:`/servers/${e}`}))))}channels(){return new o.Channels(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(s.Channel,t,{id:e,address:e,pointer:`/channels/${(0,y.tilde)(e)}`}))))}operations(){const e=[];return this.channels().forEach((t=>e.push(...t.operations()))),new p.Operations(e)}messages(){const e=[];return this.operations().forEach((t=>t.messages().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))))),new c.Messages(e)}schemas(){return(0,g.schemasFromDocument)(this,h.Schemas,!1)}securitySchemes(){var e;return new d.SecuritySchemes(Object.entries((null===(e=this._json.components)||void 0===e?void 0:e.securitySchemes)||{}).map((([e,t])=>this.createModel(f.SecurityScheme,t,{id:e,pointer:`/components/securitySchemes/${e}`}))))}components(){return this.createModel(a.Components,this._json.components||{},{pointer:"/components"})}allServers(){const e=this.servers().all();return this.components().servers().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new l.Servers(e)}allChannels(){const e=this.channels().all();return this.components().channels().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new o.Channels(e)}allOperations(){const e=[];return this.allChannels().forEach((t=>e.push(...t.operations()))),new p.Operations(e)}allMessages(){const e=[];return this.allOperations().forEach((t=>t.messages().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))))),this.components().messages().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new c.Messages(e)}allSchemas(){return(0,g.schemasFromDocument)(this,h.Schemas,!0)}extensions(){return(0,m.extensions)(this)}}t.AsyncAPIDocument=v},580:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binding=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{protocol(){return this._meta.protocol}version(){return this._json.bindingVersion||"latest"}value(){const e=Object.assign({},this._json);return delete e.bindingVersion,e}extensions(){return(0,i.extensions)(this)}}t.Binding=o},9143:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bindings=void 0;const r=n(31247),i=n(23415),o=n(25777),s=n(33584),a=n(8262);class c extends r.Collection{get(e){return this.collections.find((t=>t.protocol()===e))}extensions(){const e=[];return Object.entries(this._meta.originalData||{}).forEach((([t,n])=>{a.EXTENSION_REGEX.test(t)&&e.push((0,s.createModel)(o.Extension,n,{id:t,pointer:`${this._meta.pointer}/${t}`,asyncapi:this._meta.asyncapi}))})),new i.Extensions(e)}}t.Bindings=c},87129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelParameter=void 0;const r=n(87506),i=n(94020),o=n(99237);class s extends r.BaseModel{id(){return this._meta.id}hasSchema(){return!!this._json.schema}schema(){if(this._json.schema)return this.createModel(i.Schema,this._json.schema,{pointer:`${this._meta.pointer}/schema`})}hasLocation(){return!!this._json.location}location(){return this._json.location}hasDescription(){return(0,o.hasDescription)(this)}description(){return(0,o.description)(this)}extensions(){return(0,o.extensions)(this)}}t.ChannelParameter=s},65980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelParameters=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.ChannelParameters=i},14620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channel=void 0;const r=n(87506),i=n(65980),o=n(87129),s=n(88537),a=n(74262),c=n(7523),p=n(80758),l=n(53890),u=n(99237);class d extends r.BaseModel{id(){return this._meta.id}address(){return this._meta.address}hasDescription(){return(0,u.hasDescription)(this)}description(){return(0,u.description)(this)}servers(){var e;const t=[],n=this._json.servers||[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.servers)||{}).forEach((([e,r])=>{(0===n.length||n.includes(e))&&t.push(this.createModel(l.Server,r,{id:e,pointer:`/servers/${e}`}))})),new p.Servers(t)}operations(){const e=[];return["publish","subscribe"].forEach((t=>{const n=this._json[t],r=n&&n.operationId||t;n&&e.push(this.createModel(c.Operation,n,{id:r,action:t,pointer:`${this._meta.pointer}/${t}`}))})),new a.Operations(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new s.Messages(e)}parameters(){return new i.ChannelParameters(Object.entries(this._json.parameters||{}).map((([e,t])=>this.createModel(o.ChannelParameter,t,{id:e,pointer:`${this._meta.pointer}/parameters/${e}`}))))}bindings(){return(0,u.bindings)(this)}extensions(){return(0,u.extensions)(this)}}t.Channel=d},91548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channels=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Channels=i},21688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Components=void 0;const r=n(87506),i=n(9143),o=n(580),s=n(14620),a=n(87129),c=n(45219),p=n(44495),l=n(69588),u=n(94020),d=n(98643),f=n(53890),h=n(12162),m=n(99237),y=n(80758),g=n(91548),v=n(88537),b=n(9481),_=n(65980),$=n(45466),w=n(31334),j=n(60603),x=n(52773),S=n(61617),P=n(74262),E=n(18467),O=n(28227);class T extends r.BaseModel{servers(){return this.createCollection("servers",y.Servers,f.Server)}channels(){return new g.Channels(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(s.Channel,t,{id:e,address:"",pointer:`/components/channels/${(0,O.tilde)(e)}`}))))}operations(){return new P.Operations([])}messages(){return this.createCollection("messages",v.Messages,E.Message)}schemas(){return this.createCollection("schemas",b.Schemas,u.Schema)}channelParameters(){return this.createCollection("parameters",_.ChannelParameters,a.ChannelParameter)}serverVariables(){return this.createCollection("serverVariables",$.ServerVariables,h.ServerVariable)}operationTraits(){return this.createCollection("operationTraits",w.OperationTraits,l.OperationTrait)}messageTraits(){return this.createCollection("messageTraits",j.MessageTraits,p.MessageTrait)}correlationIds(){return this.createCollection("correlationIds",S.CorrelationIds,c.CorrelationId)}securitySchemes(){return this.createCollection("securitySchemes",x.SecuritySchemes,d.SecurityScheme)}serverBindings(){return this.createBindings("serverBindings")}channelBindings(){return this.createBindings("channelBindings")}operationBindings(){return this.createBindings("operationBindings")}messageBindings(){return this.createBindings("messageBindings")}extensions(){return(0,m.extensions)(this)}isEmpty(){return 0===Object.keys(this._json).length}createCollection(e,t,n){const r=[];return Object.entries(this._json[e]||{}).forEach((([t,i])=>{r.push(this.createModel(n,i,{id:t,pointer:`/components/${e}/${t}`}))})),new t(r)}createBindings(e){return Object.entries(this._json[e]||{}).reduce(((t,[n,r])=>{const s=r||{},a=this.meta("asyncapi"),c=`components/${e}/${n}`;return t[n]=new i.Bindings(Object.entries(s).map((([e,t])=>this.createModel(o.Binding,t,{protocol:e,pointer:`${c}/${e}`}))),{originalData:s,asyncapi:a,pointer:c}),t}),{})}}t.Components=T},90852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contact=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{hasName(){return!!this._json.name}name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}hasEmail(){return!!this._json.email}email(){return this._json.email}extensions(){return(0,i.extensions)(this)}}t.Contact=o},45219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationId=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{location(){return this._json.location}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}extensions(){return(0,i.extensions)(this)}}t.CorrelationId=o},61617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationIds=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.CorrelationIds=i},25777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=void 0;const r=n(87506);class i extends r.BaseModel{id(){return this._meta.id}value(){return this._json}}t.Extension=i},23415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions=void 0;const r=n(31247);class i extends r.Collection{get(e){return e=e.startsWith("x-")?e:`x-${e}`,this.collections.find((t=>t.id()===e))}}t.Extensions=i},66241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalDocumentation=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{url(){return this._json.url}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}extensions(){return(0,i.extensions)(this)}}t.ExternalDocumentation=o},91776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagsV2=t.TagV2=t.ServersV2=t.ServerV2=t.ServerVariablesV2=t.ServerVariableV2=t.SecuritySchemesV2=t.SecuritySchemeV2=t.SchemasV2=t.SchemaV2=t.OperationsV2=t.OperationV2=t.OperationTraitsV2=t.OperationTraitV2=t.OAuthFlowsV2=t.OAuthFlowV2=t.MessagesV2=t.MessageV2=t.MessageTraitsV2=t.MessageTraitV2=t.MessageExamplesV2=t.MessageExampleV2=t.LicenseV2=t.InfoV2=t.ExternalDocumentationV2=t.ExtensionsV2=t.ExtensionV2=t.CorrelationIdV2=t.ContactV2=t.ComponentsV2=t.ChannelsV2=t.ChannelV2=t.ChannelParametersV2=t.ChannelParameterV2=t.BindingsV2=t.BindingV2=t.AsyncAPIDocumentV2=void 0;var r=n(26325);Object.defineProperty(t,"AsyncAPIDocumentV2",{enumerable:!0,get:function(){return r.AsyncAPIDocument}});var i=n(580);Object.defineProperty(t,"BindingV2",{enumerable:!0,get:function(){return i.Binding}});var o=n(9143);Object.defineProperty(t,"BindingsV2",{enumerable:!0,get:function(){return o.Bindings}});var s=n(87129);Object.defineProperty(t,"ChannelParameterV2",{enumerable:!0,get:function(){return s.ChannelParameter}});var a=n(65980);Object.defineProperty(t,"ChannelParametersV2",{enumerable:!0,get:function(){return a.ChannelParameters}});var c=n(14620);Object.defineProperty(t,"ChannelV2",{enumerable:!0,get:function(){return c.Channel}});var p=n(91548);Object.defineProperty(t,"ChannelsV2",{enumerable:!0,get:function(){return p.Channels}});var l=n(21688);Object.defineProperty(t,"ComponentsV2",{enumerable:!0,get:function(){return l.Components}});var u=n(90852);Object.defineProperty(t,"ContactV2",{enumerable:!0,get:function(){return u.Contact}});var d=n(45219);Object.defineProperty(t,"CorrelationIdV2",{enumerable:!0,get:function(){return d.CorrelationId}});var f=n(25777);Object.defineProperty(t,"ExtensionV2",{enumerable:!0,get:function(){return f.Extension}});var h=n(23415);Object.defineProperty(t,"ExtensionsV2",{enumerable:!0,get:function(){return h.Extensions}});var m=n(66241);Object.defineProperty(t,"ExternalDocumentationV2",{enumerable:!0,get:function(){return m.ExternalDocumentation}});var y=n(84505);Object.defineProperty(t,"InfoV2",{enumerable:!0,get:function(){return y.Info}});var g=n(60082);Object.defineProperty(t,"LicenseV2",{enumerable:!0,get:function(){return g.License}});var v=n(50765);Object.defineProperty(t,"MessageExampleV2",{enumerable:!0,get:function(){return v.MessageExample}});var b=n(95501);Object.defineProperty(t,"MessageExamplesV2",{enumerable:!0,get:function(){return b.MessageExamples}});var _=n(44495);Object.defineProperty(t,"MessageTraitV2",{enumerable:!0,get:function(){return _.MessageTrait}});var $=n(60603);Object.defineProperty(t,"MessageTraitsV2",{enumerable:!0,get:function(){return $.MessageTraits}});var w=n(18467);Object.defineProperty(t,"MessageV2",{enumerable:!0,get:function(){return w.Message}});var j=n(88537);Object.defineProperty(t,"MessagesV2",{enumerable:!0,get:function(){return j.Messages}});var x=n(63);Object.defineProperty(t,"OAuthFlowV2",{enumerable:!0,get:function(){return x.OAuthFlow}});var S=n(57310);Object.defineProperty(t,"OAuthFlowsV2",{enumerable:!0,get:function(){return S.OAuthFlows}});var P=n(69588);Object.defineProperty(t,"OperationTraitV2",{enumerable:!0,get:function(){return P.OperationTrait}});var E=n(31334);Object.defineProperty(t,"OperationTraitsV2",{enumerable:!0,get:function(){return E.OperationTraits}});var O=n(7523);Object.defineProperty(t,"OperationV2",{enumerable:!0,get:function(){return O.Operation}});var T=n(74262);Object.defineProperty(t,"OperationsV2",{enumerable:!0,get:function(){return T.Operations}});var k=n(94020);Object.defineProperty(t,"SchemaV2",{enumerable:!0,get:function(){return k.Schema}});var A=n(9481);Object.defineProperty(t,"SchemasV2",{enumerable:!0,get:function(){return A.Schemas}});var I=n(98643);Object.defineProperty(t,"SecuritySchemeV2",{enumerable:!0,get:function(){return I.SecurityScheme}});var N=n(52773);Object.defineProperty(t,"SecuritySchemesV2",{enumerable:!0,get:function(){return N.SecuritySchemes}});var R=n(12162);Object.defineProperty(t,"ServerVariableV2",{enumerable:!0,get:function(){return R.ServerVariable}});var M=n(45466);Object.defineProperty(t,"ServerVariablesV2",{enumerable:!0,get:function(){return M.ServerVariables}});var C=n(53890);Object.defineProperty(t,"ServerV2",{enumerable:!0,get:function(){return C.Server}});var D=n(80758);Object.defineProperty(t,"ServersV2",{enumerable:!0,get:function(){return D.Servers}});var q=n(3410);Object.defineProperty(t,"TagV2",{enumerable:!0,get:function(){return q.Tag}});var F=n(82385);Object.defineProperty(t,"TagsV2",{enumerable:!0,get:function(){return F.Tags}})},84505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Info=void 0;const r=n(87506),i=n(90852),o=n(66241),s=n(60082),a=n(82385),c=n(3410),p=n(99237);class l extends r.BaseModel{title(){return this._json.title}version(){return this._json.version}hasId(){return!!this._meta.asyncapi.parsed.id}id(){return this._meta.asyncapi.parsed.id}hasDescription(){return(0,p.hasDescription)(this)}description(){return(0,p.description)(this)}hasTermsOfService(){return!!this._json.termsOfService}termsOfService(){return this._json.termsOfService}hasContact(){return Object.keys(this._json.contact||{}).length>0}contact(){const e=this._json.contact;return e&&this.createModel(i.Contact,e,{pointer:"/info/contact"})}hasLicense(){return Object.keys(this._json.license||{}).length>0}license(){const e=this._json.license;return e&&this.createModel(s.License,e,{pointer:"/info/license"})}hasExternalDocs(){const e=this._meta.asyncapi.parsed;return Object.keys(e.externalDocs||{}).length>0}externalDocs(){if(this.hasExternalDocs()){const e=this._meta.asyncapi.parsed;return this.createModel(o.ExternalDocumentation,e.externalDocs,{pointer:"/externalDocs"})}}tags(){const e=this._meta.asyncapi.parsed.tags||[];return new a.Tags(e.map(((e,t)=>this.createModel(c.Tag,e,{pointer:`/tags/${t}`}))))}extensions(){return(0,p.extensions)(this)}}t.Info=l},60082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.License=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}extensions(){return(0,i.extensions)(this)}}t.License=o},50765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageExample=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{hasName(){return!!this._json.name}name(){return this._json.name}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasHeaders(){return!!this._json.headers}headers(){return this._json.headers}hasPayload(){return!!this._json.payload}payload(){return this._json.payload}extensions(){return(0,i.extensions)(this)}}t.MessageExample=o},95501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageExamples=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.name()===e))}}t.MessageExamples=i},44495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTrait=void 0;const r=n(87506),i=n(45219),o=n(95501),s=n(50765),a=n(94020),c=n(8262),p=n(99237),l=n(87401);class u extends r.BaseModel{id(){return this._json.messageId||this._meta.id||this.json(c.xParserMessageName)}hasSchemaFormat(){return void 0!==this.schemaFormat()}schemaFormat(){return this._json.schemaFormat||(0,l.getDefaultSchemaFormat)(this._meta.asyncapi.semver.version)}hasMessageId(){return!!this._json.messageId}hasCorrelationId(){return!!this._json.correlationId}correlationId(){if(this._json.correlationId)return this.createModel(i.CorrelationId,this._json.correlationId,{pointer:`${this._meta.pointer}/correlationId`})}hasContentType(){return!!this._json.contentType}contentType(){var e;return this._json.contentType||(null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.defaultContentType)}hasHeaders(){return!!this._json.headers}headers(){if(this._json.headers)return this.createModel(a.Schema,this._json.headers,{pointer:`${this._meta.pointer}/headers`})}hasName(){return!!this._json.name}name(){return this._json.name}hasTitle(){return!!this._json.title}title(){return this._json.title}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return(0,p.hasDescription)(this)}description(){return(0,p.description)(this)}hasExternalDocs(){return(0,p.hasExternalDocs)(this)}externalDocs(){return(0,p.externalDocs)(this)}examples(){return new o.MessageExamples((this._json.examples||[]).map(((e,t)=>this.createModel(s.MessageExample,e,{pointer:`${this._meta.pointer}/examples/${t}`}))))}tags(){return(0,p.tags)(this)}bindings(){return(0,p.bindings)(this)}extensions(){return(0,p.extensions)(this)}}t.MessageTrait=u},60603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTraits=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.MessageTraits=i},18467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;const r=n(91548),i=n(74262),o=n(7523),s=n(60603),a=n(44495),c=n(80758),p=n(94020),l=n(28227);class u extends a.MessageTrait{hasPayload(){return!!this._json.payload}payload(){if(this._json.payload)return this.createModel(p.Schema,this._json.payload,{pointer:`${this._meta.pointer}/payload`,schemaFormat:this._json.schemaFormat})}servers(){const e=[],t=[];return this.channels().forEach((n=>{n.servers().forEach((n=>{t.includes(n.json())||(t.push(n.json()),e.push(n))}))})),new c.Servers(e)}channels(){const e=[],t=[];return this.operations().all().forEach((n=>{n.channels().forEach((n=>{t.includes(n.json())||(t.push(n.json()),e.push(n))}))})),new r.Channels(e)}operations(){var e;const t=[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.channels)||{}).forEach((([e,n])=>{["subscribe","publish"].forEach((r=>{const i=n[r];i&&(i.message===this._json||(i.message.oneOf||[]).includes(this._json))&&t.push(this.createModel(o.Operation,i,{id:"",pointer:`/channels/${(0,l.tilde)(e)}/${r}`,action:r}))}))})),new i.Operations(t)}traits(){return new s.MessageTraits((this._json.traits||[]).map(((e,t)=>this.createModel(a.MessageTrait,e,{id:"",pointer:`${this._meta.pointer}/traits/${t}`}))))}}t.Message=u},88537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Messages=i},99237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.externalDocs=t.hasExternalDocs=t.extensions=t.description=t.hasDescription=t.bindings=void 0;const r=n(9143),i=n(580),o=n(23415),s=n(25777),a=n(66241),c=n(82385),p=n(3410),l=n(33584),u=n(8262);function d(e){return e.json("description")}function f(e){return Object.keys(e.json("externalDocs")||{}).length>0}t.bindings=function(e){const t=e.json("bindings")||{};return new r.Bindings(Object.entries(t||{}).map((([t,n])=>(0,l.createModel)(i.Binding,n,{protocol:t,pointer:e.jsonPath(`bindings/${t}`)},e))),{originalData:t,asyncapi:e.meta("asyncapi"),pointer:e.jsonPath("bindings")})},t.hasDescription=function(e){return Boolean(d(e))},t.description=d,t.extensions=function(e){const t=[];return Object.entries(e.json()).forEach((([n,r])=>{u.EXTENSION_REGEX.test(n)&&t.push((0,l.createModel)(s.Extension,r,{id:n,pointer:e.jsonPath(n)},e))})),new o.Extensions(t)},t.hasExternalDocs=f,t.externalDocs=function(e){if(f(e))return new a.ExternalDocumentation(e.json("externalDocs"))},t.tags=function(e){return new c.Tags((e.json("tags")||[]).map(((t,n)=>(0,l.createModel)(p.Tag,t,{pointer:e.jsonPath(`tags/${n}`)},e))))}},63:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAuthFlow=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{hasAuthorizationUrl(){return!!this.json().authorizationUrl}authorizationUrl(){return this.json().authorizationUrl}hasTokenUrl(){return!!this.json().tokenUrl}tokenUrl(){return this.json().tokenUrl}hasRefreshUrl(){return!!this._json.refreshUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.scopes}extensions(){return(0,i.extensions)(this)}}t.OAuthFlow=o},57310:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAuthFlows=void 0;const r=n(87506),i=n(63),o=n(99237);class s extends r.BaseModel{hasAuthorizationCode(){return!!this._json.authorizationCode}authorizationCode(){if(this._json.authorizationCode)return new i.OAuthFlow(this._json.authorizationCode)}hasClientCredentials(){return!!this._json.clientCredentials}clientCredentials(){if(this._json.clientCredentials)return new i.OAuthFlow(this._json.clientCredentials)}hasImplicit(){return!!this._json.implicit}implicit(){if(this._json.implicit)return new i.OAuthFlow(this._json.implicit)}hasPassword(){return!!this._json.password}password(){if(this._json.password)return new i.OAuthFlow(this._json.password)}extensions(){return(0,o.extensions)(this)}}t.OAuthFlows=s},69588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTrait=void 0;const r=n(87506),i=n(98643),o=n(41649),s=n(60655),a=n(99237);class c extends r.BaseModel{id(){return this.operationId()||this._meta.id}hasOperationId(){return!!this._json.operationId}operationId(){return this._json.operationId}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return(0,a.hasDescription)(this)}description(){return(0,a.description)(this)}hasExternalDocs(){return(0,a.hasExternalDocs)(this)}externalDocs(){return(0,a.externalDocs)(this)}security(){var e,t,n,r;const a=(null===(r=null===(n=null===(t=null===(e=this._meta)||void 0===e?void 0:e.asyncapi)||void 0===t?void 0:t.parsed)||void 0===n?void 0:n.components)||void 0===r?void 0:r.securitySchemes)||{};return(this._json.security||[]).map(((e,t)=>{const n=[];return Object.entries(e).forEach((([e,r])=>{const o=this.createModel(i.SecurityScheme,a[e],{id:e,pointer:`/components/securitySchemes/${e}`});n.push(this.createModel(s.SecurityRequirement,{scheme:o,scopes:r},{id:e,pointer:`${this.meta().pointer}/security/${t}/${e}`}))})),new o.SecurityRequirements(n)}))}tags(){return(0,a.tags)(this)}bindings(){return(0,a.bindings)(this)}extensions(){return(0,a.extensions)(this)}}t.OperationTrait=c},31334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTraits=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.OperationTraits=i},7523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation=void 0;const r=n(91548),i=n(14620),o=n(88537),s=n(18467),a=n(31334),c=n(69588),p=n(80758),l=n(28227);class u extends c.OperationTrait{action(){return this._meta.action}isSend(){return"subscribe"===this.action()}isReceive(){return"publish"===this.action()}servers(){const e=[],t=[];return this.channels().forEach((n=>{n.servers().forEach((n=>{t.includes(n.json())||(t.push(n.json()),e.push(n))}))})),new p.Servers(e)}channels(){const e=[];return Object.entries(this._meta.asyncapi.parsed.channels||{}).forEach((([t,n])=>{n.subscribe!==this._json&&n.publish!==this._json||e.push(this.createModel(i.Channel,n,{id:t,address:t,pointer:`/channels/${(0,l.tilde)(t)}`}))})),new r.Channels(e)}messages(){let e=!1,t=[];return this._json.message&&(Array.isArray(this._json.message.oneOf)?(t=this._json.message.oneOf,e=!0):t=[this._json.message]),new o.Messages(t.map(((t,n)=>this.createModel(s.Message,t,{id:"",pointer:`${this._meta.pointer}/message${e?`/oneOf/${n}`:""}`}))))}reply(){}traits(){return new a.OperationTraits((this._json.traits||[]).map(((e,t)=>this.createModel(c.OperationTrait,e,{id:"",pointer:`${this._meta.pointer}/traits/${t}`,action:""}))))}}t.Operation=u},74262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operations=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.isSend()))}filterByReceive(){return this.filterBy((e=>e.isReceive()))}}t.Operations=i},94020:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schema=void 0;const r=n(87506),i=n(8262),o=n(99237),s=n(87401);class a extends r.BaseModel{id(){return this.$id()||this._meta.id||this.json(i.xParserSchemaId)}$comment(){if("boolean"!=typeof this._json)return this._json.$comment}$id(){if("boolean"!=typeof this._json)return this._json.$id}$schema(){return"boolean"==typeof this._json?"http://json-schema.org/draft-07/schema#":this._json.$schema||"http://json-schema.org/draft-07/schema#"}additionalItems(){return"boolean"==typeof this._json?this._json:"boolean"==typeof this._json.additionalItems?this._json.additionalItems:void 0===this._json.additionalItems||null!==this._json.additionalItems&&this.createModel(a,this._json.additionalItems,{pointer:`${this._meta.pointer}/additionalItems`,parent:this})}additionalProperties(){return"boolean"==typeof this._json?this._json:"boolean"==typeof this._json.additionalProperties?this._json.additionalProperties:void 0===this._json.additionalProperties||null!==this._json.additionalProperties&&this.createModel(a,this._json.additionalProperties,{pointer:`${this._meta.pointer}/additionalProperties`,parent:this})}allOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.allOf))return this._json.allOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/allOf/${t}`,parent:this})))}anyOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.anyOf))return this._json.anyOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/anyOf/${t}`,parent:this})))}const(){if("boolean"!=typeof this._json)return this._json.const}contains(){if("boolean"!=typeof this._json&&"object"==typeof this._json.contains)return this.createModel(a,this._json.contains,{pointer:`${this._meta.pointer}/contains`,parent:this})}contentEncoding(){if("boolean"!=typeof this._json)return this._json.contentEncoding}contentMediaType(){if("boolean"!=typeof this._json)return this._json.contentMediaType}default(){if("boolean"!=typeof this._json)return this._json.default}definitions(){if("boolean"!=typeof this._json&&"object"==typeof this._json.definitions)return Object.entries(this._json.definitions).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/definitions/${t}`,parent:this}),e)),{})}description(){if("boolean"!=typeof this._json)return this._json.description}dependencies(){if("boolean"!=typeof this._json&&"object"==typeof this._json.dependencies)return Object.entries(this._json.dependencies).reduce(((e,[t,n])=>(e[t]=Array.isArray(n)?n:this.createModel(a,n,{pointer:`${this._meta.pointer}/dependencies/${t}`,parent:this}),e)),{})}deprecated(){return"boolean"!=typeof this._json&&(this._json.deprecated||!1)}discriminator(){if("boolean"!=typeof this._json)return this._json.discriminator}else(){if("boolean"!=typeof this._json&&"object"==typeof this._json.else)return this.createModel(a,this._json.else,{pointer:`${this._meta.pointer}/else`,parent:this})}enum(){if("boolean"!=typeof this._json)return this._json.enum}examples(){if("boolean"!=typeof this._json)return this._json.examples}exclusiveMaximum(){if("boolean"!=typeof this._json)return this._json.exclusiveMaximum}exclusiveMinimum(){if("boolean"!=typeof this._json)return this._json.exclusiveMinimum}format(){if("boolean"!=typeof this._json)return this._json.format}isBooleanSchema(){return"boolean"==typeof this._json}if(){if("boolean"!=typeof this._json&&"object"==typeof this._json.if)return this.createModel(a,this._json.if,{pointer:`${this._meta.pointer}/if`,parent:this})}isCircular(){let e=this._meta.parent;for(;e;){if(e._json===this._json)return!0;e=e._meta.parent}return!1}items(){if("boolean"!=typeof this._json&&"object"==typeof this._json.items)return Array.isArray(this._json.items)?this._json.items.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/items/${t}`,parent:this}))):this.createModel(a,this._json.items,{pointer:`${this._meta.pointer}/items`,parent:this})}maximum(){if("boolean"!=typeof this._json)return this._json.maximum}maxItems(){if("boolean"!=typeof this._json)return this._json.maxItems}maxLength(){if("boolean"!=typeof this._json)return this._json.maxLength}maxProperties(){if("boolean"!=typeof this._json)return this._json.maxProperties}minimum(){if("boolean"!=typeof this._json)return this._json.minimum}minItems(){if("boolean"!=typeof this._json)return this._json.minItems}minLength(){if("boolean"!=typeof this._json)return this._json.minLength}minProperties(){if("boolean"!=typeof this._json)return this._json.minProperties}multipleOf(){if("boolean"!=typeof this._json)return this._json.multipleOf}not(){if("boolean"!=typeof this._json&&"object"==typeof this._json.not)return this.createModel(a,this._json.not,{pointer:`${this._meta.pointer}/not`,parent:this})}oneOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.oneOf))return this._json.oneOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/oneOf/${t}`,parent:this})))}pattern(){if("boolean"!=typeof this._json)return this._json.pattern}patternProperties(){if("boolean"!=typeof this._json&&"object"==typeof this._json.patternProperties)return Object.entries(this._json.patternProperties).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/patternProperties/${t}`,parent:this}),e)),{})}properties(){if("boolean"!=typeof this._json&&"object"==typeof this._json.properties)return Object.entries(this._json.properties).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/properties/${t}`,parent:this}),e)),{})}property(e){if("boolean"!=typeof this._json&&"object"==typeof this._json.properties&&"object"==typeof this._json.properties[e])return this.createModel(a,this._json.properties[e],{pointer:`${this._meta.pointer}/properties/${e}`,parent:this})}propertyNames(){if("boolean"!=typeof this._json&&"object"==typeof this._json.propertyNames)return this.createModel(a,this._json.propertyNames,{pointer:`${this._meta.pointer}/propertyNames`,parent:this})}readOnly(){return"boolean"!=typeof this._json&&(this._json.readOnly||!1)}required(){if("boolean"!=typeof this._json)return this._json.required}schemaFormat(){return this._meta.schemaFormat||(0,s.getDefaultSchemaFormat)(this._meta.asyncapi.semver.version)}then(){if("boolean"!=typeof this._json&&"object"==typeof this._json.then)return this.createModel(a,this._json.then,{pointer:`${this._meta.pointer}/then`,parent:this})}title(){if("boolean"!=typeof this._json)return this._json.title}type(){if("boolean"!=typeof this._json)return this._json.type}uniqueItems(){return"boolean"!=typeof this._json&&(this._json.uniqueItems||!1)}writeOnly(){return"boolean"!=typeof this._json&&(this._json.writeOnly||!1)}hasExternalDocs(){return(0,o.hasExternalDocs)(this)}externalDocs(){return(0,o.externalDocs)(this)}extensions(){return(0,o.extensions)(this)}}t.Schema=a},9481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schemas=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.Schemas=i},60655:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityRequirement=void 0;const r=n(87506);class i extends r.BaseModel{scheme(){return this._json.scheme}scopes(){return this._json.scopes||[]}}t.SecurityRequirement=i},41649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityRequirements=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.SecurityRequirements=i},98643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityScheme=void 0;const r=n(87506),i=n(57310),o=n(99237);class s extends r.BaseModel{id(){return this._meta.id}type(){return this._json.type}hasDescription(){return(0,o.hasDescription)(this)}description(){return(0,o.description)(this)}hasName(){return!!this._json.name}name(){return this._json.name}hasIn(){return!!this._json.in}in(){return this._json.in}hasScheme(){return!!this._json.scheme}scheme(){return this._json.scheme}hasBearerFormat(){return!!this._json.bearerFormat}bearerFormat(){return this._json.bearerFormat}hasFlows(){return!!this._json.flows}flows(){if(this._json.flows)return new i.OAuthFlows(this._json.flows)}hasOpenIdConnectUrl(){return!!this._json.openIdConnectUrl}openIdConnectUrl(){return this._json.openIdConnectUrl}extensions(){return(0,o.extensions)(this)}}t.SecurityScheme=s},52773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecuritySchemes=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.SecuritySchemes=i},12162:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerVariable=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{id(){return this._meta.id}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}hasDefaultValue(){return!!this._json.default}defaultValue(){return this._json.default}hasAllowedValues(){return!!this._json.enum}allowedValues(){return this._json.enum||[]}examples(){return this._json.examples||[]}extensions(){return(0,i.extensions)(this)}}t.ServerVariable=o},45466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerVariables=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.ServerVariables=i},53890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const r=n(87506),i=n(91548),o=n(14620),s=n(88537),a=n(74262),c=n(98643),p=n(45466),l=n(12162),u=n(41649),d=n(60655),f=n(99237),h=n(28227);class m extends r.BaseModel{id(){return this._meta.id}url(){return this._json.url}host(){return new URL(this.url()).host}hasPathname(){return!!this.pathname()}pathname(){return new URL(this.url()).pathname}protocol(){return this._json.protocol}hasProtocolVersion(){return!!this._json.protocolVersion}protocolVersion(){return this._json.protocolVersion}hasDescription(){return(0,f.hasDescription)(this)}description(){return(0,f.description)(this)}channels(){var e;const t=[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.channels)||{}).forEach((([e,n])=>{const r=n.servers||[];(0===r.length||r.includes(this._meta.id))&&t.push(this.createModel(o.Channel,n,{id:e,address:e,pointer:`/channels/${(0,h.tilde)(e)}`}))})),new i.Channels(t)}operations(){const e=[];return this.channels().forEach((t=>{e.push(...t.operations().all())})),new a.Operations(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new s.Messages(e)}variables(){return new p.ServerVariables(Object.entries(this._json.variables||{}).map((([e,t])=>this.createModel(l.ServerVariable,t,{id:e,pointer:`${this._meta.pointer}/variables/${e}`}))))}security(){var e,t,n,r;const i=(null===(r=null===(n=null===(t=null===(e=this._meta)||void 0===e?void 0:e.asyncapi)||void 0===t?void 0:t.parsed)||void 0===n?void 0:n.components)||void 0===r?void 0:r.securitySchemes)||{};return(this._json.security||[]).map(((e,t)=>{const n=[];return Object.entries(e).forEach((([e,r])=>{const o=this.createModel(c.SecurityScheme,i[e],{id:e,pointer:`/components/securitySchemes/${e}`});n.push(this.createModel(d.SecurityRequirement,{scheme:o,scopes:r},{id:e,pointer:`${this.meta().pointer}/security/${t}/${e}`}))})),new u.SecurityRequirements(n)}))}tags(){return(0,f.tags)(this)}bindings(){return(0,f.bindings)(this)}extensions(){return(0,f.extensions)(this)}}t.Server=m},80758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Servers=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Servers=i},3410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=void 0;const r=n(87506),i=n(99237);class o extends r.BaseModel{name(){return this._json.name}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}extensions(){return(0,i.extensions)(this)}hasExternalDocs(){return(0,i.hasExternalDocs)(this)}externalDocs(){return(0,i.externalDocs)(this)}}t.Tag=o},82385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tags=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.name()===e))}}t.Tags=i},36237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAPIDocument=void 0;const r=n(87506),i=n(88239),o=n(12115),s=n(39071),a=n(69053),c=n(29304),p=n(52953),l=n(63150),u=n(65740),d=n(32136),f=n(3616),h=n(73741),m=n(39294),y=n(29690),g=n(28227),v=n(33584);class b extends r.BaseModel{version(){return this._json.asyncapi}defaultContentType(){return this._json.defaultContentType}hasDefaultContentType(){return!!this._json.defaultContentType}info(){return this.createModel(i.Info,this._json.info,{pointer:"/info"})}servers(){return new o.Servers(Object.entries(this._json.servers||{}).map((([e,t])=>this.createModel(s.Server,t,{id:e,pointer:`/servers/${(0,g.tilde)(e)}`}))))}channels(){return new a.Channels(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(c.Channel,t,{id:e,pointer:`/channels/${(0,g.tilde)(e)}`}))))}operations(){return new p.Operations(Object.entries(this._json.operations||{}).map((([e,t])=>this.createModel(l.Operation,t,{id:e,pointer:`/operations/${(0,g.tilde)(e)}`}))))}messages(){const e=[],t=[];return this.channels().forEach((n=>{n.messages().forEach((n=>{const r=n.json();t.includes(r)||(t.push(r),e.push(n))}))})),new u.Messages(e)}schemas(){return(0,v.schemasFromDocument)(this,m.Schemas,!1)}securitySchemes(){var e;return new d.SecuritySchemes(Object.entries((null===(e=this._json.components)||void 0===e?void 0:e.securitySchemes)||{}).map((([e,t])=>this.createModel(f.SecurityScheme,t,{id:e,pointer:`/components/securitySchemes/${e}`}))))}components(){return this.createModel(h.Components,this._json.components||{},{pointer:"/components"})}allServers(){const e=this.servers().all();return this.components().servers().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new o.Servers(e)}allChannels(){const e=this.channels().all();return this.components().channels().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new a.Channels(e)}allOperations(){const e=this.operations().all();return this.components().operations().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new p.Operations(e)}allMessages(){const e=this.messages().all();return this.components().messages().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new u.Messages(e)}allSchemas(){return(0,v.schemasFromDocument)(this,m.Schemas,!0)}extensions(){return(0,y.extensions)(this)}}t.AsyncAPIDocument=b},19286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binding=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{protocol(){return this._meta.protocol}version(){return this._json.bindingVersion||"latest"}value(){const e=Object.assign({},this._json);return delete e.bindingVersion,e}extensions(){return(0,i.extensions)(this)}}t.Binding=o},52252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bindings=void 0;const r=n(31247),i=n(72343),o=n(87431),s=n(33584),a=n(8262);class c extends r.Collection{get(e){return this.collections.find((t=>t.protocol()===e))}extensions(){const e=[];return Object.entries(this._meta.originalData||{}).forEach((([t,n])=>{a.EXTENSION_REGEX.test(t)&&e.push((0,s.createModel)(o.Extension,n,{id:t,pointer:`${this._meta.pointer}/${t}`,asyncapi:this._meta.asyncapi}))})),new i.Extensions(e)}}t.Bindings=c},45291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelParameter=void 0;const r=n(87506),i=n(29690),o=n(75536);class s extends r.BaseModel{id(){return this._meta.id}hasSchema(){return!0}schema(){return this.createModel(o.Schema,{type:"string",description:this._json.description,enum:this._json.enum,default:this._json.default,examples:this._json.examples},{pointer:`${this._meta.pointer}`})}hasLocation(){return!!this._json.location}location(){return this._json.location}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}extensions(){return(0,i.extensions)(this)}}t.ChannelParameter=s},39714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelParameters=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.ChannelParameters=i},29304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channel=void 0;const r=n(39714),i=n(45291),o=n(65740),s=n(50239),a=n(52953),c=n(63150),p=n(12115),l=n(39071),u=n(8262),d=n(29690);class f extends d.CoreModel{id(){return this._meta.id}address(){return this._json.address}servers(){var e,t,n;const r=[],i=null!==(e=this._json.servers)&&void 0!==e?e:[];return Object.entries(null!==(n=null===(t=this._meta.asyncapi)||void 0===t?void 0:t.parsed.servers)&&void 0!==n?n:{}).forEach((([e,t])=>{(0===i.length||i.includes(t))&&r.push(this.createModel(l.Server,t,{id:e,pointer:`/servers/${e}`}))})),new p.Servers(r)}operations(){var e,t,n;const r=[];return Object.entries(null!==(n=null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.operations)&&void 0!==n?n:{}).forEach((([e,t])=>{t.channel[u.xParserObjectUniqueId]===this._json[u.xParserObjectUniqueId]&&r.push(this.createModel(c.Operation,t,{id:e,pointer:`/operations/${e}`}))})),new a.Operations(r)}messages(){var e;return new o.Messages(Object.entries(null!==(e=this._json.messages)&&void 0!==e?e:{}).map((([e,t])=>this.createModel(s.Message,t,{id:e,pointer:this.jsonPath(`messages/${e}`)}))))}parameters(){var e;return new r.ChannelParameters(Object.entries(null!==(e=this._json.parameters)&&void 0!==e?e:{}).map((([e,t])=>this.createModel(i.ChannelParameter,t,{id:e,pointer:this.jsonPath(`parameters/${e}`)}))))}}t.Channel=f},69053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channels=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Channels=i},73741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Components=void 0;const r=n(87506),i=n(52252),o=n(19286),s=n(29304),a=n(45291),c=n(54178),p=n(96354),l=n(68612),u=n(29282),d=n(9166),f=n(75536),h=n(3616),m=n(39071),y=n(97486),g=n(29690),v=n(12115),b=n(69053),_=n(65740),$=n(39294),w=n(39714),j=n(9230),x=n(96499),S=n(80409),P=n(54148),E=n(92682),O=n(32136),T=n(4160),k=n(52953),A=n(63150),I=n(50239),N=n(75773),R=n(73405),M=n(8664),C=n(11650),D=n(28227);class q extends r.BaseModel{servers(){return this.createCollection("servers",v.Servers,m.Server)}channels(){return this.createCollection("channels",b.Channels,s.Channel)}operations(){return this.createCollection("operations",k.Operations,A.Operation)}messages(){return this.createCollection("messages",_.Messages,I.Message)}schemas(){return this.createCollection("schemas",$.Schemas,f.Schema)}channelParameters(){return this.createCollection("parameters",w.ChannelParameters,a.ChannelParameter)}serverVariables(){return this.createCollection("serverVariables",j.ServerVariables,y.ServerVariable)}operationTraits(){return this.createCollection("operationTraits",x.OperationTraits,l.OperationTrait)}messageTraits(){return this.createCollection("messageTraits",S.MessageTraits,p.MessageTrait)}replies(){return this.createCollection("replies",P.OperationReplies,u.OperationReply)}replyAddresses(){return this.createCollection("replyAddresses",E.OperationReplyAddresses,d.OperationReplyAddress)}correlationIds(){return this.createCollection("correlationIds",T.CorrelationIds,c.CorrelationId)}securitySchemes(){return this.createCollection("securitySchemes",O.SecuritySchemes,h.SecurityScheme)}tags(){return this.createCollection("tags",M.Tags,C.Tag)}externalDocs(){return this.createCollection("externalDocs",N.ExternalDocumentations,R.ExternalDocumentation)}serverBindings(){return this.createBindings("serverBindings")}channelBindings(){return this.createBindings("channelBindings")}operationBindings(){return this.createBindings("operationBindings")}messageBindings(){return this.createBindings("messageBindings")}extensions(){return(0,g.extensions)(this)}isEmpty(){return 0===Object.keys(this._json).length}createCollection(e,t,n){const r=[];return Object.entries(this._json[e]||{}).forEach((([t,i])=>{r.push(this.createModel(n,i,{id:t,pointer:`/components/${e}/${(0,D.tilde)(t)}`}))})),new t(r)}createBindings(e){return Object.entries(this._json[e]||{}).reduce(((t,[n,r])=>{const s=r||{},a=this.meta("asyncapi"),c=`components/${e}/${n}`;return t[n]=new i.Bindings(Object.entries(s).map((([e,t])=>this.createModel(o.Binding,t,{protocol:e,pointer:`${c}/${e}`}))),{originalData:s,asyncapi:a,pointer:c}),t}),{})}}t.Components=q},83895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contact=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{hasName(){return!!this._json.name}name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}hasEmail(){return!!this._json.email}email(){return this._json.email}extensions(){return(0,i.extensions)(this)}}t.Contact=o},54178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationId=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}hasLocation(){return!!this._json.location}location(){return this._json.location}extensions(){return(0,i.extensions)(this)}}t.CorrelationId=o},4160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationIds=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.CorrelationIds=i},87431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=void 0;const r=n(87506);class i extends r.BaseModel{id(){return this._meta.id}version(){return"to implement"}value(){return this._json}}t.Extension=i},72343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions=void 0;const r=n(31247);class i extends r.Collection{get(e){return e=e.startsWith("x-")?e:`x-${e}`,this.collections.find((t=>t.id()===e))}}t.Extensions=i},73405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalDocumentation=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{id(){return this._meta.id}url(){return this._json.url}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}extensions(){return(0,i.extensions)(this)}}t.ExternalDocumentation=o},11195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagsV3=t.TagV3=t.ServersV3=t.ServerV3=t.ServerVariablesV3=t.ServerVariableV3=t.SecuritySchemesV3=t.SecuritySchemeV3=t.SchemasV3=t.SchemaV3=t.OperationsV3=t.OperationV3=t.OperationReplyV3=t.OperationReplyAddressesV3=t.OperationReplyAddressV3=t.OperationRepliesV3=t.OperationTraitsV3=t.OperationTraitV3=t.OAuthFlowsV3=t.OAuthFlowV3=t.MessagesV3=t.MessageV3=t.MessageTraitsV3=t.MessageTraitV3=t.MessageExamplesV3=t.MessageExampleV3=t.LicenseV3=t.InfoV3=t.ExternalDocumentationV3=t.ExtensionsV3=t.ExtensionV3=t.CorrelationIdV3=t.ContactV3=t.ComponentsV3=t.ChannelsV3=t.ChannelV3=t.ChannelParametersV3=t.ChannelParameterV3=t.BindingsV3=t.BindingV3=t.AsyncAPIDocumentV3=void 0;var r=n(36237);Object.defineProperty(t,"AsyncAPIDocumentV3",{enumerable:!0,get:function(){return r.AsyncAPIDocument}});var i=n(19286);Object.defineProperty(t,"BindingV3",{enumerable:!0,get:function(){return i.Binding}});var o=n(52252);Object.defineProperty(t,"BindingsV3",{enumerable:!0,get:function(){return o.Bindings}});var s=n(45291);Object.defineProperty(t,"ChannelParameterV3",{enumerable:!0,get:function(){return s.ChannelParameter}});var a=n(39714);Object.defineProperty(t,"ChannelParametersV3",{enumerable:!0,get:function(){return a.ChannelParameters}});var c=n(29304);Object.defineProperty(t,"ChannelV3",{enumerable:!0,get:function(){return c.Channel}});var p=n(69053);Object.defineProperty(t,"ChannelsV3",{enumerable:!0,get:function(){return p.Channels}});var l=n(73741);Object.defineProperty(t,"ComponentsV3",{enumerable:!0,get:function(){return l.Components}});var u=n(83895);Object.defineProperty(t,"ContactV3",{enumerable:!0,get:function(){return u.Contact}});var d=n(54178);Object.defineProperty(t,"CorrelationIdV3",{enumerable:!0,get:function(){return d.CorrelationId}});var f=n(87431);Object.defineProperty(t,"ExtensionV3",{enumerable:!0,get:function(){return f.Extension}});var h=n(72343);Object.defineProperty(t,"ExtensionsV3",{enumerable:!0,get:function(){return h.Extensions}});var m=n(73405);Object.defineProperty(t,"ExternalDocumentationV3",{enumerable:!0,get:function(){return m.ExternalDocumentation}});var y=n(88239);Object.defineProperty(t,"InfoV3",{enumerable:!0,get:function(){return y.Info}});var g=n(86992);Object.defineProperty(t,"LicenseV3",{enumerable:!0,get:function(){return g.License}});var v=n(56978);Object.defineProperty(t,"MessageExampleV3",{enumerable:!0,get:function(){return v.MessageExample}});var b=n(89550);Object.defineProperty(t,"MessageExamplesV3",{enumerable:!0,get:function(){return b.MessageExamples}});var _=n(96354);Object.defineProperty(t,"MessageTraitV3",{enumerable:!0,get:function(){return _.MessageTrait}});var $=n(80409);Object.defineProperty(t,"MessageTraitsV3",{enumerable:!0,get:function(){return $.MessageTraits}});var w=n(50239);Object.defineProperty(t,"MessageV3",{enumerable:!0,get:function(){return w.Message}});var j=n(65740);Object.defineProperty(t,"MessagesV3",{enumerable:!0,get:function(){return j.Messages}});var x=n(84472);Object.defineProperty(t,"OAuthFlowV3",{enumerable:!0,get:function(){return x.OAuthFlow}});var S=n(61599);Object.defineProperty(t,"OAuthFlowsV3",{enumerable:!0,get:function(){return S.OAuthFlows}});var P=n(68612);Object.defineProperty(t,"OperationTraitV3",{enumerable:!0,get:function(){return P.OperationTrait}});var E=n(96499);Object.defineProperty(t,"OperationTraitsV3",{enumerable:!0,get:function(){return E.OperationTraits}});var O=n(54148);Object.defineProperty(t,"OperationRepliesV3",{enumerable:!0,get:function(){return O.OperationReplies}});var T=n(9166);Object.defineProperty(t,"OperationReplyAddressV3",{enumerable:!0,get:function(){return T.OperationReplyAddress}});var k=n(92682);Object.defineProperty(t,"OperationReplyAddressesV3",{enumerable:!0,get:function(){return k.OperationReplyAddresses}});var A=n(29282);Object.defineProperty(t,"OperationReplyV3",{enumerable:!0,get:function(){return A.OperationReply}});var I=n(63150);Object.defineProperty(t,"OperationV3",{enumerable:!0,get:function(){return I.Operation}});var N=n(52953);Object.defineProperty(t,"OperationsV3",{enumerable:!0,get:function(){return N.Operations}});var R=n(75536);Object.defineProperty(t,"SchemaV3",{enumerable:!0,get:function(){return R.Schema}});var M=n(39294);Object.defineProperty(t,"SchemasV3",{enumerable:!0,get:function(){return M.Schemas}});var C=n(3616);Object.defineProperty(t,"SecuritySchemeV3",{enumerable:!0,get:function(){return C.SecurityScheme}});var D=n(32136);Object.defineProperty(t,"SecuritySchemesV3",{enumerable:!0,get:function(){return D.SecuritySchemes}});var q=n(97486);Object.defineProperty(t,"ServerVariableV3",{enumerable:!0,get:function(){return q.ServerVariable}});var F=n(9230);Object.defineProperty(t,"ServerVariablesV3",{enumerable:!0,get:function(){return F.ServerVariables}});var U=n(39071);Object.defineProperty(t,"ServerV3",{enumerable:!0,get:function(){return U.Server}});var V=n(12115);Object.defineProperty(t,"ServersV3",{enumerable:!0,get:function(){return V.Servers}});var L=n(11650);Object.defineProperty(t,"TagV3",{enumerable:!0,get:function(){return L.Tag}});var z=n(8664);Object.defineProperty(t,"TagsV3",{enumerable:!0,get:function(){return z.Tags}})},88239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Info=void 0;const r=n(87506),i=n(83895),o=n(86992),s=n(29690);class a extends r.BaseModel{title(){return this._json.title}version(){return this._json.version}hasId(){return!!this._meta.asyncapi.parsed.id}id(){return this._meta.asyncapi.parsed.id}hasDescription(){return(0,s.hasDescription)(this)}description(){return(0,s.description)(this)}hasTermsOfService(){return!!this._json.termsOfService}termsOfService(){return this._json.termsOfService}hasContact(){return Object.keys(this._json.contact||{}).length>0}contact(){const e=this._json.contact;return e&&this.createModel(i.Contact,e,{pointer:this.jsonPath("contact")})}hasLicense(){return Object.keys(this._json.license||{}).length>0}license(){const e=this._json.license;return e&&this.createModel(o.License,e,{pointer:this.jsonPath("license")})}hasExternalDocs(){return(0,s.hasExternalDocs)(this)}externalDocs(){return(0,s.externalDocs)(this)}tags(){return(0,s.tags)(this)}extensions(){return(0,s.extensions)(this)}}t.Info=a},86992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.License=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}extensions(){return(0,i.extensions)(this)}}t.License=o},56978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageExample=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{hasName(){return!!this._json.name}name(){return this._json.name}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasHeaders(){return!!this._json.headers}headers(){return this._json.headers}hasPayload(){return!!this._json.payload}payload(){return this._json.payload}extensions(){return(0,i.extensions)(this)}}t.MessageExample=o},89550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageExamples=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.name()===e))}}t.MessageExamples=i},96354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTrait=void 0;const r=n(54178),i=n(89550),o=n(56978),s=n(75536),a=n(8262),c=n(29690);class p extends c.CoreModel{id(){var e;return this._meta.id||(null===(e=this.extensions().get(a.xParserMessageName))||void 0===e?void 0:e.value())}hasMessageId(){return!1}hasSchemaFormat(){return!1}schemaFormat(){}hasCorrelationId(){return!!this._json.correlationId}correlationId(){if(this._json.correlationId)return this.createModel(r.CorrelationId,this._json.correlationId,{pointer:this.jsonPath("correlationId")})}hasContentType(){return!!this._json.contentType}contentType(){var e,t;return this._json.contentType||(null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.defaultContentType)}hasHeaders(){return!!this._json.headers}headers(){if(this._json.headers)return this.createModel(s.Schema,this._json.headers,{pointer:this.jsonPath("headers")})}hasName(){return!!this._json.name}name(){return this._json.name}examples(){return new i.MessageExamples((this._json.examples||[]).map(((e,t)=>this.createModel(o.MessageExample,e,{pointer:this.jsonPath(`examples/${t}`)}))))}}t.MessageTrait=p},80409:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTraits=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.MessageTraits=i},50239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;const r=n(29304),i=n(69053),o=n(52953),s=n(63150),a=n(80409),c=n(96354),p=n(12115),l=n(75536),u=n(8262);class d extends c.MessageTrait{hasPayload(){return!!this._json.payload}payload(){if(this._json.payload)return this.createModel(l.Schema,this._json.payload,{pointer:this.jsonPath("payload")})}hasSchemaFormat(){return this.hasPayload()}schemaFormat(){var e;if(this.hasSchemaFormat())return null===(e=this.payload())||void 0===e?void 0:e.schemaFormat()}servers(){const e=[],t=[];return this.channels().forEach((n=>{n.servers().forEach((n=>{const r=n.json();t.includes(r)||(t.push(r),e.push(n))}))})),new p.Servers(e)}channels(){var e,t;const n=this._json[u.xParserObjectUniqueId],o=[],s=[];return this.operations().forEach((e=>{e.channels().forEach((e=>{const t=e.json();s.includes(t)||(s.push(t),o.push(e))}))})),Object.entries((null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.channels)||{}).forEach((([e,t])=>{const i=this.createModel(r.Channel,t,{id:e,pointer:`/channels/${e}`});!s.includes(t)&&i.messages().some((e=>e[u.xParserObjectUniqueId]===n))&&(s.push(t),o.push(i))})),new i.Channels(o)}operations(){var e,t;const n=this._json[u.xParserObjectUniqueId],r=[];return Object.entries((null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.operations)||{}).forEach((([e,t])=>{const i=this.createModel(s.Operation,t,{id:e,pointer:`/operations/${e}`});i.messages().some((e=>e[u.xParserObjectUniqueId]===n))&&r.push(i)})),new o.Operations(r)}traits(){return new a.MessageTraits((this._json.traits||[]).map(((e,t)=>this.createModel(c.MessageTrait,e,{id:"",pointer:this.jsonPath(`traits/${t}`)}))))}}t.Message=d},65740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Messages=i},29690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.externalDocs=t.hasExternalDocs=t.extensions=t.description=t.hasDescription=t.bindings=t.CoreModel=void 0;const r=n(87506),i=n(52252),o=n(19286),s=n(72343),a=n(87431),c=n(73405),p=n(8664),l=n(11650),u=n(33584),d=n(8262);class f extends r.BaseModel{hasTitle(){return!!this._json.title}title(){return this._json.title}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return m(this)}description(){return y(this)}hasExternalDocs(){return v(this)}externalDocs(){return b(this)}tags(){return _(this)}bindings(){return h(this)}extensions(){return g(this)}}function h(e){const t=e.json("bindings")||{};return new i.Bindings(Object.entries(t||{}).map((([t,n])=>(0,u.createModel)(o.Binding,n,{protocol:t,pointer:e.jsonPath(`bindings/${t}`)},e))),{originalData:t,asyncapi:e.meta("asyncapi"),pointer:e.jsonPath("bindings")})}function m(e){return Boolean(y(e))}function y(e){return e.json("description")}function g(e){const t=[];return Object.entries(e.json()).forEach((([n,r])=>{d.EXTENSION_REGEX.test(n)&&t.push((0,u.createModel)(a.Extension,r,{id:n,pointer:e.jsonPath(n)},e))})),new s.Extensions(t)}function v(e){return Object.keys(e.json("externalDocs")||{}).length>0}function b(e){if(v(e))return new c.ExternalDocumentation(e.json("externalDocs"))}function _(e){return new p.Tags((e.json("tags")||[]).map(((t,n)=>(0,u.createModel)(l.Tag,t,{pointer:e.jsonPath(`tags/${n}`)},e))))}t.CoreModel=f,t.bindings=h,t.hasDescription=m,t.description=y,t.extensions=g,t.hasExternalDocs=v,t.externalDocs=b,t.tags=_},84472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAuthFlow=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{hasAuthorizationUrl(){return!!this.json().authorizationUrl}authorizationUrl(){return this.json().authorizationUrl}hasRefreshUrl(){return!!this._json.refreshUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.availableScopes}hasTokenUrl(){return!!this.json().tokenUrl}tokenUrl(){return this.json().tokenUrl}extensions(){return(0,i.extensions)(this)}}t.OAuthFlow=o},61599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAuthFlows=void 0;const r=n(87506),i=n(84472),o=n(29690);class s extends r.BaseModel{hasAuthorizationCode(){return!!this._json.authorizationCode}authorizationCode(){if(this._json.authorizationCode)return new i.OAuthFlow(this._json.authorizationCode)}hasClientCredentials(){return!!this._json.clientCredentials}clientCredentials(){if(this._json.clientCredentials)return new i.OAuthFlow(this._json.clientCredentials)}hasImplicit(){return!!this._json.implicit}implicit(){if(this._json.implicit)return new i.OAuthFlow(this._json.implicit)}hasPassword(){return!!this._json.password}password(){if(this._json.password)return new i.OAuthFlow(this._json.password)}extensions(){return(0,o.extensions)(this)}}t.OAuthFlows=s},54148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationReplies=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.OperationReplies=i},9166:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationReplyAddress=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{id(){return this._meta.id}location(){return this._json.location}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}extensions(){return(0,i.extensions)(this)}}t.OperationReplyAddress=o},92682:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationReplyAddresses=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.OperationReplyAddresses=i},29282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationReply=void 0;const r=n(87506),i=n(29304),o=n(50239),s=n(65740),a=n(9166),c=n(29690),p=n(8262);class l extends r.BaseModel{id(){return this._meta.id}hasAddress(){return!!this._json.address}address(){if(this._json.address)return this.createModel(a.OperationReplyAddress,this._json.address,{pointer:this.jsonPath("address")})}hasChannel(){return!!this._json.channel}channel(){if(this._json.channel){const e=this._json.channel[p.xParserObjectUniqueId];return this.createModel(i.Channel,this._json.channel,{id:e,pointer:this.jsonPath("channel")})}return this._json.channel}messages(){var e;return new s.Messages(Object.values(null!==(e=this._json.messages)&&void 0!==e?e:{}).map((e=>{const t=e[p.xParserObjectUniqueId];return this.createModel(o.Message,e,{id:t,pointer:this.jsonPath(`messages/${t}`)})})))}extensions(){return(0,c.extensions)(this)}}t.OperationReply=l},68612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTrait=void 0;const r=n(3616),i=n(44455),o=n(71429),s=n(29690);class a extends s.CoreModel{id(){return this.operationId()||this._meta.id}hasOperationId(){return!!this._meta.id}operationId(){return this._meta.id}security(){return(this._json.security||[]).map(((e,t)=>{const n=this.createModel(r.SecurityScheme,e,{id:"",pointer:this.jsonPath(`security/${t}`)}),s=this.createModel(o.SecurityRequirement,{scheme:n,scopes:e.scopes},{id:"",pointer:this.jsonPath(`security/${t}`)});return new i.SecurityRequirements([s])}))}}t.OperationTrait=a},96499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTraits=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.OperationTraits=i},63150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation=void 0;const r=n(65740),i=n(50239),o=n(69053),s=n(29304),a=n(96499),c=n(68612),p=n(29282),l=n(12115),u=n(8262);class d extends c.OperationTrait{action(){return this._json.action}isSend(){return"send"===this.action()}isReceive(){return"receive"===this.action()}servers(){const e=[],t=[];return this.channels().forEach((n=>{n.servers().forEach((n=>{const r=n.json();t.includes(r)||(t.push(r),e.push(n))}))})),new l.Servers(e)}channels(){if(this._json.channel){const e=this._json.channel[u.xParserObjectUniqueId];return new o.Channels([this.createModel(s.Channel,this._json.channel,{id:e,pointer:`/channels/${e}`})])}return new o.Channels([])}messages(){const e=[];return Array.isArray(this._json.messages)?(this._json.messages.forEach(((t,n)=>{const r=t[u.xParserObjectUniqueId];e.push(this.createModel(i.Message,t,{id:r,pointer:this.jsonPath(`messages/${n}`)}))})),new r.Messages(e)):(this.channels().forEach((t=>{e.push(...t.messages())})),new r.Messages(e))}hasReply(){return!!this._json.reply}reply(){if(this._json.reply)return this.createModel(p.OperationReply,this._json.reply,{pointer:this.jsonPath("reply")})}traits(){return new a.OperationTraits((this._json.traits||[]).map(((e,t)=>this.createModel(c.OperationTrait,e,{id:"",pointer:this.jsonPath(`traits/${t}`)}))))}}t.Operation=d},52953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operations=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.isSend()))}filterByReceive(){return this.filterBy((e=>e.isReceive()))}}t.Operations=i},75536:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schema=void 0;const r=n(87506),i=n(8262),o=n(29690),s=n(87401);class a extends r.BaseModel{constructor(e,t={}){var n,r;super(e,t),this._json=e,this._meta=t,"object"==typeof e&&"object"==typeof e.schema?(this._schemaObject=e.schema,this._schemaFormat=e.schemaFormat):(this._schemaObject=e,this._schemaFormat=(0,s.getDefaultSchemaFormat)(null===(r=null===(n=t.asyncapi)||void 0===n?void 0:n.semver)||void 0===r?void 0:r.version))}id(){return this.$id()||this._meta.id||this._schemaObject[i.xParserSchemaId]}$comment(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.$comment}$id(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.$id}$schema(){var e;return"boolean"==typeof this._schemaObject?"http://json-schema.org/draft-07/schema#":null!==(e=this._schemaObject.$schema)&&void 0!==e?e:"http://json-schema.org/draft-07/schema#"}additionalItems(){return"boolean"==typeof this._schemaObject?this._schemaObject:void 0===this._schemaObject.additionalItems||("boolean"==typeof this._schemaObject.additionalItems?this._schemaObject.additionalItems:this.createModel(a,this._schemaObject.additionalItems,{pointer:`${this._meta.pointer}/additionalItems`,parent:this}))}additionalProperties(){return"boolean"==typeof this._schemaObject?this._schemaObject:void 0===this._schemaObject.additionalProperties||("boolean"==typeof this._schemaObject.additionalProperties?this._schemaObject.additionalProperties:this.createModel(a,this._schemaObject.additionalProperties,{pointer:`${this._meta.pointer}/additionalProperties`,parent:this}))}allOf(){if("boolean"!=typeof this._schemaObject&&Array.isArray(this._schemaObject.allOf))return this._schemaObject.allOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/allOf/${t}`,parent:this})))}anyOf(){if("boolean"!=typeof this._schemaObject&&Array.isArray(this._schemaObject.anyOf))return this._schemaObject.anyOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/anyOf/${t}`,parent:this})))}const(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.const}contains(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.contains)return this.createModel(a,this._schemaObject.contains,{pointer:`${this._meta.pointer}/contains`,parent:this})}contentEncoding(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.contentEncoding}contentMediaType(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.contentMediaType}default(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.default}definitions(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.definitions)return Object.entries(this._schemaObject.definitions).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/definitions/${t}`,parent:this}),e)),{})}description(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.description}dependencies(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.dependencies)return Object.entries(this._schemaObject.dependencies).reduce(((e,[t,n])=>(e[t]=Array.isArray(n)?n:this.createModel(a,n,{pointer:`${this._meta.pointer}/dependencies/${t}`,parent:this}),e)),{})}deprecated(){return"boolean"!=typeof this._schemaObject&&(this._schemaObject.deprecated||!1)}discriminator(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.discriminator}else(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.else)return this.createModel(a,this._schemaObject.else,{pointer:`${this._meta.pointer}/else`,parent:this})}enum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.enum}examples(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.examples}exclusiveMaximum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.exclusiveMaximum}exclusiveMinimum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.exclusiveMinimum}format(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.format}isBooleanSchema(){return"boolean"==typeof this._schemaObject}if(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.if)return this.createModel(a,this._schemaObject.if,{pointer:`${this._meta.pointer}/if`,parent:this})}isCircular(){let e=this._meta.parent;for(;e;){if(e._json===this._schemaObject)return!0;e=e._meta.parent}return!1}items(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.items)return Array.isArray(this._schemaObject.items)?this._schemaObject.items.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/items/${t}`,parent:this}))):this.createModel(a,this._schemaObject.items,{pointer:`${this._meta.pointer}/items`,parent:this})}maximum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.maximum}maxItems(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.maxItems}maxLength(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.maxLength}maxProperties(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.maxProperties}minimum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.minimum}minItems(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.minItems}minLength(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.minLength}minProperties(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.minProperties}multipleOf(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.multipleOf}not(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.not)return this.createModel(a,this._schemaObject.not,{pointer:`${this._meta.pointer}/not`,parent:this})}oneOf(){if("boolean"!=typeof this._schemaObject&&Array.isArray(this._schemaObject.oneOf))return this._schemaObject.oneOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/oneOf/${t}`,parent:this})))}pattern(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.pattern}patternProperties(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.patternProperties)return Object.entries(this._schemaObject.patternProperties).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/patternProperties/${t}`,parent:this}),e)),{})}properties(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.properties)return Object.entries(this._schemaObject.properties).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/properties/${t}`,parent:this}),e)),{})}property(e){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.properties&&"object"==typeof this._schemaObject.properties[e])return this.createModel(a,this._schemaObject.properties[e],{pointer:`${this._meta.pointer}/properties/${e}`,parent:this})}propertyNames(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.propertyNames)return this.createModel(a,this._schemaObject.propertyNames,{pointer:`${this._meta.pointer}/propertyNames`,parent:this})}readOnly(){return"boolean"!=typeof this._schemaObject&&(this._schemaObject.readOnly||!1)}required(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.required}schemaFormat(){return this._schemaFormat}then(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.then)return this.createModel(a,this._schemaObject.then,{pointer:`${this._meta.pointer}/then`,parent:this})}title(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.title}type(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.type}uniqueItems(){return"boolean"!=typeof this._schemaObject&&(this._schemaObject.uniqueItems||!1)}writeOnly(){return"boolean"!=typeof this._schemaObject&&(this._schemaObject.writeOnly||!1)}hasExternalDocs(){return(0,o.hasExternalDocs)(this)}externalDocs(){return(0,o.externalDocs)(this)}extensions(){return(0,o.extensions)(this)}}t.Schema=a},39294:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schemas=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.Schemas=i},71429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityRequirement=void 0;const r=n(87506);class i extends r.BaseModel{scheme(){return this._json.scheme}scopes(){return this._json.scopes||[]}}t.SecurityRequirement=i},44455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityRequirements=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.SecurityRequirements=i},3616:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityScheme=void 0;const r=n(87506),i=n(61599),o=n(29690);class s extends r.BaseModel{id(){return this._meta.id}type(){return this._json.type}hasDescription(){return(0,o.hasDescription)(this)}description(){return(0,o.description)(this)}hasName(){return!!this._json.name}name(){return this._json.name}hasIn(){return!!this._json.in}in(){return this._json.in}hasScheme(){return!!this._json.scheme}scheme(){return this._json.scheme}hasBearerFormat(){return!!this._json.bearerFormat}bearerFormat(){return this._json.bearerFormat}hasFlows(){return!!this._json.flows}flows(){if(this._json.flows)return new i.OAuthFlows(this._json.flows)}hasOpenIdConnectUrl(){return!!this._json.openIdConnectUrl}openIdConnectUrl(){return this._json.openIdConnectUrl}extensions(){return(0,o.extensions)(this)}}t.SecurityScheme=s},32136:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecuritySchemes=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.SecuritySchemes=i},97486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerVariable=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{id(){return this._meta.id}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}hasDefaultValue(){return!!this._json.default}defaultValue(){return this._json.default}hasAllowedValues(){return!!this._json.enum}allowedValues(){return this._json.enum||[]}examples(){return this._json.examples||[]}extensions(){return(0,i.extensions)(this)}}t.ServerVariable=o},9230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerVariables=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.ServerVariables=i},39071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const r=n(69053),i=n(29304),o=n(65740),s=n(52953),a=n(3616),c=n(9230),p=n(97486),l=n(44455),u=n(71429),d=n(29690),f=n(28227);class h extends d.CoreModel{id(){return this._meta.id}url(){let e=this.host();e.endsWith("/")||(e=`${e}/`);let t=this.pathname()||"";return t.startsWith("/")&&(t=t.substring(1)),`${this.protocol()}://${e}${t}`}host(){return this._json.host}protocol(){return this._json.protocol}hasPathname(){return!!this._json.pathname}pathname(){return this._json.pathname}hasProtocolVersion(){return!!this._json.protocolVersion}protocolVersion(){return this._json.protocolVersion}channels(){var e,t;const n=[];return Object.entries((null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.channels)||{}).forEach((([e,t])=>{const r=t.servers||[];(0===r.length||r.includes(this._json))&&n.push(this.createModel(i.Channel,t,{id:e,pointer:`/channels/${(0,f.tilde)(e)}`}))})),new r.Channels(n)}operations(){const e=[],t=[];return this.channels().forEach((n=>{n.operations().forEach((n=>{const r=n.json();t.includes(r)||(e.push(n),t.push(r))}))})),new s.Operations(e)}messages(){const e=[],t=[];return this.channels().forEach((n=>{n.messages().forEach((n=>{const r=n.json();t.includes(r)||(e.push(n),t.push(r))}))})),new o.Messages(e)}variables(){return new c.ServerVariables(Object.entries(this._json.variables||{}).map((([e,t])=>this.createModel(p.ServerVariable,t,{id:e,pointer:this.jsonPath(`variables/${e}`)}))))}security(){return(this._json.security||[]).map(((e,t)=>{const n=this.createModel(a.SecurityScheme,e,{id:"",pointer:this.jsonPath(`security/${t}`)}),r=this.createModel(u.SecurityRequirement,{scheme:n,scopes:e.scopes},{id:"",pointer:this.jsonPath(`security/${t}`)});return new l.SecurityRequirements([r])}))}}t.Server=h},12115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Servers=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Servers=i},11650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=void 0;const r=n(87506),i=n(29690);class o extends r.BaseModel{id(){return this._meta.id}name(){return this._json.name}hasDescription(){return(0,i.hasDescription)(this)}description(){return(0,i.description)(this)}extensions(){return(0,i.extensions)(this)}hasExternalDocs(){return(0,i.hasExternalDocs)(this)}externalDocs(){return(0,i.externalDocs)(this)}}t.Tag=o},8664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tags=void 0;const r=n(31247);class i extends r.Collection{get(e){return this.collections.find((t=>t.name()===e))}}t.Tags=i},87401:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function r(e){return`application/vnd.aai.asyncapi;version=${e}`}Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSchemaFormat=t.getSchemaFormat=t.registerSchemaParser=t.parseSchema=t.validateSchema=void 0,t.validateSchema=function(e,t){return n(this,void 0,void 0,(function*(){const n=e.parserRegistry.get(t.schemaFormat);if(void 0===n){const{path:e,schemaFormat:n}=t;return e.pop(),[{message:`Unknown schema format: "${n}"`,path:[...e,"schemaFormat"]},{message:`Cannot validate and parse given schema due to unknown schema format: "${n}"`,path:[...e,"payload"]}]}return n.validate(t)}))},t.parseSchema=function(e,t){return n(this,void 0,void 0,(function*(){const n=e.parserRegistry.get(t.schemaFormat);if(void 0===n)throw new Error("Unknown schema format");return n.parse(t)}))},t.registerSchemaParser=function(e,t){if("object"!=typeof t||"function"!=typeof t.validate||"function"!=typeof t.parse||"function"!=typeof t.getMimeTypes)throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.');t.getMimeTypes().forEach((n=>{e.parserRegistry.set(n,t)}))},t.getSchemaFormat=function(e,t){return"string"==typeof e?e:r(t)},t.getDefaultSchemaFormat=r},21634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseStringifiedData=t.refReplacer=t.copy=t.unstringify=t.stringify=void 0;const r=n(7307),i=n(28227),o=n(8262);function s(){const e=new Map,t=new Map;let n=null;return function(r,i){const o=e.get(this)+(Array.isArray(this)?`[${r}]`:`.${r}`),s=i===Object(i);s&&e.set(i,o);const a=t.get(i)||"";if(!a&&s){const e=o.replace(/undefined\.\.?/,"");t.set(i,e)}const c="["===a[0]?"$":"$.";let p=a?`$ref:${c}${a}`:i;return null===n?n=i:p===n&&(p="$ref:$"),p}}t.stringify=function(e,t={}){if((0,r.isAsyncAPIDocument)(e))e=e.json();else{if(!(0,r.isParsedDocument)(e))return;if((0,r.isStringifiedDocument)(e))return JSON.stringify(e)}return JSON.stringify(Object.assign(Object.assign({},e),{[String(o.xParserSpecStringified)]:!0}),s(),t.space||2)},t.unstringify=function(e){let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){return}if((0,r.isStringifiedDocument)(t))return t=Object.assign({},t),delete t[String(o.xParserSpecStringified)],c(e,void 0,e,new Map,new Map),(0,r.createAsyncAPIDocument)((0,i.createDetailedAsyncAPI)(t,e))},t.copy=function(e){const t=JSON.stringify(e,s()),n=JSON.parse(t);return c(n,void 0,n,new Map,new Map),n},t.refReplacer=s;const a="$ref:$";function c(e,t,n,r,i){let o=e,s=a;if(void 0!==t){o=e[String(t)];const n=t?`.${t}`:"";s=r.get(e)+(Array.isArray(e)?`[${t}]`:n)}r.set(o,s),i.set(s,o);const p=i.get(o);if(p&&(e[String(t)]=p),o!==a&&p!==a||(e[String(t)]=n),o===Object(o))for(const e in o)c(o,e,n,r,i)}t.traverseStringifiedData=c},28227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retrieveDeepData=t.resolveServerUrl=t.findSubArrayIndex=t.untilde=t.tilde=t.createUncaghtDiagnostic=t.toJSONPathArray=t.hasRef=t.isObject=t.mergePatch=t.setExtensionOnJson=t.setExtension=t.hasHintDiagnostic=t.hasInfoDiagnostic=t.hasWarningDiagnostic=t.hasErrorDiagnostic=t.normalizeInput=t.getSemver=t.createDetailedAsyncAPI=void 0;const r=n(70309),i=n(28373);function o(e){const[t,n,r]=e.split("."),[i,o]=r.split("-rc");return{version:e,major:Number(t),minor:Number(n),patch:Number(i),rc:o&&Number(o)}}function s(e,t,n){"object"==typeof n&&n&&(e=e.startsWith("x-")?e:`x-${e}`,n[String(e)]=t)}function a(e){return Boolean(e)&&"object"==typeof e&&!1===Array.isArray(e)}function c(e){return e.includes("~")?e.replace(/~[01]/g,(e=>{switch(e){case"~1":return"/";case"~0":return"~"}return e})):e}t.createDetailedAsyncAPI=function(e,t,n){return{source:n,input:t,parsed:e,semver:o(e.asyncapi)}},t.getSemver=o,t.normalizeInput=function(e){return"string"==typeof e?e:JSON.stringify(e,void 0,2)},t.hasErrorDiagnostic=function(e){return e.some((e=>e.severity===i.DiagnosticSeverity.Error))},t.hasWarningDiagnostic=function(e){return e.some((e=>e.severity===i.DiagnosticSeverity.Warning))},t.hasInfoDiagnostic=function(e){return e.some((e=>e.severity===i.DiagnosticSeverity.Information))},t.hasHintDiagnostic=function(e){return e.some((e=>e.severity===i.DiagnosticSeverity.Hint))},t.setExtension=function(e,t,n){s(e,t,n.json())},t.setExtensionOnJson=s,t.mergePatch=function e(t,n){if(!a(n))return n;const r=a(t)?Object.assign({},t):{};return Object.keys(n).forEach((t=>{const i=n[t];null===i?delete r[t]:r[t]=e(r[t],i)})),r},t.isObject=a,t.hasRef=function(e){return a(e)&&"$ref"in e&&"string"==typeof e.$ref},t.toJSONPathArray=function(e){return function(e){return e.split("/").filter(Boolean).map(c)}((t=e).startsWith("#")?t.substring(1):t);var t},t.createUncaghtDiagnostic=function(e,t,n){if(!(e instanceof Error))return[];const o=n?n.getRangeForJsonPath([]):r.Document.DEFAULT_RANGE;return[{code:"uncaught-error",message:`${t}. Name: ${e.name}, message: ${e.message}, stack: ${e.stack}`,path:[],severity:i.DiagnosticSeverity.Error,range:o}]},t.tilde=function(e){return e.replace(/[~/]{1}/g,(e=>{switch(e){case"/":return"~1";case"~":return"~0"}return e}))},t.untilde=c,t.findSubArrayIndex=function(e,t,n=0){let r,i,o;for(r=n;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(40097),i=n(15994),o=n(47156),s=n(15769),a=n(83209),c=n(83616),p="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:n,data:m,schema:y,schemaValue:g,it:v}=t;if(!1===v.createErrors)return;const b=y,_=i.strConcat(c.default.instancePath,v.errorPath);function $(e,t){return i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,r._`${e}.instancePath === ${_}`,r._`${e}.keyword in ${t}`,r._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function w(e,t){const r=[];for(const n in e){const e=t[n];d.test(e)&&r.push([n,x(e)])}return n.object(...r)}function j(e){return d.test(e)?new o._Code(o.safeStringify(e).replace(f,((e,t)=>`" + JSON.stringify(${s.getData(t,v)}) + "`)).replace(h,"")):r.stringify(e)}function x(e){return r._`function(){return ${j(e)}}`}n.if(r._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,s]=function(e){let t,n;for(const r in e){if("properties"===r||"items"===r)continue;const i=e[r];if("object"==typeof i){t||(t={});const e=t[r]={};for(const t in i)e[t]=[]}else n||(n={}),n[r]=[]}return[t,n]}(b);s&&function(i){const o=n.const("emErrors",r.stringify(i)),s=n.const("templates",w(i,y));n.forOf("err",c.default.vErrors,(e=>n.if($(e,o),(()=>n.code(r._`${o}[${e}.keyword].push(${e})`).assign(r._`${e}.${l}`,!0)))));const{singleError:p}=e;if(p){const e=n.let("message",r._`""`),i=n.let("paramsErrors",r._`[]`);u((t=>{n.if(e,(()=>n.code(r._`${e} += ${"string"==typeof p?p:";"}`))),n.code(r._`${e} += ${d(t)}`),n.assign(i,r._`${i}.concat(${o}[${t}])`)})),a.reportError(t,{message:e,params:r._`{errors: ${i}}`})}else u((e=>a.reportError(t,{message:d(e),params:r._`{errors: ${o}[${e}]}`})));function u(e){n.forIn("key",o,(t=>n.if(r._`${o}[${t}].length`,(()=>e(t)))))}function d(e){return r._`${e} in ${s} ? ${s}[${e}]() : ${g}[${e}]`}}(s),o&&function(e){const i=n.const("emErrors",r.stringify(e)),o=[];for(const t in e)o.push([t,w(e[t],y[t])]);const s=n.const("templates",n.object(...o)),p=n.scopeValue("obj",{ref:u,code:r.stringify(u)}),d=n.let("emPropParams"),f=n.let("emParamsErrors");n.forOf("err",c.default.vErrors,(e=>n.if($(e,i),(()=>{n.assign(d,r._`${p}[${e}.keyword]`),n.assign(f,r._`${i}[${e}.keyword][${e}.params[${d}]]`),n.if(f,(()=>n.code(r._`${f}.push(${e})`).assign(r._`${e}.${l}`,!0)))})))),n.forIn("key",i,(e=>n.forIn("keyProp",r._`${i}[${e}]`,(o=>{n.assign(f,r._`${i}[${e}][${o}]`),n.if(r._`${f}.length`,(()=>{const i=n.const("tmpl",r._`${s}[${e}] && ${s}[${e}][${o}]`);a.reportError(t,{message:r._`${i} ? ${i}() : ${g}[${e}][${o}]`,params:r._`{errors: ${f}}`})}))}))))}(o),function(e){const{props:o,items:s}=e;if(!o&&!s)return;const u=r._`typeof ${m} == "object"`,d=r._`Array.isArray(${m})`,f=n.let("emErrors");let h,v;const b=n.let("templates");function $(e,t){n.assign(f,r.stringify(e)),n.assign(b,w(e,t))}o&&s?(h=n.let("emChildKwd"),n.if(u),n.if(d,(()=>{$(s,y.items),n.assign(h,r.str`items`)}),(()=>{$(o,y.properties),n.assign(h,r.str`properties`)})),v=r._`[${h}]`):s?(n.if(d),$(s,y.items),v=r._`.items`):o&&(n.if(i.and(u,i.not(d))),$(o,y.properties),v=r._`.properties`),n.forOf("err",c.default.vErrors,(e=>function(e,t,o){n.if(i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,r._`${e}.instancePath.indexOf(${_}) === 0`),(()=>{const i=n.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),s=n.const("emMatches",r._`${i}.exec(${e}.instancePath.slice(${_}.length))`),a=n.const("emChild",r._`${s} && ${s}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);n.if(r._`${a} !== undefined && ${a} in ${t}`,(()=>o(a)))}))}(e,f,(t=>n.code(r._`${f}[${t}].push(${e})`).assign(r._`${e}.${l}`,!0))))),n.forIn("key",f,(e=>n.if(r._`${f}[${e}].length`,(()=>{a.reportError(t,{message:r._`${e} in ${b} ? ${b}[${e}]() : ${g}${v}[${e}]`,params:r._`{errors: ${f}[${e}]}`}),n.assign(r._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,r._`${_} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),n.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;en.if(function(e){return i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,i.or(r._`${e}.instancePath === ${_}`,i.and(r._`${e}.instancePath.indexOf(${_}) === 0`,r._`${e}.instancePath[${_}.length] === "/"`)),r._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>n.code(r._`${o}.push(${e})`).assign(r._`${e}.${l}`,!0))))),n.if(r._`${o}.length`,(()=>a.reportError(t,{message:j(e),params:r._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=n.const("emErrs",r._`[]`);n.forOf("err",c.default.vErrors,(t=>n.if(r._`!${t}.${l}`,(()=>n.code(r._`${e}.push(${t})`))))),n.assign(c.default.vErrors,e).assign(c.default.errors,r._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},40097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(22659),i=n(70488),o=n(36485),s=n(73841),a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=n(15769);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=n(15994);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=n(56097);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=n(46625);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},47156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(47156),i=n(26252);var o=n(47156);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=n(26252);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=A(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class p extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=A(this.rhs,e,t),this}get names(){return k(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class l extends p{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=A(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(I(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>T(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class v extends y{}v.kind="else";class b extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(N(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=A(this.condition,e,t),this}get names(){const e=super.names;return k(e,this.condition),this.else&&T(e,this.else.names),e}}b.kind="if";class _ extends y{}_.kind="for";class $ extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=A(this.iteration,e,t),this}get names(){return T(super.names,this.iteration.names)}}class w extends _{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=k(super.names,this.from);return k(e,this.to)}}class j extends _{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=A(this.iterable,e,t),this}get names(){return T(super.names,this.iterable.names)}}class x extends y{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class P extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&T(e,this.catch.names),this.finally&&T(e,this.finally.names),e}}class E extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class O extends y{render(e){return"finally"+super.render(e)}}function T(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function k(e,t){return t instanceof r._CodeOrName?T(e,t.names):e}function A(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function I(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}O.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new c(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new p(e,t,n))}add(e,n){return this._leafNode(new l(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new $(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new w(o,s,t,n),(()=>r(s)))}forOf(e,t,n,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(s,r._`${e}[${t}]`),n(s)}))}return this._for(new j("of",o,s,t),(()=>n(s)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const s=this._scope.toName(e);return this._for(new j("in",o,s,t),(()=>n(s)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new P;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(E,O)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new x(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=N;const R=C(t.operators.AND);t.and=function(...e){return e.reduce(R)};const M=C(t.operators.OR);function C(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(M)}},26252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(47156);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=a;const c=r._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:r.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,r);const a=this._scope[i]||(this._scope[i]=[]),c=a.length;return a[c]=t.ref,r.setValue(t,{property:i,itemIndex:c}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,s={},a){let c=r.nil;for(const p in e){const l=e[p];if(!l)continue;const u=s[p]=s[p]||new Map;l.forEach((e=>{if(u.has(e))return;u.set(e,o.Started);let s=n(e);if(s){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=r._`${c}${n} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);c=r._`${c}${s}${this.opts._n}`}u.set(e,o.Completed)}))}return c}}},83209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(15994),i=n(55943),o=n(83616);function s(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function a(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:c}=e,{gen:l,compositeRule:u,allErrors:d}=c,f=p(e,n,i);(null!=o?o:u||d)?s(l,f):a(c,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:c,compositeRule:l,allErrors:u}=i;s(c,p(e,n,r)),l||u||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,o.default.errors,(s=>{e.const(c,r._`${o.default.vErrors}[${s}]`),e.if(r._`${c}.instancePath === undefined`,(()=>e.assign(r._`${c}.instancePath`,(0,r.strConcat)(o.default.instancePath,a.errorPath)))),e.assign(r._`${c}.schemaPath`,r.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(r._`${c}.schema`,n),e.assign(r._`${c}.data`,i))}))};const c={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function p(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:s}=e,a=[l(s,n),u(e,n)];return function(e,{params:t,message:n},i){const{keyword:s,data:a,schemaValue:p,it:l}=e,{opts:u,propertyName:d,topSchemaRef:f,schemaPath:h}=l;i.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||r._`{}`]),u.messages&&i.push([c.message,"function"==typeof n?n(e):n]),u.verbose&&i.push([c.schema,p],[c.parentSchema,r._`${f}${h}`],[o.default.data,a]),d&&i.push([c.propertyName,d])}(e,t,a),i.object(...a)}(e,t,n)}function l({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function u({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let s=o?t:r.str`${t}/${e}`;return n&&(s=r.str`${s}${(0,i.getErrorPath)(n,i.Type.Str)}`),[c.schemaPath,s]}},66301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(15994),i=n(56097),o=n(83616),s=n(77380),a=n(55943),c=n(15769);class p{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(e){const t=d.call(this,e);if(t)return t;const n=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:p}=this.opts.code,{ownProperties:l}=this.opts,u=new r.CodeGen(this.scope,{es5:a,lines:p,ownProperties:l});let f;e.$async&&(f=u.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=u.scopeName("validate");e.validateName=h;const m={gen:u,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),u.optimize(this.opts.code.optimize);const t=u.toString();y=`${u.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:u._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function u(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function d(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function f(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),r=(0,s._getFullPath)(this.opts.uriResolver,n);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return y.call(this,n,e);const o=(0,s.normalizeId)(r),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=h.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||l.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,r)),new p({schema:t,schemaId:n,root:e,baseId:i})}return y.call(this,n,a)}}t.SchemaEnv=p,t.compileSchema=l,t.resolveRef=function(e,t,n){var r;n=(0,s.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=f.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:s}=this.opts;i&&(o=new p({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[n]=u.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,r,e)}const{schemaId:c}=this.opts;return o=o||new p({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},83616:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},46625:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(77380);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},77380:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(55943),i=n(64063),o=n(23318),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&p(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function p(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=p(e))),t===1/0))return 1/0}return t}function l(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return u(e,r)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=u;const d=/#\/?$/;function f(e){return e?e.replace(d,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,s=f(e[n]||t),a={"":s},c=l(r,s,!1),p={},u=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=c+t;let s=a[i];function l(t){const n=this.opts.uriResolver.resolve;if(t=f(s?n(s,t):t),u.has(t))throw m(t);u.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?d(e,r.schema,t):t!==f(o)&&("#"===t[0]?(d(e,p[t],t),p[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[n]&&(s=l.call(this,e[n])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=s})),p;function d(e,t,n){if(void 0!==t&&!i(e,t))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},42528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},55943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(15994),i=n(47156);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||h(e,`unknown keyword: "${n}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function p({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,s,a,c)=>{const p=void 0===a?s:a instanceof r.Name?(s instanceof r.Name?e(o,s,a):t(o,s,a),a):s instanceof r.Name?(t(o,a,s),s):n(s,a);return c!==r.Name||p instanceof r.Name?p:i(o,p)}}function l(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&u(e,n,t),n}function u(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),u(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=u;const d={};var f;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===f.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=h},57275:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},81636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(83209),i=n(15994),o=n(83616),s={message:"boolean schema is false"};function a(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),a(e)):n.var(t,!0)}},86236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(42528),i=n(57275),o=n(83209),s=n(15994),a=n(55943);var c;function p(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=p(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=p,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,a=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),p=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(p){const i=d(t,r,o.strictNumbers,c.Wrong);n.if(i,(()=>{a.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,a=r.let("dataType",s._`typeof ${i}`),c=r.let("coerced",s._`undefined`);"array"===o.coerceTypes&&r.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(d(t,i,o.strictNumbers),(()=>r.assign(c,i))))),r.if(s._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===o.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void r.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(c,s._`""`);case"number":return void r.elseIf(s._`${a} == "boolean" || ${i} === null - || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,s._`+${i}`);case"integer":return void r.elseIf(s._`${a} === "boolean" || ${i} === null - || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,s._`+${i}`);case"boolean":return void r.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return r.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(c,null);case"array":r.elseIf(s._`${a} === "string" || ${a} === "number" - || ${a} === "boolean" || ${i} === null`).assign(c,s._`[${i}]`)}}r.else(),h(e),r.endIf(),r.if(s._`${c} !== undefined`,(()=>{r.assign(i,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${n}]`,r)))}(e,c)}))}(e,t,a):h(e)}))}return p};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,n,r=c.Correct){const i=r===c.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return r===c.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,n?s._`isFinite(${t})`:s.nil)}}function d(e,t,n,r){if(1===e.length)return u(e[0],t,n,r);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,u(e,t,n,r));return i}t.checkDataType=u,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=h},79545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(15994),i=n(55943);function o(e,t,n){const{gen:o,compositeRule:s,data:a,opts:c}=e;if(void 0===n)return;const p=r._`${a}${(0,r.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${p}`);let l=r._`${p} === undefined`;"empty"===c.useDefaults&&(l=r._`${l} || ${p} === null || ${p} === ""`),o.if(l,r._`${p} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},15769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(81636),i=n(86236),o=n(57275),s=n(86236),a=n(79545),c=n(11746),p=n(56945),l=n(15994),u=n(83616),d=n(77380),f=n(55943),h=n(83209);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,l._`${u.default.data}, ${u.default.valCxt}`,r.$async,(()=>{e.code(l._`"use strict"; ${y(n,i)}`),function(e,t){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,l._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,l._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,l._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,l._`${u.default.valCxt}.${u.default.rootData}`),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,l._`""`),e.var(u.default.parentData,l._`undefined`),e.var(u.default.parentDataProperty,l._`undefined`),e.var(u.default.rootData,u.default.data),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`{}`)}))}(e,i),e.code(o)})):e.func(t,l._`${u.default.data}, ${function(e){return l._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?l._`, ${u.default.dynamicAnchors}={}`:l.nil}}={}`}(i)}`,r.$async,(()=>e.code(y(n,i)).code(o)))}function y(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?l._`/*# sourceURL=${n} */`:l.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function _(e,t){if(e.opts.jtd)return w(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);w(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function $({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(l._`${u.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=l.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(l._`${u.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function w(e,t,n,r){const{gen:i,schema:a,data:c,allErrors:p,opts:d,self:h}=e,{RULES:m}=h;function y(f){(0,o.shouldUseGroup)(a,f)&&(f.type?(i.if((0,s.checkDataType)(f.type,c,d.strictNumbers)),j(e,f),1===t.length&&t[0]===f.type&&n&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):j(e,f),p||i.if(l._`${u.default.errors} === ${r||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{x(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)x(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&S(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)y(e);y(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function j(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),g(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(u.default.vErrors,null),r.let(u.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",l._`${n}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(l._`${u.default.errors} === 0`,(()=>t.return(u.default.data)),(()=>t.throw(l._`new ${i}(${u.default.vErrors})`))):(t.assign(l._`${r}.errors`,u.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof l.Name&&e.assign(l._`${t}.props`,n),r instanceof l.Name&&e.assign(l._`${t}.items`,r)}(e),t.return(l._`${u.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",k(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",u.default.errors))}result(e,t,n){this.failResult((0,l.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=l.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,l.or)(l._`${r} === undefined`,t)),e!==l.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,l.or)(function(){if(n.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return l._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return l.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return l._`!${n}(${t})`}return l.nil}())}subschema(e,t){const n=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(n,this.it,e),(0,p.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),g(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",u.default.errors);_(e,o),r.var(t,l._`${o} === ${u.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function E(e,t,n,r){const i=new P(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,c.funcKeywordCode)(i,n):"macro"in n?(0,c.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(i,n)}t.KeywordCxt=P;const O=/^\/(?:[^~]|~0|~1)*$/,T=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function k(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return u.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=u.default.rootData}else{const s=T.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(c("property/index",a));return r[t-a]}if(a>t)throw new Error(c("data",a));if(o=n[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=l._`${o}${(0,l.getProperty)((0,f.unescapeJsonPointer)(e))}`,s=l._`${s} && ${o}`);return s;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=k},11746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(15994),i=n(83616),o=n(73604),s=n(83209);function a(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:s,it:a}=e,p=t.macro.call(a.self,o,s,a),l=c(n,i,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const u=n.name("valid");e.subschema({schema:p,schemaPath:r.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:p,keyword:l,schema:u,parentSchema:d,$data:f,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!f&&t.compile?t.compile.call(h.self,u,d,h):t.validate,y=c(p,l,m),g=p.let("valid");function v(n=(t.async?r._`await `:r.nil)){const s=h.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!f||!1===t.schema);p.assign(g,r._`${n}${(0,o.callValidateCode)(e,y,s,a)}`,t.modifying)}function b(e){var n;p.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const n=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>v(r._`await `)),(t=>p.assign(g,!1).if(r._`${t} instanceof ${h.ValidationError}`,(()=>p.assign(e,r._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=r._`${y}.errors`;return p.assign(e,null),v(r.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:g)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},56945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(15994),i=n(55943);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==n){const{errorPath:s,dataPathArr:a,opts:c}=t;l(p.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${s}${(0,i.getErrorPath)(n,o,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function l(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==s&&(l(s instanceof r.Name?s:p.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},22659:(e,t,n)=>{"use strict";var r=n(25108);Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var i=n(15769);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var o=n(15994);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const s=n(56097),a=n(46625),c=n(42528),p=n(66301),l=n(15994),u=n(77380),d=n(86236),f=n(55943),h=n(23935),m=n(17098),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function $(e){var t,n,r,i,o,s,a,c,p,l,u,d,f,h,g,v,b,_,$,w,j,x,S,P,E;const O=e.strict,T=null===(t=e.code)||void 0===t?void 0:t.optimize,k=!0===T||void 0===T?1:T||0,A=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:y,I=null!==(i=e.uriResolver)&&void 0!==i?i:m.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:O)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:O)||void 0===c||c,strictTypes:null!==(l=null!==(p=e.strictTypes)&&void 0!==p?p:O)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(u=e.strictTuples)&&void 0!==u?u:O)&&void 0!==d?d:"log",strictRequired:null!==(h=null!==(f=e.strictRequired)&&void 0!==f?f:O)&&void 0!==h&&h,code:e.code?{...e.code,optimize:k,regExp:A}:{optimize:k,regExp:A},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(x=e.validateSchema)||void 0===x||x,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(E=e.int32range)||void 0===E||E,uriResolver:I}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...$(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:v,es5:t,lines:n}),this.logger=function(e){if(!1===e)return T;if(void 0===e)return r;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,c.getRules)(),j.call(this,b,e,"NOT SUPPORTED"),j.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=O.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=h;"id"===n&&(r={...h},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await p.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new p.SchemaEnv({schema:{},schemaId:n});if(t=p.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,n,t),!t)return(0,f.eachItem)(n,(e=>I.call(this,e))),this;R.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach((t=>I.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=C(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,u.normalizeId)(o||n);const c=u.getSchemaRefs.call(this,e,n);return a=new p.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:c}),this._cache.set(a.schema,a),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):p.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,e)}finally{this.opts=t}}}function j(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function P(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function O(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=w,w.ValidationError=s.default,w.MissingRefError=a.default;const T={log(){},warn(){},error(){}},k=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,t){const{RULES:n}=this;if((0,f.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!k.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:e})=>e===n));if(s||(s={type:n,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?N.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function N(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,M]}}},57723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64063);r.code='require("ajv/dist/runtime/equal").default',t.default=r},24860:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(60540);r.code='require("ajv/dist/runtime/uri").default',t.default=r},56097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},62870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(15994),i=n(55943),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?s(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:n,schema:o,data:s,keyword:a,it:c}=e;c.items=!0;const p=n.const("len",r._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${p} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=n.var("valid",r._`${p} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},89101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(73604),i=n(15994),o=n(83616),s=n(55943),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:p,it:l}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:u,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,s.alwaysValidSchema)(l,n))return;const f=(0,r.allSchemaProperties)(a.properties),h=(0,r.allSchemaProperties)(a.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function y(r){if("all"===d.removeAdditional||d.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(u||t.break());if("object"==typeof n&&!(0,s.alwaysValidSchema)(l,n)){const n=t.name("valid");"failing"===d.removeAdditional?(g(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),m(r)}))):(g(r,n),u||t.if((0,i.not)(n),(()=>t.break())))}}}function g(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",c,(n=>{f.length||h.length?t.if(function(n){let o;if(f.length>8){const e=(0,s.schemaRefOrVal)(l,a.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=f.length?(0,i.or)(...f.map((e=>i._`${n} === ${e}`))):i.nil;return h.length&&(o=(0,i.or)(o,...h.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>y(n))):y(n)})),e.ok(i._`${p} === ${o.default.errors}`)}};t.default=a},2072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(55943),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(s)}))}};t.default=i},80456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(73604).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},91067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(55943),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:a}=e;let c,p;const{minContains:l,maxContains:u}=o;a.opts.next?(c=void 0===l?1:l,p=u):c=1;const d=t.const("len",r._`${s}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,n)){let t=r._`${d} >= ${c}`;return void 0!==p&&(t=r._`${t} && ${d} <= ${p}`),void e.pass(t)}a.items=!0;const f=t.name("valid");function h(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===p?t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0).break())):(t.if(r._`${e} > ${p}`,(()=>t.assign(f,!1).break())),1===c?t.assign(f,!0):t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0))))}(n)))))}function m(n,r){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===p&&1===c?m(f,(()=>t.if(f,(()=>t.break())))):0===c?(t.let(f,!0),void 0!==p&&t.if(r._`${s}.length > 0`,h)):(t.let(f,!1),h()),e.result(f,(()=>e.reset()))}};t.default=o},5189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(15994),i=n(55943),o=n(73604);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e}, - missingProperty: ${i}, - depsCount: ${t}, - deps: ${n}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const l=(0,o.propertyInData)(n,i,c,s.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),s.allErrors?n.if(l,(()=>{for(const t of p)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${l} && (${(0,o.checkMissingProp)(e,p,a)})`),(0,o.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:s,it:a}=e,c=n.name("valid");for(const p in t)(0,i.alwaysValidSchema)(a,t[p])||(n.if((0,o.propertyInData)(n,r,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},26024:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(55943),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),c=s(o,"else");if(!a&&!c)return;const p=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(l,u("then",n),u("else",n))}else a?t.if(l,u("then")):t.if((0,r.not)(l),u("else"));function u(n,i){return()=>{const o=e.subschema({keyword:n},l);t.assign(p,l),e.mergeValidEvaluated(o,p),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(p,(()=>e.error(!0)))}};function s(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},35653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(62870),i=n(78111),o=n(40493),s=n(94460),a=n(91067),c=n(5189),p=n(78738),l=n(89101),u=n(11676),d=n(98408),f=n(57018),h=n(80456),m=n(58008),y=n(2072),g=n(26024),v=n(54572);t.default=function(e=!1){const t=[f.default,h.default,m.default,y.default,g.default,v.default,p.default,l.default,c.default,u.default,d.default];return e?t.push(i.default,s.default):t.push(r.default,o.default),t.push(a.default),t}},40493:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(15994),i=n(55943),o=n(73604),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:o,parentSchema:s,data:a,keyword:c,it:p}=e;!function(e){const{opts:r,errSchemaPath:o}=p,s=n.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(p,e,r.strictTuples)}}(s),p.opts.unevaluated&&n.length&&!0!==p.items&&(p.items=i.mergeEvaluated.items(o,n.length,p.items));const l=o.name("valid"),u=o.const("len",r._`${a}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(p,t)||(o.if(r._`${u} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},l))),e.ok(l))}))}t.validateTuple=a,t.default=s},94460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(55943),o=n(73604),s=n(62870),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},57018:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(55943),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},58008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(55943),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=n,c=t.let("valid",!1),p=t.let("passing",null),l=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((n,o)=>{let a;(0,i.alwaysValidSchema)(s,n)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(r._`${l} && ${c}`).assign(c,!1).assign(p,r._`[${p}, ${o}]`).else(),t.if(l,(()=>{t.assign(c,!0),t.assign(p,o),a&&e.mergeEvaluated(a,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},98408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(73604),i=n(15994),o=n(55943),s=n(55943),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:p}=e,{opts:l}=p,u=(0,r.allSchemaProperties)(n),d=u.filter((e=>(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length||d.length===u.length&&(!p.opts.unevaluated||!0===p.props))return;const f=l.strictSchema&&!l.allowMatchingProperties&&c.properties,h=t.name("valid");!0===p.props||p.props instanceof i.Name||(p.props=(0,s.evaluatedPropsToName)(t,p.props));const{props:m}=p;function y(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",a,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=d.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:s.Type.Str},h),p.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||p.allErrors||t.if((0,i.not)(h),(()=>t.break()))}))}))}!function(){for(const e of u)f&&y(e),p.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=a},78111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(40493),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},11676:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15769),i=n(73604),o=n(55943),s=n(89101),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new r.KeywordCxt(p,s.default,"additionalProperties"));const l=(0,i.allSchemaProperties)(n);for(const e of l)p.definedProperties.add(e);p.opts.unevaluated&&l.length&&!0!==p.props&&(p.props=o.mergeEvaluated.props(t,(0,o.toHash)(l),p.props));const u=l.filter((e=>!(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length)return;const d=t.name("valid");for(const n of u)f(n)?h(n):(t.if((0,i.propertyInData)(t,c,n,p.opts.ownProperties)),h(n),p.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function f(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},78738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(55943),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,n))return;const a=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=o},54572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(55943),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},73604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(15994),i=n(55943),o=n(83616),s=n(55943);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function p(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(c(e,t,n))):o}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(p(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(p(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${c(e,t,n)}`:o},t.noPropertyInData=p,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:s,errorPath:a},it:c},p,l,u){const d=u?r._`${e}, ${t}, ${i}${s}`:t,f=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=r._`${d}, ${n.object(...f)}`;return l!==r.nil?r._`${p}.call(${l}, ${h})`:r._`${p}(${h})`};const u=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===o.code?u:(0,s.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(s){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},a),t.if((0,r.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,r.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},70424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},44781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70424),i=n(39872),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},39872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(46625),i=n(73604),o=n(15994),s=n(83616),a=n(66301),c=n(55943),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:s,schemaEnv:c,validateName:p,opts:d,self:f}=i,{root:h}=c;if(("#"===n||"#/"===n)&&s===h.baseId)return function(){if(c===h)return u(e,p,c,c.$async);const n=t.scopeValue("root",{ref:h});return u(e,o._`${n}.validate`,h,h.$async)}();const m=a.resolveRef.call(f,h,s,n);if(void 0===m)throw new r.default(i.opts.uriResolver,s,n);return m instanceof a.SchemaEnv?function(t){const n=l(e,t);u(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===d.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),s=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function l(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function u(e,t,n,r){const{gen:a,it:p}=e,{allErrors:l,schemaEnv:u,opts:d}=p,f=d.passContext?s.default.this:o.nil;function h(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function m(e){var t;if(!p.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(r&&!r.dynamicProps)void 0!==r.props&&(p.props=c.mergeEvaluated.props(a,r.props,p.props));else{const t=a.var("props",o._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,o.Name)}if(!0!==p.items)if(r&&!r.dynamicItems)void 0!==r.items&&(p.items=c.mergeEvaluated.items(a,r.items,p.items));else{const t=a.var("items",o._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,o.Name)}}r?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),m(t),l||a.assign(n,!0)}),(e=>{a.if(o._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),h(e),l||a.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,f),(()=>m(t)),(()=>h(t)))}t.getValidate=l,t.callRef=u,t.default=p},36485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(82629),o=n(66301),s=n(55943),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:p}=e,{oneOf:l}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=a.propertyName;if("string"!=typeof u)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),f=t.const("tag",r._`${n}${(0,r.getProperty)(u)}`);function h(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${f} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(c);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:u}))),e.ok(d)}};t.default=a},82629:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},70488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(44781),i=n(5163),o=n(35653),s=n(64284),a=n(51203),c=[r.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},78767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:s,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:l,schemaEnv:u,self:d}=c;p.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:p.code.formats}),s=n.const("fDef",r._`${o}[${a}]`),c=n.let("fType"),l=n.let("format");n.if(r._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>n.assign(c,r._`${s}.type || "string"`).assign(l,r._`${s}.validate`)),(()=>n.assign(c,r._`"string"`).assign(l,s))),e.fail$data((0,r.or)(!1===p.strictSchema?r.nil:r._`${a} && !${l}`,function(){const e=u.$async?r._`(${s}.async ? await ${l}(${i}) : ${l}(${i}))`:r._`${l}(${i})`,n=r._`(typeof ${l} == "function" ? ${e} : ${l}.test(${i}))`;return r._`${l} && ${l} !== true && ${c} === ${t} && !${n}`}()))}():function(){const o=d.formats[s];if(!o)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${l}"`}d.logger.warn(e())}();if(!0===o)return;const[a,c,f]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):p.code.formats?r._`${p.code.formats}${(0,r.getProperty)(s)}`:void 0,i=n.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return r._`await ${f}(${i})`}return"function"==typeof c?r._`${f}(${i})`:r._`${f}.test(${i})`}())}())}};t.default=i},64284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(78767).default];t.default=r},51203:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},10803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(55943),o=n(57723),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=s},96145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(55943),o=n(57723),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:s,schema:a,schemaCode:c,it:p}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=p.opts.loopEnum;let u;const d=()=>null!=u?u:u=(0,i.useFunc)(t,o.default);let f;if(l||s)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",c,(e=>t.if(r._`${d()}(${n}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);f=(0,r.or)(...a.map(((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?r._`${d()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(f)}};t.default=s},5163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17128),i=n(11078),o=n(84412),s=n(63737),a=n(67617),c=n(93390),p=n(63934),l=n(72435),u=n(10803),d=n(96145),f=[r.default,i.default,o.default,s.default,a.default,c.default,p.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,d.default];t.default=f},63934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},84412:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=n(55943),o=n(24860),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,p=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${p} ${c} ${s}`)}};t.default=s},17128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=a},67617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},11078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15994),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),c=s?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${i} === 0 || (${a} = ${n}/${i}, ${c}))`)}};t.default=i},63737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(73604),i=n(15994),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=n?i._`(new RegExp(${s}, ${c}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${p}.test(${t})`)}};t.default=o},93390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(73604),i=n(15994),o=n(55943),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:s,data:a,$data:c,it:p}=e,{opts:l}=p;if(!c&&0===n.length)return;const u=n.length>=l.loopRequired;if(p.allErrors?function(){if(u||c)e.block$data(i.nil,d);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(u||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,s,(()=>{t.assign(o,(0,r.propertyInData)(t,a,n,l.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(p,t,p.opts.strictRequired)}}function d(){t.forOf("prop",s,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,l.ownProperties),(()=>e.error()))}))}}};t.default=s},72435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(86236),i=n(15994),o=n(55943),s=n(57723),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:p,schemaCode:l,it:u}=e;if(!a&&!c)return;const d=t.let("valid"),f=p.items?(0,r.getSchemaTypes)(p.items):[];function h(o,s){const a=t.name("item"),c=(0,r.checkDataTypes)(f,a,u.opts.strictNumbers,r.DataType.Wrong),p=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(a,i._`${n}[${o}]`),t.if(c,i._`continue`),f.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(s,i._`${p}[${a}]`),e.error(),t.assign(d,!1).break()})).code(i._`${p}[${a}] = ${o}`)}))}function m(r,a){const c=(0,o.useFunc)(t,s.default),p=t.name("outer");t.label(p).for(i._`;${r}--;`,(()=>t.for(i._`${a} = ${r}; ${a}--;`,(()=>t.if(i._`${c}(${n}[${r}], ${n}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(p)}))))))}e.block$data(d,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(d,!0),t.if(i._`${r} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?h:m)(r,o)))}),i._`${l} === false`),e.ok(d)}};t.default=a},23318:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,s,a,c,p,l,u){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in r(o,s,a,c,p,l,u),o){var f=o[d];if(Array.isArray(f)){if(d in t.arrayKeywords)for(var h=0;h{e.exports={schemas:{"2.0.0":n(59284),"2.1.0":n(8369),"2.2.0":n(9320),"2.3.0":n(83738),"2.4.0":n(45771),"2.5.0":n(22517),"2.6.0":n(25183),"3.0.0":n(4064)},schemasWithoutId:{"2.0.0":n(1934),"2.1.0":n(5914),"2.2.0":n(45624),"2.3.0":n(15732),"2.4.0":n(30198),"2.5.0":n(27153),"2.6.0":n(98379),"3.0.0":n(54463)}}},52221:(e,t,n)=>{var r=n(64063),i=n(72466);function o(e,t){return t=s(t),i.fromSchema(e,t)}function s(e){return(e=e||{}).dateToDateTime=e.dateToDateTime||!1,e.cloneSchema=0!=e.cloneSchema,e.supportPatternProperties=e.supportPatternProperties||!1,e.keepNotSupported=e.keepNotSupported||[],e.strictMode=0!=e.strictMode,"function"!=typeof e.patternPropertiesHandler&&(e.patternPropertiesHandler=a),e._removeProps=[],!0===e.removeReadOnly&&e._removeProps.push("readOnly"),!0===e.removeWriteOnly&&e._removeProps.push("writeOnly"),e._structs=["allOf","anyOf","oneOf","not","items","additionalProperties"],e._notSupported=function(e,t){for(var n,r=0;r=0&&e.splice(n,1);return e}(["nullable","discriminator","readOnly","writeOnly","xml","externalDocs","example","deprecated"],e.keepNotSupported),e}function a(e){var t,n=e.patternProperties,i=e.additionalProperties;if("object"!=typeof i)return e;for(t in n)if(r(n[t],i)){e.additionalProperties=!1;break}return e}e.exports=o,e.exports.fromSchema=o,e.exports.fromParameter=function(e,t){return t=s(t),i.fromParameter(e,t)}},72466:(e,t,n)=>{var r=n(38387),i=n(86897);e.exports={fromSchema:r,fromParameter:i}},86897:(e,t,n)=>{var r=n(38387),i=n(55902);function o(e,t,n){var i=r(t||{},n);return e.description&&(i.description=e.description),i}e.exports=function(e,t){if(void 0!==e.schema)return o(e,e.schema,t);if(void 0!==e.content)return function(e,t){var n={};for(var r in e.content)n[r]=o(e,e.content[r].schema,t);return n}(e,t);if(t.strictMode)throw new i("OpenAPI parameter must have either a 'schema' or a 'content' property");return o(e,{},t)}},38387:(e,t,n)=>{var r=n(74245).K,i=n(33839);function o(e,t){t.cloneSchema&&(e=Object.assign({},e));for(var n=t._structs,u=t._notSupported,d=t.strictMode,f=0,h=0,m=null;ft.MAX_INT_32)&&(e.maximum=t.MAX_INT_32),e}function a(e,t){return(!e.minimum&&0!==e.minimum||e.minimumt.MAX_INT_64)&&(e.maximum=t.MAX_INT_64),e}function c(e,t){return(!e.minimum&&0!==e.minimum||e.minimumt.MAX_FLOAT)&&(e.maximum=t.MAX_FLOAT),e}function p(e,t){return(!e.minimum&&0!==e.minimum||e.minimumt.MAX_DOUBLE)&&(e.maximum=t.MAX_DOUBLE),e}function l(e,t){return e.pattern=t.BYTE_PATTERN,e}e.exports=function(e,t){return(e=o(e,t)).$schema="http://json-schema.org/draft-04/schema#",e}},55902:e=>{function t(e){this.name="InvalidInputError",this.message=e}e.exports=t,t.prototype=new Error},33839:e=>{function t(e){this.name="InvalidTypeError",this.message=e}e.exports=t,t.prototype=Error.prototype},74245:(e,t)=>{t.K=function(e){return null!==e&&"object"==typeof e}},46064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17464);t.resolveFile=function(e){return new Promise(((t,n)=>{const i=e.href();r.readFile(i,"utf8",((e,r)=>{e?n(e):t(r)}))}))}},22462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(18605),i=n(83300);class o extends Error{constructor(){super(...arguments),this.name="OpenError"}}t.OpenError=o;class s extends Error{constructor(){super(...arguments),this.name="ReadError"}}function a(e,t={}){return r.__awaiter(this,void 0,void 0,(function*(){const n=e.href(),r=yield i.default(n,t);if(r.ok)return r.text();if(404===r.status)throw new o(`Page not found: ${n}`);throw new s(`${r.status} ${r.statusText}`)}))}t.NetworkError=s,t.resolveHttp=a,t.createResolveHttp=function(e={}){return t=>a(t,e)}},55738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22462);t.createResolveHttp=r.createResolveHttp,t.resolveHttp=r.resolveHttp,t.NetworkError=r.NetworkError,t.OpenError=r.OpenError;var i=n(46064);t.resolveFile=i.resolveFile},18605:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>_,__asyncGenerator:()=>b,__asyncValues:()=>$,__await:()=>v,__awaiter:()=>l,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>P,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>u,__importDefault:()=>x,__importStar:()=>j,__makeTemplateObject:()=>w,__metadata:()=>p,__param:()=>c,__read:()=>m,__rest:()=>s,__spread:()=>y,__spreadArrays:()=>g,__values:()=>h});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,r){t(n,r,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,p):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function c(e){a("next",e)}function p(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function $(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},69655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0,t.Cache=class{constructor(e={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=e.stdTTL}get stats(){return this._stats}get(e){const t=this._data[e];if(t&&(!this._stdTTL||(new Date).getTime()-t.ts{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveCrawler=void 0;const r=n(4658),i=n(13886),o=n(27361),s=n(32234);t.ResolveCrawler=class{constructor(e,t,n){this._resolved=n,this.resolvers=[],this.pointerGraph=new i.DepGraph({circular:!0}),this.pointerStemGraph=new i.DepGraph({circular:!0}),this.computeGraph=(e,t=[],n="#",r=[])=>{n||(n="#");let i=this._runner.computeRef({val:e,jsonPointer:n,pointerStack:r});if(void 0!==i)this._resolveRef({ref:i,val:e,parentPath:t,pointerStack:r,parentPointer:n,cacheKey:n,resolvingPointer:this.jsonPointer});else if("object"==typeof e)for(const o in e){if(!e.hasOwnProperty(o))continue;const a=e[o],c=s.addToJSONPointer(n,o);i=this._runner.computeRef({key:o,val:a,jsonPointer:c,pointerStack:r}),t.push(o),void 0!==i?this._resolveRef({ref:i,val:a,parentPath:t,parentPointer:c,pointerStack:r,cacheKey:s.uriToJSONPointer(i),resolvingPointer:this.jsonPointer}):"object"==typeof a&&this.computeGraph(a,t,c,r),t.pop()}},this._resolveRef=e=>{const{pointerStack:t,parentPath:n,parentPointer:i,ref:a}=e;if(s.uriIsJSONPointer(a)){if(this._runner.dereferenceInline){const e=s.uriToJSONPointer(a);let c;try{c=(0,r.pointerToPath)(e)}catch(e){return void this._resolved.errors.push({code:"PARSE_POINTER",message:`'${a}' JSON pointer is invalid`,uri:this._runner.baseUri,uriStack:this._runner.uriStack,pointerStack:[],path:[]})}let p=c.length>0;for(const e in c)if(n[e]!==c[e]){p=!1;break}if(p)return;this.pointerStemGraph.hasNode(e)||this.pointerStemGraph.addNode(e);let l="#",u="";for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultGetRef=t.Cache=void 0,n(80259).__exportStar(n(29698),t);var r=n(69655);Object.defineProperty(t,"Cache",{enumerable:!0,get:function(){return r.Cache}});var i=n(71340);Object.defineProperty(t,"defaultGetRef",{enumerable:!0,get:function(){return i.defaultGetRef}})},13886:(e,t)=>{function n(e,t,n,r){var o={};return function(s){if(!o[s]){var a={},c=[],p=[];for(p.push({node:s,processed:!1});p.length>0;){var l=p[p.length-1],u=l.processed,d=l.node;if(u)p.pop(),c.pop(),a[d]=!1,o[d]=!0,t&&0!==e[d].length||n.push(d);else{if(o[d]){p.pop();continue}if(a[d]){if(r){p.pop();continue}throw c.push(d),new i(c)}a[d]=!0,c.push(d);for(var f=e[d],h=f.length-1;h>=0;h--)p.push({node:f[h],processed:!1});l.processed=!0}}}}}var r=t.DepGraph=function(e){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=e&&!!e.circular};r.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(e,t){this.hasNode(e)||(this.nodes[e]=2===arguments.length?t:e,this.outgoingEdges[e]=[],this.incomingEdges[e]=[])},removeNode:function(e){this.hasNode(e)&&(delete this.nodes[e],delete this.outgoingEdges[e],delete this.incomingEdges[e],[this.incomingEdges,this.outgoingEdges].forEach((function(t){Object.keys(t).forEach((function(n){var r=t[n].indexOf(e);r>=0&&t[n].splice(r,1)}),this)})))},hasNode:function(e){return this.nodes.hasOwnProperty(e)},getNodeData:function(e){if(this.hasNode(e))return this.nodes[e];throw new Error("Node does not exist: "+e)},setNodeData:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);this.nodes[e]=t},addDependency:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);if(!this.hasNode(t))throw new Error("Node does not exist: "+t);return-1===this.outgoingEdges[e].indexOf(t)&&this.outgoingEdges[e].push(t),-1===this.incomingEdges[t].indexOf(e)&&this.incomingEdges[t].push(e),!0},removeDependency:function(e,t){var n;this.hasNode(e)&&(n=this.outgoingEdges[e].indexOf(t))>=0&&this.outgoingEdges[e].splice(n,1),this.hasNode(t)&&(n=this.incomingEdges[t].indexOf(e))>=0&&this.incomingEdges[t].splice(n,1)},clone:function(){var e=this,t=new r;return Object.keys(e.nodes).forEach((function(n){t.nodes[n]=e.nodes[n],t.outgoingEdges[n]=e.outgoingEdges[n].slice(0),t.incomingEdges[n]=e.incomingEdges[n].slice(0)})),t},directDependenciesOf:function(e){if(this.hasNode(e))return this.outgoingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},directDependantsOf:function(e){if(this.hasNode(e))return this.incomingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},dependenciesOf:function(e,t){if(this.hasNode(e)){var r=[];n(this.outgoingEdges,t,r,this.circular)(e);var i=r.indexOf(e);return i>=0&&r.splice(i,1),r}throw new Error("Node does not exist: "+e)},dependantsOf:function(e,t){if(this.hasNode(e)){var r=[];n(this.incomingEdges,t,r,this.circular)(e);var i=r.indexOf(e);return i>=0&&r.splice(i,1),r}throw new Error("Node does not exist: "+e)},overallOrder:function(e){var t=this,r=[],i=Object.keys(this.nodes);if(0===i.length)return r;if(!this.circular){var o=n(this.outgoingEdges,!1,[],this.circular);i.forEach((function(e){o(e)}))}var s=n(this.outgoingEdges,e,r,this.circular);return i.filter((function(e){return 0===t.incomingEdges[e].length})).forEach((function(e){s(e)})),this.circular&&i.filter((function(e){return-1===r.indexOf(e)})).forEach((function(e){s(e)})),r},entryNodes:function(){var e=this;return Object.keys(this.nodes).filter((function(t){return 0===e.incomingEdges[t].length}))}},r.prototype.directDependentsOf=r.prototype.directDependantsOf,r.prototype.dependentsOf=r.prototype.dependantsOf;var i=t.DepGraphCycleError=function(e){var t="Dependency Cycle Found: "+e.join(" -> "),n=new Error(t);return n.cyclePath=e,Object.setPrototypeOf(n,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(n,i),n};i.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(i,Error)},29698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Resolver=void 0;const r=n(13886),i=n(69655),o=n(71340);t.Resolver=class{constructor(e={}){this.ctx={},this.uriCache=e.uriCache||new i.Cache,this.resolvers=e.resolvers||{},this.getRef=e.getRef,this.transformRef=e.transformRef,this.dereferenceInline=void 0===e.dereferenceInline||e.dereferenceInline,this.dereferenceRemote=void 0===e.dereferenceRemote||e.dereferenceRemote,this.parseResolveResult=e.parseResolveResult,this.transformDereferenceResult=e.transformDereferenceResult,this.ctx=e.ctx}resolve(e,t={}){const n=new r.DepGraph({circular:!0});return new o.ResolveRunner(e,n,Object.assign(Object.assign({uriCache:this.uriCache,resolvers:this.resolvers,getRef:this.getRef,transformRef:this.transformRef,dereferenceInline:this.dereferenceInline,dereferenceRemote:this.dereferenceRemote,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult},t),{ctx:Object.assign({},this.ctx||{},t.ctx||{})})).resolve(t)}}},71340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveRunner=t.defaultGetRef=void 0;const r=n(80259),i=n(4658),o=n(75966),s=n(13886),a=n(66312),c=n(27361),p=n(36968),l=n(54998),u=n(16283),d=n(69655),f=n(42516),h=n(32234),m=n(53316);let y=0;t.defaultGetRef=(e,t)=>{if(t&&"object"==typeof t&&"string"==typeof t.$ref)return t.$ref};class g{constructor(e,n=new s.DepGraph({circular:!0}),a={}){this.ctx={},this.computeRef=e=>{const t=this.getRef(e.key,e.val);if(void 0===t)return;let n=new u.ExtendedURI(t);if("#"!==t[0])if(this.isFile(n)){let e=n.toString();n.is("absolute")||(e=this.baseUri.toString()?(0,o.join)((0,o.dirname)(this.baseUri.toString()),(0,o.stripRoot)(e)):""),e&&(n=new l((0,o.toFSPath)(e)).fragment(n.fragment()))}else(n.scheme().includes("http")||""===n.scheme()&&this.baseUri.scheme().includes("http"))&&""!==this.baseUri.authority()&&""===n.authority()&&(n=n.absoluteTo(this.baseUri));return String(n).length>0&&this.isFile(this.baseUri)&&this.isFile(n)&&this.baseUri.path()===n.path()&&(n=new u.ExtendedURI(`#${n.fragment()}`)),this.transformRef?this.transformRef(Object.assign(Object.assign({},e),{ref:n,uri:this.baseUri}),this.ctx):n},this.atMaxUriDepth=()=>this.uriStack.length>=100,this.lookupUri=e=>r.__awaiter(this,void 0,void 0,(function*(){const{ref:t}=e;let n=t.scheme();!this.resolvers[n]&&this.isFile(t)&&(n="file");const r=this.resolvers[n];if(!r)throw new Error(`No resolver defined for scheme '${t.scheme()||"file"}' in ref ${t.toString()}`);let i=yield r.resolve(t,this.ctx);if(this.parseResolveResult)try{i=(yield this.parseResolveResult({uriResult:i,result:i,targetAuthority:t,parentAuthority:this.baseUri,parentPath:e.parentPath,fragment:e.fragment})).result}catch(e){throw new Error(`Could not parse remote reference response for '${t.toString()}' - ${String(e)}`)}return new g(i,this.graph,{depth:this.depth+1,baseUri:t.toString(),root:t,uriStack:this.uriStack,uriCache:this.uriCache,resolvers:this.resolvers,transformRef:this.transformRef,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult,dereferenceRemote:this.dereferenceRemote,dereferenceInline:this.dereferenceInline,ctx:this.ctx})})),this.lookupAndResolveUri=e=>r.__awaiter(this,void 0,void 0,(function*(){const{val:t,ref:n,resolvingPointer:r,parentPointer:o,pointerStack:s}=e,a=e.parentPath?e.parentPath.slice():[],c=this.computeUriCacheKey(n),l={uri:n,pointerStack:s,targetPath:r===o?[]:a};if(this.uriStack.includes(c))return l.resolved={result:t,graph:this.graph,refMap:{},errors:[],runner:this},l;{let e;const r=this.baseUri.toString(),o=r&&0!==this.depth?r:null;try{if(this.atMaxUriDepth())throw new Error(`Max uri depth (${this.uriStack.length}) reached. Halting, this is probably a circular loop.`);e=yield this.lookupUri({ref:n.clone().fragment(""),fragment:n.fragment(),cacheKey:c,parentPath:a}),o&&(e.uriStack=e.uriStack.concat(o))}catch(e){l.error={code:"RESOLVE_URI",message:String(e),uri:n,uriStack:o?this.uriStack.concat(o):this.uriStack,pointerStack:s,path:a}}if(e&&(l.resolved=yield e.resolve({jsonPointer:h.uriToJSONPointer(n),parentPath:a}),l.resolved.errors.length))for(const e of l.resolved.errors)if("POINTER_MISSING"===e.code&&e.path.join("/")===n.fragment().slice(1)){const r=n.fragment?(0,i.trimStart)(e.path,(0,i.trimStart)(n.fragment(),"/").split("/")):e.path;r&&r.length?p(l.resolved.result,r,t):l.resolved.result&&(l.resolved.result=t)}}return l})),this.id=y+=1,this.depth=a.depth||0,this._source=e,this.resolvers=a.resolvers||{};const c=a.baseUri||"";let f=new l(c||"");this.isFile(f)&&(f=new l((0,o.toFSPath)(c))),this.baseUri=f,this.uriStack=a.uriStack||[],this.uriCache=a.uriCache||new d.Cache,this.root=a.root&&a.root.toString()||this.baseUri.toString()||"root",this.graph=n,this.graph.hasNode(this.root)||this.graph.addNode(this.root,{refMap:{},data:this._source}),this.baseUri&&0===this.depth&&this.uriCache.set(this.computeUriCacheKey(this.baseUri),this),this.getRef=a.getRef||t.defaultGetRef,this.transformRef=a.transformRef,this.depth?this.dereferenceInline=!0:this.dereferenceInline=void 0===a.dereferenceInline||a.dereferenceInline,this.dereferenceRemote=void 0===a.dereferenceRemote||a.dereferenceRemote,this.parseResolveResult=a.parseResolveResult,this.transformDereferenceResult=a.transformDereferenceResult,this.ctx=a.ctx,this.lookupUri=m(this.lookupUri,{serializer:this._cacheKeySerializer,cache:{create:()=>this.uriCache}})}get source(){return this._source}resolve(e){return r.__awaiter(this,void 0,void 0,(function*(){const t={result:this.source,graph:this.graph,refMap:{},errors:[],runner:this};let n;const r=e&&e.jsonPointer&&e.jsonPointer.trim();if(r&&"#"!==r&&"#/"!==r){try{n=(0,i.pointerToPath)(r)}catch(e){return t.errors.push({code:"PARSE_POINTER",message:`'${r}' JSON pointer is invalid`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:[]}),t}t.result=c(t.result,n)}if(void 0===t.result)return t.errors.push({code:"POINTER_MISSING",message:`'${r}' does not exist @ '${this.baseUri.toString()}'`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:n||[]}),t;const o=new f.ResolveCrawler(this,r,t);o.computeGraph(t.result,n,r||"");let s=[];if(o.resolvers.length&&(s=yield Promise.all(o.resolvers)),s.length)for(const e of s){let r=e.targetPath;r.length||(r=n||[]),t.refMap[String(this.baseUri.clone().fragment((0,i.pathToPointer)(r)))]=String(e.uri),this._setGraphNodeEdge(String(this.root),(0,i.pathToPointer)(r),String(e.uri)),e.error&&t.errors.push(e.error),e.resolved&&(e.resolved.errors&&(t.errors=t.errors.concat(e.resolved.errors)),void 0!==e.resolved.result&&(this._source=(0,a.default)(this._source,(t=>{if(e.resolved){if(!r.length)return e.resolved.result;p(t,r,e.resolved.result),this._setGraphNodeData(String(e.uri),e.resolved.result)}}))))}if("object"==typeof this._source?(this.dereferenceInline&&(this._source=(0,a.default)(this._source,(e=>{let n=[];try{n=o.pointerGraph.overallOrder();for(const r of n){const n=o.pointerGraph.dependantsOf(r);if(!n.length)continue;const s=(0,i.pointerToPath)(r),l=0===s.length?(0,a.original)(e):c(e,s);for(const a of n){let n;const c=(0,i.pointerToPath)(a),u=o.pointerStemGraph.dependenciesOf(r);for(const e of u)if((0,i.startsWith)(c,(0,i.pointerToPath)(e))){n=!0;break}n||(t.refMap[(0,i.pathToPointer)(c)]=(0,i.pathToPointer)(s),this._setGraphNodeEdge(this.root,(0,i.pathToPointer)(c),(0,i.pathToPointer)(s)),void 0!==l?(p(e,c,l),this._setGraphNodeData((0,i.pathToPointer)(s),l)):t.errors.push({code:"POINTER_MISSING",message:`'${r}' does not exist`,path:c,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[]}))}}}catch(e){}}))),t.result=n?c(this._source,n):this._source):t.result=this._source,this.transformDereferenceResult){const i=new l(r||"");try{const{result:n,error:r}=yield this.transformDereferenceResult({source:this.source,result:t.result,targetAuthority:i,parentAuthority:this.baseUri,parentPath:e&&e.parentPath||[],fragment:i.fragment()});if(t.result=n,r)throw new Error(`Could not transform dereferenced result for '${i.toString()}' - ${String(r)}`)}catch(e){t.errors.push({code:"TRANSFORM_DEREFERENCED",message:`Error: Could not transform dereferenced result for '${this.baseUri.toString()}${""!==i.fragment()?`#${i.fragment()}`:""}' - ${String(e)}`,uri:i,uriStack:this.uriStack,pointerStack:[],path:n})}}return this._setGraphNodeData(this.root,this._source),t}))}_cacheKeySerializer(e){return e&&"object"==typeof e&&e.cacheKey?e.cacheKey:JSON.stringify(arguments)}computeUriCacheKey(e){return e.clone().fragment("").toString()}isFile(e){const t=e.scheme();if("file"===t)return!0;if(t){if(!this.resolvers[t])return!0}else{if("/"===e.toString().charAt(0))return!0;if(this.baseUri){const e=this.baseUri.scheme();return Boolean(!e||"file"===e||!this.resolvers[e])}}return!1}_setGraphNodeData(e,t){if(!this.graph.hasNode(e))return;const n=this.graph.getNodeData(e)||{};n.data=t,this.graph.setNodeData(e,n)}_setGraphNodeEdge(e,t,n){if(!this.graph.hasNode(e))return;const r=this.graph.getNodeData(e)||{};r.refMap=r.refMap||{},r.refMap[t]=n,this.graph.setNodeData(e,r)}}t.ResolveRunner=g},16283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedURI=void 0;const r=n(54998);t.ExtendedURI=class extends r{constructor(e){super(e),this._value=e.trim()}get length(){return this._value.length}}},32234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uriIsJSONPointer=t.uriToJSONPointer=t.addToJSONPointer=void 0;const n=(e,t,n)=>{const r=e.toString();let i="",o=r,s=0,a=o.indexOf(t);for(;a>-1;)i+=r.substring(s,s+a)+n,o=o.substring(a+t.length,o.length),s+=a+t.length,a=o.indexOf(t);return o.length>0&&(i+=r.substring(r.length-o.length,r.length)),i};t.addToJSONPointer=(e,t)=>{return`${e}/${r=t,n(n(r,"~","~0"),"/","~1")}`;var r},t.uriToJSONPointer=e=>"length"in e&&0===e.length?"":""!==e.fragment()?`#${e.fragment()}`:""===e.href()?"#":"",t.uriIsJSONPointer=e=>(!("length"in e)||e.length>0)&&""===e.path()},4658:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BUNDLE_ROOT:()=>Z,ERRORS_ROOT:()=>Y,KEYS:()=>Ee,bundleTarget:()=>X,decodePointer:()=>F,decodePointerFragment:()=>te,decodePointerUriFragment:()=>F,decycle:()=>ne,encodePointer:()=>re,encodePointerFragment:()=>A,encodePointerUriFragment:()=>R,encodeUriPointer:()=>N,extractPointerFromRef:()=>ie,extractSourceFromRef:()=>H,getFirstPrimitiveProperty:()=>oe,getJsonPathForPosition:()=>se,getLastPathSegment:()=>ae,getLocationForJsonPath:()=>ce,hasRef:()=>O,isExternalRef:()=>K,isLocalRef:()=>T,isPlainObject:()=>x,parseTree:()=>le,parseWithPointers:()=>pe,pathToPointer:()=>M,pointerToPath:()=>U,remapRefs:()=>B,renameObjectKey:()=>he,reparentBundleTarget:()=>ye,resolveExternalRef:()=>ve,resolveExternalRefWithLocation:()=>be,resolveInlineRef:()=>J,resolveInlineRefWithLocation:()=>Q,safeParse:()=>_e,safeStringify:()=>we,startsWith:()=>je,stringify:()=>xe,toPropertyPath:()=>Se,trapAccess:()=>Te,traverse:()=>z,trimStart:()=>ke});var r,i=n(96486),o=n(75966);function s(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",o=0,s=16,l=0,u=0,d=0,f=0,h=0;function m(t,n){for(var i=0,o=0;i=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else{if(!(s>=97&&s<=102))break;o=16*o+s-97+10}r++,i++}return i=n)return o=n,s=17;var t=e.charCodeAt(r);if(a(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(a(t));return s=15}if(c(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),l++,d=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),h=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(c(o)){t+=e.substring(i,r),h=2;break}h=6}r++}else{if(t+=e.substring(i,r),++r>=n){h=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=m(4,!0);s>=0?t+=String.fromCharCode(s):h=4;break;default:h=5}i=r}}return t}(),s=10;case 47:var y=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:y,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return o-f},getTokenError:function(){return h}}}function a(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function c(e){return 10===e||13===e||8232===e||8233===e}function p(e){return e>=48&&e<=57}!function(e){e.DEFAULT={allowTrailingComma:!1}}(r||(r={}));var l=s,u=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t0)for(var r=i.getToken();17!==r;){if(-1!==t.indexOf(r)){b();break}if(-1!==n.indexOf(r))break;r=b()}}function $(e){var t=i.getTokenValue();return e?f(t):p(t),b(),!0}return b(),17===i.getToken()?!!n.allowEmptyContent||(_(4,[],[]),!1):function e(){switch(i.getToken()){case 3:return function(){u(),b();for(var t=!1;4!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(t||_(4,[],[]),h(","),b(),4===i.getToken()&&v)break}else t&&_(6,[],[]);e()||_(4,[],[4,5]),t=!0}return d(),4!==i.getToken()?_(8,[4],[]):b(),!0}();case 1:return function(){c(),b();for(var t=!1;2!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(t||_(4,[],[]),h(","),b(),2===i.getToken()&&v)break}else t&&_(6,[],[]);(10!==i.getToken()?(_(3,[],[2,5]),0):($(!1),6===i.getToken()?(h(":"),b(),e()||_(4,[],[2,5])):_(5,[],[2,5]),1))||_(4,[],[2,5]),t=!0}return l(),2!==i.getToken()?_(7,[2],[]):b(),!0}();case 10:return $(!0);default:return function(){switch(i.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(i.getTokenValue()))&&(_(2),e=0)}catch(e){_(2)}f(e);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return b(),!0}()}}()?(17!==i.getToken()&&_(9,[],[]),!0):(_(4,[],[]),!1)};function h(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}var m=n(34155);const y=`__object_order_${Math.floor(Date.now()/36e5)}__`,g=Symbol.for(y),v=(String(g),{defineProperty:(e,t,n)=>(!(t in e)&&g in e?e[g].push(t):"value"in n&&t===g&&-1===n.value.lastIndexOf(g)&&n.value.push(g),Reflect.defineProperty(e,t,n)),deleteProperty(e,t){const n=t in e,r=Reflect.deleteProperty(e,t);if(r&&n&&g in e){const n=e[g].indexOf(t);-1!==n&&e[g].splice(n,1)}return r},ownKeys:e=>g in e?e[g]:Reflect.ownKeys(e),set(e,t,n){const r=t in e,i=Reflect.set(e,t,n);return i&&!r&&g in e&&e[g].push(t),i}});function b(e,t=Reflect.ownKeys(e)){void 0!==m&&_(m)&&_(m.env);const n=new Proxy(e,v);return function(e,t){g in e?(e[g].length=0,e[g].push(...t)):Reflect.defineProperty(e,g,{configurable:!0,value:t})}(n,t),n}function _(e){return null!==e&&"object"==typeof e}var $=n(4957),w=n(87668),j=n.n(w);function x(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype||"function"==typeof e.constructor&&Function.toString.call(Object)===Function.toString.call(e.constructor)}function S(e,t,n){if(!x(e)&&!Array.isArray(e)||!(t in e))throw new ReferenceError(`Could not resolve '${n}'`)}function P(e){if("string"!=typeof e.$ref)throw new TypeError("$ref should be a string")}const E=e=>x(e)&&"$ref"in e,O=e=>E(e)&&"string"==typeof e.$ref,T=e=>e.length>0&&("#"===e||/^#\S*$/.test(e)),k=(e,t,n)=>{const r=e.toString();let i="",o=r,s=0,a=o.indexOf(t);for(;a>-1;)i+=r.substring(s,s+a)+n,o=o.substring(a+t.length,o.length),s+=a+t.length,a=o.indexOf(t);return o.length>0&&(i+=r.substring(r.length-o.length,r.length)),i},A=e=>"number"==typeof e?e:k(k(e,"~","~0"),"/","~1"),I=/[^a-zA–Z0–9_.!~*'()\/\-\u{D800}-\u{DFFF}]/gu;function N(e){return e.replace(I,encodeURIComponent)}const R=e=>{const t=A(e);return"number"==typeof t?t:N(t)},M=e=>C(e),C=e=>{if(e&&"object"!=typeof e)throw new TypeError("Invalid type: path must be an array of segments.");return 0===e.length?"#":`#/${e.map(R).join("/")}`};function D(e){try{return decodeURIComponent(e)}catch(t){return e}}const q=/%[0-9a-f]+/gi,F=e=>{let t;try{t=decodeURIComponent(e)}catch(n){t=e.replace(q,D)}return k(k(t,"~1","/"),"~0","~")},U=e=>V(e),V=e=>{if("string"!=typeof e)throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(0===e.length||"#"!==e[0])throw new URIError("Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.");if(1===e.length)return[];if("/"!==e[1])throw new URIError("Invalid JSON Pointer syntax.");return(e=>{const t=e.length,n=[];let r=-1;for(;++r{const r={value:e,path:n};t.onEnter&&t.onEnter(r);for(const r of Object.keys(e)){const i=e[r];t.onProperty&&t.onProperty({parent:e,parentPath:n,property:r,propertyValue:i}),"object"==typeof i&&null!==i&&L(i,t,n.concat(r))}t.onLeave&&t.onLeave(r)},z=(e,t)=>{"object"==typeof e&&null!==e&&L(e,"function"==typeof t?{onProperty:t}:t,[])};function B(e,t,n){z(e,{onProperty({property:e,propertyValue:r,parent:i}){"$ref"===e&&"string"==typeof r&&r.startsWith(t)&&(i.$ref=`${n}${r.slice(t.length)}`)}})}const K=e=>e.length>0&&"#"!==e[0],H=e=>{if("string"!=typeof e||0===e.length||!K(e))return null;const t=e.indexOf("#");return-1===t?e:e.slice(0,t)};function G(e,t){return x(t)&&x(e)&&("summary"in e||"description"in e)?Object.assign(Object.assign(Object.assign({},t),"description"in e?{description:e.description}:null),"summary"in e?{summary:e.summary}:null):t}function*W(e,t,n){E(e.value)&&(P(e.value),yield[-1,e.value]);for(const[r,i]of t.entries())S(e.value,i,n),e.value=e.value[i],E(e.value)&&(P(e.value),yield[r,e.value])}function J(e,t){return Q(e,t).value}function Q(e,t){return function e(t,n,r,i){if(null!==H(n))throw new ReferenceError("Cannot resolve external references");const o=U(n);let s=[...o];"#"===n&&E(t)&&(P(t),o.unshift(...U(t.$ref)));const a={value:t};for(const[c,p]of W(a,o,n)){if(r.includes(p))return{source:null,location:null!=i?i:s,value:r[r.length-1]};r.push(p);const n=e(t,p.$ref,r,s);a.value=n.value,(s=n.location).push(...o.slice(c+1))}return{source:null,location:s,value:r.length>0?G(r[r.length-1],a.value):a.value}}(e,t,[])}const Z="#/__bundled__",Y="#/__errors__",X=({document:e,path:t,bundleRoot:n="#/__bundled__",errorsRoot:r="#/__errors__",cloneDocument:o=!0,keyProvider:s},a)=>{if(t===n||t===r)throw new Error("Roots do not make any sense");const c=o?(0,i.cloneDeep)(e):e;return ee(c,U(n),U(r),t,s)(t,{[t]:!0},a)},ee=(e,t,n,r,o)=>{const s=new Set,a=(c,p,l,u={},d={},f={})=>{const h=U(c),m=(0,i.get)(e,h);z(l||m,{onEnter:({value:n})=>{if(O(n)&&T(n.$ref)){const l=n.$ref;if(f[l])return;if(l===c&&(u[l]="#"),u[l])return void(n.$ref=u[l]);let h,m,y,g,v;try{let n;h=U(l),o&&(n=o({document:e,path:h})),n||(n=(({document:e,path:t})=>0===t.length?"root":Array.isArray((0,i.get)(e,t.slice(0,-1)))?`${t[t.length-2]}_${t[t.length-1]}`:String(t[t.length-1]))({document:e,path:h})),y=n;let r=1;for(;s.has(y);)if(y=`${n}_${++r}`,r>20)throw new Error(`Keys ${n}_2 through ${n}_20 already taken.`);s.add(y),m=[...t,y],g=M(m)}catch(e){f[l]=e instanceof Error?e.message:String(e)}if(!h||!m||!g)return;if("object"==typeof e&&null!==e&&!(v=(0,i.get)(e,h)))try{v=J(Object(e),l)}catch(e){}void 0!==v&&(u[l]=g,n.$ref=g,(0,i.has)(d,m)||(Array.isArray(v)?(0,i.set)(d,m,new Array(v.length).fill(null)):"object"==typeof v&&(0,i.setWith)(d,m,{},Object),(0,i.set)(d,m,v),"#"===l?function(e,t,n,r){const o=n.map((e=>`[${JSON.stringify(e)}]`)).join(""),s=JSON.parse(JSON.stringify((0,i.omit)(Object(e),o))),a={};(0,i.set)(t,r,s),(0,i.set)(s,n,a),B(s,"#",M(r)),a.$ref="#"}(e,d,U(r),m):p[l]||(p[l]=!0,a(c,p,v,u,d,f),p[l]=!1)))}}});const y=(0,i.get)(d,t);return y&&Object.keys(y).length&&(0,i.set)(m,t,y),(Object.keys(f).length||(0,i.has)(e,n))&&(0,i.set)(m,n,(0,i.has)(e,n)?(0,i.get)(e,n):f),m};return a},te=e=>k(k(e,"~1","/"),"~0","~"),ne=(e,t)=>{const n=new WeakMap;return function e(r,i){let o;if(t&&(r=t(r)),x(r)||Array.isArray(r)){const t=n.get(r);return t?{$ref:t}:(n.set(r,M(i)),Array.isArray(r)?o=r.map(((t,n)=>e(t,[...i,String(n)]))):(o={},Object.keys(r).forEach((t=>{o[t]=e(r[t],[...i,t])}))),n.delete(r),o)}return r}(e,[])},re=e=>k(k(e,"~","~0"),"//","/~1"),ie=e=>{if("string"!=typeof e||0===e.length)return null;const t=e.indexOf("#");return-1===t?null:e.slice(t)},oe=e=>{const t=l(e,!0);if(t.scan(),1!==t.getToken())return;if(t.scan(),2===t.getToken())return;if(10!==t.getToken())throw new SyntaxError("Unexpected character");const n=t.getTokenValue();if(t.scan(),6!==t.getToken())throw new SyntaxError("Colon expected");switch(t.scan(),t.getToken()){case 10:return[n,t.getTokenValue()];case 11:return[n,Number(t.getTokenValue())];case 8:return[n,!0];case 9:return[n,!1];case 7:return[n,null];case 16:throw new SyntaxError("Unexpected character");case 17:throw new SyntaxError("Unexpected end of file");default:return}},se=({lineMap:e,ast:t},n)=>{const r=e[n.line],i=e[n.line+1];if(void 0===r)return;const o=u(t,void 0===i?r+n.character:Math.min(i,r+n.character),!0);if(void 0===o)return;const s=d(o);return 0!==s.length?s:void 0};function ae(e){return te(e.split("/").pop()||"")}const ce=({ast:e},t,n=!1)=>{const r=function(e,t,n){e:for(const r of t){const t=Number.isInteger(Number(r))?Number(r):r;if("string"==typeof t||"number"==typeof t&&"array"!==e.type){if("object"!==e.type||!Array.isArray(e.children))return n?e:void 0;for(const n of e.children)if(Array.isArray(n.children)&&n.children[0].value===String(t)&&2===n.children.length){e=n.children[1];continue e}return n?e:void 0}if("array"!==e.type||t<0||!Array.isArray(e.children)||t>=e.children.length)return n?e:void 0;e=e.children[t]}return e}(e,t,n);if(void 0!==r&&void 0!==r.range)return{range:r.range}},pe=(e,t={disallowComments:!0})=>{const n=[],{ast:r,data:i,lineMap:o}=le(e,n,t);return{data:i,diagnostics:n,ast:r,lineMap:o}};function le(e,t=[],n){const r=de(e);let i={type:"array",offset:-1,length:-1,children:[],parent:void 0},o=null,s=[];const a=new WeakMap,c=[];function p(e){"property"===i.type&&(i.length=e-i.offset,i=i.parent)}function l(e,t,n){return{start:{line:e,character:t},end:{line:e,character:t+n}}}function u(e){return i.children.push(e),e}function d(e){Array.isArray(s)?s.push(e):null!==o&&(s[o]=e)}function m(e){d(e),c.push(s),s=e,o=null}function y(){s=c.pop()}f(e,{onObjectBegin:(e,t,r,o)=>{i=u({type:"object",offset:e,length:-1,parent:i,children:[],range:l(r,o,t)}),!1===n.ignoreDuplicateKeys&&a.set(i,[]),m(function(e){return e?b({}):{}}(!0===n.preserveKeyOrder))},onObjectProperty:(e,r,c,p,d)=>{if((i=u({type:"property",offset:r,length:-1,parent:i,children:[]})).children.push({type:"string",value:e,offset:r,length:c,parent:i}),!1===n.ignoreDuplicateKeys){const n=a.get(i.parent);n&&(0!==n.length&&n.includes(e)?t.push({range:l(p,d,c),message:"DuplicateKey",severity:$.H_.Error,path:fe(i),code:20}):n.push(e))}!0===n.preserveKeyOrder&&function(e,t){if(!(t in e))return;const n=e[g],r=n.indexOf(t);-1!==r&&(n.splice(r,1),n.push(t))}(s,e),o=e},onObjectEnd:(e,t,r,o)=>{!1===n.ignoreDuplicateKeys&&a.delete(i),i.length=e+t-i.offset,i.range&&(i.range.end.line=r,i.range.end.character=o+t),i=i.parent,p(e+t),y()},onArrayBegin:(e,t,n,r)=>{i=u({type:"array",offset:e,length:-1,parent:i,children:[],range:l(n,r,t)}),m([])},onArrayEnd:(e,t,n,r)=>{i.length=e+t-i.offset,i.range&&(i.range.end.line=n,i.range.end.character=r+t),i=i.parent,p(e+t),y()},onLiteralValue:(e,t,n,r,o)=>{u({type:ue(e),offset:t,length:n,parent:i,value:e,range:l(r,o,n)}),p(t+n),d(e)},onSeparator:(e,t)=>{"property"===i.type&&(":"===e?i.colonOffset=t:","===e&&p(t))},onError:(e,n,r,i,o)=>{t.push({range:l(i,o,r),message:h(e),severity:$.H_.Error,code:e})}},n);const v=i.children[0];return v&&delete v.parent,{ast:v,data:s[0],lineMap:r}}function ue(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}const de=e=>{const t=[0];let n=0;for(;n{if(!e||!Object.hasOwnProperty.call(e,t)||t===n)return e;const r={};for(const[i,o]of Object.entries(e))i===t?r[n]=o:i in r||(r[i]=o);return r};function me(e){return x(e)||Array.isArray(e)}function ye(e,t,n){if(n.length<=1||t.length<=1)throw Error("Source/target path must not be empty and point at root");if(0===t.indexOf(n))throw Error("Target path cannot be contained within source");const r=U(t);let i=e;for(const e of r){if(!me(i))return;i=i[e]}if(!me(i))return;const o=U(n);let s=e;for(const[e,t]of o.entries()){if(!me(s)||t in s)return;const n=e===o.length-1?i:{};s[t]=n,s=n}delete e[r[0]],function e(t,n,r){for(const i of Object.keys(t)){const o=t[i];if("$ref"!==i)me(o)&&e(o,n,r);else{if("string"!=typeof o||!T(o))continue;0===o.indexOf(n)&&(t[i]=o.replace(n,r))}}}(e,t,n)}async function ge(e,t,n,r,i){let s=function(e,t){const n=H(t);return null===n?e:(0,o.isAbsolute)(n)?n:(0,o.join)((0,o.dirname)(e),n)}(t,n);const a=ie(n)||"#",c=await e[s],p=U(a);let l=[...p];const u={value:c};for(const[n,o]of W(u,p,a)){if(r.includes(o))return{source:t,location:null!=i?i:l,value:r[r.length-1]};r.push(o);const a=await ge(e,s,o.$ref,r,l);({source:s,location:l}=a),u.value=a.value,l.push(...p.slice(n+1))}return{source:s,location:l,value:r.length>0?G(r[r.length-1],u.value):u.value}}async function ve(e,t,n){return(await be(e,t,n)).value}function be(e,t,n){return ge(e,t,n,[])}const _e=(e,t)=>{if("string"!=typeof e)return e;try{const n=$e(e);return"string"==typeof n?n:JSON.parse(e,t)}catch(e){return}},$e=e=>{const t=Number(e);return Number.isFinite(t)?String(t)===e?t:e:NaN},we=(e,t,n)=>{if("string"==typeof e)return e;try{return JSON.stringify(e,t,n)}catch(r){return j()(e,t,n)}},je=(e,t)=>{if(e instanceof Array){if(t instanceof Array){if(t.length>e.length)return!1;for(const n in t){if(!t.hasOwnProperty(n))continue;const r=parseInt(e[n]),i=parseInt(t[n]);if(isNaN(r)&&isNaN(i)){if(e[n]!==t[n])return!1}else if(r!==i)return!1}}}else{if("string"!=typeof e)return!1;if("string"==typeof t)return e.startsWith(t)}return!0},xe=(e,t,n)=>{const r=we(e,t,n);if(void 0===r)throw new Error("The value could not be stringified");return r};function Se(e){return e.replace(/^(\/|#\/)/,"").split("/").map(te).map(Pe).join(".")}function Pe(e){return e.includes(".")?`["${e.replace(/"/g,'\\"')}"]`:e}const Ee=Symbol.for(y),Oe={ownKeys:e=>Ee in e?e[Ee]:Reflect.ownKeys(e)},Te=e=>new Proxy(e,Oe);function ke(e,t){if("string"==typeof e&&"string"==typeof t)return(0,i.trimStart)(e,t);if(!(e&&Array.isArray(e)&&e.length&&t&&Array.isArray(t)&&t.length))return e;let n=0;for(const r in e)if(e.hasOwnProperty(r)){if(e[r]!==t[r])break;n++}return e.slice(n)}},75966:(e,t,n)=>{"use strict";function r(e){let t="";return e.absolute&&("file"===e.protocol?(e.drive&&(t+=e.drive),t+="/"):(t+=e.protocol+"://",e.origin&&(t+=e.origin+"/"))),""===(t+=e.path.join("/"))&&(t="."),t}function i(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}n.r(t),n.d(t,{basename:()=>l,deserializeSrn:()=>$,dirname:()=>u,extname:()=>d,format:()=>r,isAbsolute:()=>f,isURL:()=>h,join:()=>m,normalize:()=>a,parse:()=>s,relative:()=>y,resolve:()=>g,sep:()=>v,serializeSrn:()=>w,startsWithWindowsDrive:()=>b,stripRoot:()=>_,toFSPath:()=>a}),function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(i,Error),i.buildMessage=function(e,t){var n={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,n="";for(t=0;t0){for(t=1,r=1;tW&&(W=H,J=[]),J.push(e))}function te(){var t;return(t=function(){var e,t,n,r,i;return e=H,(t=ne())!==a&&(n=re())!==a&&(r=oe())!==a&&(i=se())!==a?e=t=l(t,n,r,i):(H=e,e=a),e===a&&(e=H,(t=ne())!==a&&(n=re())!==a&&(r=function(){var e;return(e=v)!==a&&(e=N()),e}())!==a?e=t=u(t,n,r):(H=e,e=a)),e}())===a&&(t=function(){var t,n,r,i;return t=H,(n=function(){var t;return e.substr(H,7).toLowerCase()===$?(t=e.substr(H,7),H+=7):(t=a,ee(w)),t===a&&(e.substr(H,5).toLowerCase()===j?(t=e.substr(H,5),H+=5):(t=a,ee(x))),t!==a&&(t=S()),t}())!==a&&(r=ie())!==a&&(i=se())!==a?t=n=_(n,r,i):(H=t,t=a),t}())===a&&(t=function(){var e,t,n;return e=H,(t=ie())!==a&&(n=se())!==a?e=t=P(t,n):(H=e,e=a),e}())===a&&(t=function(){var t,n;return t=H,function(){var t;return(t=function(){var t,n,r;return t=H,46===e.charCodeAt(H)?(n=q,H++):(n=a,ee(F)),n!==a&&(r=ce())!==a?t=n=[n,r]:(H=t,t=a),t}())===a&&(t=v),t}()!==a&&(n=se())!==a?t=R(n):(H=t,t=a),t}()),t}function ne(){var t,n;return e.substr(H,7).toLowerCase()===d?(n=e.substr(H,7),H+=7):(n=a,ee(f)),n!==a&&(n=h()),(t=n)===a&&(t=function(){var t;return e.substr(H,8).toLowerCase()===m?(t=e.substr(H,8),H+=8):(t=a,ee(y)),t!==a&&(t=g()),t}()),t}function re(){var t,n,r;if(t=H,n=[],(r=pe())!==a)for(;r!==a;)n.push(r),r=pe();else n=a;return(t=n!==a?e.substring(t,H):n)===a&&(t=H,(n=v)!==a&&(n=b()),t=n),t}function ie(){var t;return(t=function(){var t,n,r,i;return t=H,(n=ce())===a&&(n=null),n!==a?(E.test(e.charAt(H))?(r=e.charAt(H),H++):(r=a,ee(O)),r!==a?(58===e.charCodeAt(H)?(i=T,H++):(i=a,ee(k)),i!==a&&ce()!==a?t=n=A(r):(H=t,t=a)):(H=t,t=a)):(H=t,t=a),t}())===a&&(t=oe()),t}function oe(){var e;return(e=ce())!==a&&(e=I()),e}function se(){var e;return(e=function e(){var t,n,r;return t=H,(n=ae())!==a&&ce()!==a&&(r=e())!==a?t=n=C(n,r):(H=t,t=a),t===a&&(t=H,(n=ae())!==a&&(n=D(n)),t=n),t}())!==a&&(e=M(e)),e}function ae(){var t,n,r;if(t=H,n=[],(r=pe())!==a)for(;r!==a;)n.push(r),r=pe();else n=a;return(t=n!==a?e.substring(t,H):n)===a&&(t=v),t}function ce(){var t;return 47===e.charCodeAt(H)?(t=U,H++):(t=a,ee(V)),t===a&&(92===e.charCodeAt(H)?(t=L,H++):(t=a,ee(z))),t}function pe(){var t;return B.test(e.charAt(H))?(t=e.charAt(H),H++):(t=a,ee(K)),t}if((n=p())!==a&&H===e.length)return n;throw n!==a&&H""!==e&&"."!==e));const n=[];for(const r of t)".."===r&&n.length&&".."!==n[n.length-1]?n.pop():".."===r&&e.absolute||n.push(r);return e.path=n,e}function p(e){let t=e.lastIndexOf(".");".."===e&&(t=-1),"."===e&&(t=-1);let n=e,r="";return t>0&&(n=e.slice(0,t),r=e.slice(t)),{name:n,ext:r}}const l=(e,t)=>{const n=c(s(e)).path.pop();if(!n)return"";const{name:r,ext:i}=p(n);return!0===t||t===i?r:`${r}${i}`},u=e=>{const t=c(s(e));return t.path.pop(),r(c(t))},d=e=>{const t=c(s(e)).path.pop();if(!t)return"";const{ext:n}=p(t);return n};function f(e){return s(e).absolute}function h(e){const t=s(e);return"http"===t.protocol||"https"===t.protocol}const m=(...e)=>{if(0===e.length)return".";const t=e.map(s),n=Object.assign({},t[0]);for(let r=1;rnull!==s(e).drive,_=e=>s(e).path.filter(Boolean).join("/");function $(e){const[t,n,r,...i]=e.split("/"),o=i.length?`/${i.join("/")}`:void 0;let s,a;return o&&(s=i.find((e=>e.includes("."))))&&(a=p(s).ext),{shortcode:t,orgSlug:n,projectSlug:r,uri:o,file:s,ext:a}}function w({shortcode:e,orgSlug:t,projectSlug:n,uri:r=""}){return[e,t,n,r.replace(/^\//,"")].filter(Boolean).join("/")}},59049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67184),i=n(16008),o=n(20987),s=n(32445),a=n(60512),c=n(18090),p="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:n,data:m,schema:y,schemaValue:g,it:v}=t;if(!1===v.createErrors)return;const b=y,_=i.strConcat(c.default.instancePath,v.errorPath);function $(e,t){return i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,r._`${e}.instancePath === ${_}`,r._`${e}.keyword in ${t}`,r._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function w(e,t){const r=[];for(const n in e){const e=t[n];d.test(e)&&r.push([n,x(e)])}return n.object(...r)}function j(e){return d.test(e)?new o._Code(o.safeStringify(e).replace(f,((e,t)=>`" + JSON.stringify(${s.getData(t,v)}) + "`)).replace(h,"")):r.stringify(e)}function x(e){return r._`function(){return ${j(e)}}`}n.if(r._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,s]=function(e){let t,n;for(const r in e){if("properties"===r||"items"===r)continue;const i=e[r];if("object"==typeof i){t||(t={});const e=t[r]={};for(const t in i)e[t]=[]}else n||(n={}),n[r]=[]}return[t,n]}(b);s&&function(i){const o=n.const("emErrors",r.stringify(i)),s=n.const("templates",w(i,y));n.forOf("err",c.default.vErrors,(e=>n.if($(e,o),(()=>n.code(r._`${o}[${e}.keyword].push(${e})`).assign(r._`${e}.${l}`,!0)))));const{singleError:p}=e;if(p){const e=n.let("message",r._`""`),i=n.let("paramsErrors",r._`[]`);u((t=>{n.if(e,(()=>n.code(r._`${e} += ${"string"==typeof p?p:";"}`))),n.code(r._`${e} += ${d(t)}`),n.assign(i,r._`${i}.concat(${o}[${t}])`)})),a.reportError(t,{message:e,params:r._`{errors: ${i}}`})}else u((e=>a.reportError(t,{message:d(e),params:r._`{errors: ${o}[${e}]}`})));function u(e){n.forIn("key",o,(t=>n.if(r._`${o}[${t}].length`,(()=>e(t)))))}function d(e){return r._`${e} in ${s} ? ${s}[${e}]() : ${g}[${e}]`}}(s),o&&function(e){const i=n.const("emErrors",r.stringify(e)),o=[];for(const t in e)o.push([t,w(e[t],y[t])]);const s=n.const("templates",n.object(...o)),p=n.scopeValue("obj",{ref:u,code:r.stringify(u)}),d=n.let("emPropParams"),f=n.let("emParamsErrors");n.forOf("err",c.default.vErrors,(e=>n.if($(e,i),(()=>{n.assign(d,r._`${p}[${e}.keyword]`),n.assign(f,r._`${i}[${e}.keyword][${e}.params[${d}]]`),n.if(f,(()=>n.code(r._`${f}.push(${e})`).assign(r._`${e}.${l}`,!0)))})))),n.forIn("key",i,(e=>n.forIn("keyProp",r._`${i}[${e}]`,(o=>{n.assign(f,r._`${i}[${e}][${o}]`),n.if(r._`${f}.length`,(()=>{const i=n.const("tmpl",r._`${s}[${e}] && ${s}[${e}][${o}]`);a.reportError(t,{message:r._`${i} ? ${i}() : ${g}[${e}][${o}]`,params:r._`{errors: ${f}}`})}))}))))}(o),function(e){const{props:o,items:s}=e;if(!o&&!s)return;const u=r._`typeof ${m} == "object"`,d=r._`Array.isArray(${m})`,f=n.let("emErrors");let h,v;const b=n.let("templates");function $(e,t){n.assign(f,r.stringify(e)),n.assign(b,w(e,t))}o&&s?(h=n.let("emChildKwd"),n.if(u),n.if(d,(()=>{$(s,y.items),n.assign(h,r.str`items`)}),(()=>{$(o,y.properties),n.assign(h,r.str`properties`)})),v=r._`[${h}]`):s?(n.if(d),$(s,y.items),v=r._`.items`):o&&(n.if(i.and(u,i.not(d))),$(o,y.properties),v=r._`.properties`),n.forOf("err",c.default.vErrors,(e=>function(e,t,o){n.if(i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,r._`${e}.instancePath.indexOf(${_}) === 0`),(()=>{const i=n.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),s=n.const("emMatches",r._`${i}.exec(${e}.instancePath.slice(${_}.length))`),a=n.const("emChild",r._`${s} && ${s}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);n.if(r._`${a} !== undefined && ${a} in ${t}`,(()=>o(a)))}))}(e,f,(t=>n.code(r._`${f}[${t}].push(${e})`).assign(r._`${e}.${l}`,!0))))),n.forIn("key",f,(e=>n.if(r._`${f}[${e}].length`,(()=>{a.reportError(t,{message:r._`${e} in ${b} ? ${b}[${e}]() : ${g}${v}[${e}]`,params:r._`{errors: ${f}[${e}]}`}),n.assign(r._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,r._`${_} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),n.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;en.if(function(e){return i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,i.or(r._`${e}.instancePath === ${_}`,i.and(r._`${e}.instancePath.indexOf(${_}) === 0`,r._`${e}.instancePath[${_}.length] === "/"`)),r._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>n.code(r._`${o}.push(${e})`).assign(r._`${e}.${l}`,!0))))),n.if(r._`${o}.length`,(()=>a.reportError(t,{message:j(e),params:r._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=n.const("emErrs",r._`[]`);n.forOf("err",c.default.vErrors,(t=>n.if(r._`!${t}.${l}`,(()=>n.code(r._`${e}.push(${t})`))))),n.assign(c.default.vErrors,e).assign(c.default.errors,r._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},67184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(75931),i=n(61324),o=n(27461),s=n(74155),a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=n(32445);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=n(16008);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=n(51714);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=n(58366);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},20987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(20987),i=n(45453);var o=n(20987);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=n(45453);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=A(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class p extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=A(this.rhs,e,t),this}get names(){return k(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class l extends p{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=A(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(I(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>T(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class v extends y{}v.kind="else";class b extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(N(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=A(this.condition,e,t),this}get names(){const e=super.names;return k(e,this.condition),this.else&&T(e,this.else.names),e}}b.kind="if";class _ extends y{}_.kind="for";class $ extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=A(this.iteration,e,t),this}get names(){return T(super.names,this.iteration.names)}}class w extends _{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=k(super.names,this.from);return k(e,this.to)}}class j extends _{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=A(this.iterable,e,t),this}get names(){return T(super.names,this.iterable.names)}}class x extends y{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class P extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&T(e,this.catch.names),this.finally&&T(e,this.finally.names),e}}class E extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class O extends y{render(e){return"finally"+super.render(e)}}function T(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function k(e,t){return t instanceof r._CodeOrName?T(e,t.names):e}function A(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function I(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}O.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new c(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new p(e,t,n))}add(e,n){return this._leafNode(new l(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new $(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new w(o,s,t,n),(()=>r(s)))}forOf(e,t,n,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(s,r._`${e}[${t}]`),n(s)}))}return this._for(new j("of",o,s,t),(()=>n(s)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const s=this._scope.toName(e);return this._for(new j("in",o,s,t),(()=>n(s)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new P;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(E,O)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new x(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=N;const R=C(t.operators.AND);t.and=function(...e){return e.reduce(R)};const M=C(t.operators.OR);function C(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(M)}},45453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(20987);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=a;const c=r._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:r.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,r);const a=this._scope[i]||(this._scope[i]=[]),c=a.length;return a[c]=t.ref,r.setValue(t,{property:i,itemIndex:c}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,s={},a){let c=r.nil;for(const p in e){const l=e[p];if(!l)continue;const u=s[p]=s[p]||new Map;l.forEach((e=>{if(u.has(e))return;u.set(e,o.Started);let s=n(e);if(s){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=r._`${c}${n} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);c=r._`${c}${s}${this.opts._n}`}u.set(e,o.Completed)}))}return c}}},60512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(16008),i=n(8199),o=n(18090);function s(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function a(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:c}=e,{gen:l,compositeRule:u,allErrors:d}=c,f=p(e,n,i);(null!=o?o:u||d)?s(l,f):a(c,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:c,compositeRule:l,allErrors:u}=i;s(c,p(e,n,r)),l||u||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,o.default.errors,(s=>{e.const(c,r._`${o.default.vErrors}[${s}]`),e.if(r._`${c}.instancePath === undefined`,(()=>e.assign(r._`${c}.instancePath`,(0,r.strConcat)(o.default.instancePath,a.errorPath)))),e.assign(r._`${c}.schemaPath`,r.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(r._`${c}.schema`,n),e.assign(r._`${c}.data`,i))}))};const c={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function p(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:s}=e,a=[l(s,n),u(e,n)];return function(e,{params:t,message:n},i){const{keyword:s,data:a,schemaValue:p,it:l}=e,{opts:u,propertyName:d,topSchemaRef:f,schemaPath:h}=l;i.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||r._`{}`]),u.messages&&i.push([c.message,"function"==typeof n?n(e):n]),u.verbose&&i.push([c.schema,p],[c.parentSchema,r._`${f}${h}`],[o.default.data,a]),d&&i.push([c.propertyName,d])}(e,t,a),i.object(...a)}(e,t,n)}function l({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function u({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let s=o?t:r.str`${t}/${e}`;return n&&(s=r.str`${s}${(0,i.getErrorPath)(n,i.Type.Str)}`),[c.schemaPath,s]}},41502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(16008),i=n(51714),o=n(18090),s=n(90178),a=n(8199),c=n(32445);class p{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(e){const t=d.call(this,e);if(t)return t;const n=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:p}=this.opts.code,{ownProperties:l}=this.opts,u=new r.CodeGen(this.scope,{es5:a,lines:p,ownProperties:l});let f;e.$async&&(f=u.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=u.scopeName("validate");e.validateName=h;const m={gen:u,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),u.optimize(this.opts.code.optimize);const t=u.toString();y=`${u.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:u._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function u(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function d(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function f(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),r=(0,s._getFullPath)(this.opts.uriResolver,n);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return y.call(this,n,e);const o=(0,s.normalizeId)(r),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=h.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||l.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,r)),new p({schema:t,schemaId:n,root:e,baseId:i})}return y.call(this,n,a)}}t.SchemaEnv=p,t.compileSchema=l,t.resolveRef=function(e,t,n){var r;n=(0,s.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=f.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:s}=this.opts;i&&(o=new p({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[n]=u.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,r,e)}const{schemaId:c}=this.opts;return o=o||new p({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},18090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},58366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90178);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},90178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(8199),i=n(64063),o=n(57091),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&p(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function p(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=p(e))),t===1/0))return 1/0}return t}function l(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return u(e,r)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=u;const d=/#\/?$/;function f(e){return e?e.replace(d,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,s=f(e[n]||t),a={"":s},c=l(r,s,!1),p={},u=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=c+t;let s=a[i];function l(t){const n=this.opts.uriResolver.resolve;if(t=f(s?n(s,t):t),u.has(t))throw m(t);u.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?d(e,r.schema,t):t!==f(o)&&("#"===t[0]?(d(e,p[t],t),p[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[n]&&(s=l.call(this,e[n])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=s})),p;function d(e,t,n){if(void 0!==t&&!i(e,t))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},28761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},8199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(16008),i=n(20987);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||h(e,`unknown keyword: "${n}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function p({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,s,a,c)=>{const p=void 0===a?s:a instanceof r.Name?(s instanceof r.Name?e(o,s,a):t(o,s,a),a):s instanceof r.Name?(t(o,a,s),s):n(s,a);return c!==r.Name||p instanceof r.Name?p:i(o,p)}}function l(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&u(e,n,t),n}function u(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),u(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=u;const d={};var f;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===f.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=h},73967:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},52733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(60512),i=n(16008),o=n(18090),s={message:"boolean schema is false"};function a(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),a(e)):n.var(t,!0)}},57607:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(28761),i=n(73967),o=n(60512),s=n(16008),a=n(8199);var c;function p(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=p(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=p,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,a=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),p=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(p){const i=d(t,r,o.strictNumbers,c.Wrong);n.if(i,(()=>{a.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,a=r.let("dataType",s._`typeof ${i}`),c=r.let("coerced",s._`undefined`);"array"===o.coerceTypes&&r.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(d(t,i,o.strictNumbers),(()=>r.assign(c,i))))),r.if(s._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===o.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void r.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(c,s._`""`);case"number":return void r.elseIf(s._`${a} == "boolean" || ${i} === null - || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,s._`+${i}`);case"integer":return void r.elseIf(s._`${a} === "boolean" || ${i} === null - || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,s._`+${i}`);case"boolean":return void r.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return r.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(c,null);case"array":r.elseIf(s._`${a} === "string" || ${a} === "number" - || ${a} === "boolean" || ${i} === null`).assign(c,s._`[${i}]`)}}r.else(),h(e),r.endIf(),r.if(s._`${c} !== undefined`,(()=>{r.assign(i,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${n}]`,r)))}(e,c)}))}(e,t,a):h(e)}))}return p};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,n,r=c.Correct){const i=r===c.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return r===c.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,n?s._`isFinite(${t})`:s.nil)}}function d(e,t,n,r){if(1===e.length)return u(e[0],t,n,r);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,u(e,t,n,r));return i}t.checkDataType=u,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=h},66809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(16008),i=n(8199);function o(e,t,n){const{gen:o,compositeRule:s,data:a,opts:c}=e;if(void 0===n)return;const p=r._`${a}${(0,r.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${p}`);let l=r._`${p} === undefined`;"empty"===c.useDefaults&&(l=r._`${l} || ${p} === null || ${p} === ""`),o.if(l,r._`${p} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},32445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(52733),i=n(57607),o=n(73967),s=n(57607),a=n(66809),c=n(39782),p=n(19706),l=n(16008),u=n(18090),d=n(90178),f=n(8199),h=n(60512);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,l._`${u.default.data}, ${u.default.valCxt}`,r.$async,(()=>{e.code(l._`"use strict"; ${y(n,i)}`),function(e,t){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,l._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,l._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,l._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,l._`${u.default.valCxt}.${u.default.rootData}`),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,l._`""`),e.var(u.default.parentData,l._`undefined`),e.var(u.default.parentDataProperty,l._`undefined`),e.var(u.default.rootData,u.default.data),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`{}`)}))}(e,i),e.code(o)})):e.func(t,l._`${u.default.data}, ${function(e){return l._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?l._`, ${u.default.dynamicAnchors}={}`:l.nil}}={}`}(i)}`,r.$async,(()=>e.code(y(n,i)).code(o)))}function y(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?l._`/*# sourceURL=${n} */`:l.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function _(e,t){if(e.opts.jtd)return w(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);w(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function $({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(l._`${u.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=l.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(l._`${u.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function w(e,t,n,r){const{gen:i,schema:a,data:c,allErrors:p,opts:d,self:h}=e,{RULES:m}=h;function y(f){(0,o.shouldUseGroup)(a,f)&&(f.type?(i.if((0,s.checkDataType)(f.type,c,d.strictNumbers)),j(e,f),1===t.length&&t[0]===f.type&&n&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):j(e,f),p||i.if(l._`${u.default.errors} === ${r||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{x(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)x(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&S(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)y(e);y(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function j(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),g(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(u.default.vErrors,null),r.let(u.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",l._`${n}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(l._`${u.default.errors} === 0`,(()=>t.return(u.default.data)),(()=>t.throw(l._`new ${i}(${u.default.vErrors})`))):(t.assign(l._`${r}.errors`,u.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof l.Name&&e.assign(l._`${t}.props`,n),r instanceof l.Name&&e.assign(l._`${t}.items`,r)}(e),t.return(l._`${u.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",k(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",u.default.errors))}result(e,t,n){this.failResult((0,l.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=l.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,l.or)(l._`${r} === undefined`,t)),e!==l.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,l.or)(function(){if(n.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return l._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return l.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return l._`!${n}(${t})`}return l.nil}())}subschema(e,t){const n=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(n,this.it,e),(0,p.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),g(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",u.default.errors);_(e,o),r.var(t,l._`${o} === ${u.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function E(e,t,n,r){const i=new P(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,c.funcKeywordCode)(i,n):"macro"in n?(0,c.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(i,n)}t.KeywordCxt=P;const O=/^\/(?:[^~]|~0|~1)*$/,T=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function k(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return u.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=u.default.rootData}else{const s=T.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(c("property/index",a));return r[t-a]}if(a>t)throw new Error(c("data",a));if(o=n[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=l._`${o}${(0,l.getProperty)((0,f.unescapeJsonPointer)(e))}`,s=l._`${s} && ${o}`);return s;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=k},39782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(16008),i=n(18090),o=n(50144),s=n(60512);function a(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:s,it:a}=e,p=t.macro.call(a.self,o,s,a),l=c(n,i,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const u=n.name("valid");e.subschema({schema:p,schemaPath:r.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:p,keyword:l,schema:u,parentSchema:d,$data:f,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!f&&t.compile?t.compile.call(h.self,u,d,h):t.validate,y=c(p,l,m),g=p.let("valid");function v(n=(t.async?r._`await `:r.nil)){const s=h.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!f||!1===t.schema);p.assign(g,r._`${n}${(0,o.callValidateCode)(e,y,s,a)}`,t.modifying)}function b(e){var n;p.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const n=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>v(r._`await `)),(t=>p.assign(g,!1).if(r._`${t} instanceof ${h.ValidationError}`,(()=>p.assign(e,r._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=r._`${y}.errors`;return p.assign(e,null),v(r.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:g)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},19706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(16008),i=n(8199);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==n){const{errorPath:s,dataPathArr:a,opts:c}=t;l(p.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${s}${(0,i.getErrorPath)(n,o,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function l(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==s&&(l(s instanceof r.Name?s:p.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},75931:(e,t,n)=>{"use strict";var r=n(25108);Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var i=n(32445);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var o=n(16008);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const s=n(51714),a=n(58366),c=n(28761),p=n(41502),l=n(16008),u=n(90178),d=n(57607),f=n(8199),h=n(20655),m=n(79546),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function $(e){var t,n,r,i,o,s,a,c,p,l,u,d,f,h,g,v,b,_,$,w,j,x,S,P,E;const O=e.strict,T=null===(t=e.code)||void 0===t?void 0:t.optimize,k=!0===T||void 0===T?1:T||0,A=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:y,I=null!==(i=e.uriResolver)&&void 0!==i?i:m.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:O)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:O)||void 0===c||c,strictTypes:null!==(l=null!==(p=e.strictTypes)&&void 0!==p?p:O)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(u=e.strictTuples)&&void 0!==u?u:O)&&void 0!==d?d:"log",strictRequired:null!==(h=null!==(f=e.strictRequired)&&void 0!==f?f:O)&&void 0!==h&&h,code:e.code?{...e.code,optimize:k,regExp:A}:{optimize:k,regExp:A},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(x=e.validateSchema)||void 0===x||x,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(E=e.int32range)||void 0===E||E,uriResolver:I}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...$(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:v,es5:t,lines:n}),this.logger=function(e){if(!1===e)return T;if(void 0===e)return r;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,c.getRules)(),j.call(this,b,e,"NOT SUPPORTED"),j.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=O.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=h;"id"===n&&(r={...h},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await p.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new p.SchemaEnv({schema:{},schemaId:n});if(t=p.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,n,t),!t)return(0,f.eachItem)(n,(e=>I.call(this,e))),this;R.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach((t=>I.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=C(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,u.normalizeId)(o||n);const c=u.getSchemaRefs.call(this,e,n);return a=new p.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:c}),this._cache.set(a.schema,a),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):p.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,e)}finally{this.opts=t}}}function j(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function P(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function O(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=w,w.ValidationError=s.default,w.MissingRefError=a.default;const T={log(){},warn(){},error(){}},k=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,t){const{RULES:n}=this;if((0,f.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!k.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:e})=>e===n));if(s||(s={type:n,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?N.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function N(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,M]}}},37692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64063);r.code='require("ajv/dist/runtime/equal").default',t.default=r},69211:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(60540);r.code='require("ajv/dist/runtime/uri").default',t.default=r},51714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},90083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(16008),i=n(8199),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?s(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:n,schema:o,data:s,keyword:a,it:c}=e;c.items=!0;const p=n.const("len",r._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${p} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=n.var("valid",r._`${p} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},46160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50144),i=n(16008),o=n(18090),s=n(8199),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:p,it:l}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:u,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,s.alwaysValidSchema)(l,n))return;const f=(0,r.allSchemaProperties)(a.properties),h=(0,r.allSchemaProperties)(a.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function y(r){if("all"===d.removeAdditional||d.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(u||t.break());if("object"==typeof n&&!(0,s.alwaysValidSchema)(l,n)){const n=t.name("valid");"failing"===d.removeAdditional?(g(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),m(r)}))):(g(r,n),u||t.if((0,i.not)(n),(()=>t.break())))}}}function g(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",c,(n=>{f.length||h.length?t.if(function(n){let o;if(f.length>8){const e=(0,s.schemaRefOrVal)(l,a.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=f.length?(0,i.or)(...f.map((e=>i._`${n} === ${e}`))):i.nil;return h.length&&(o=(0,i.or)(o,...h.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>y(n))):y(n)})),e.ok(i._`${p} === ${o.default.errors}`)}};t.default=a},81257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8199),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(s)}))}};t.default=i},30407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(50144).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},58130:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(8199),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:a}=e;let c,p;const{minContains:l,maxContains:u}=o;a.opts.next?(c=void 0===l?1:l,p=u):c=1;const d=t.const("len",r._`${s}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,n)){let t=r._`${d} >= ${c}`;return void 0!==p&&(t=r._`${t} && ${d} <= ${p}`),void e.pass(t)}a.items=!0;const f=t.name("valid");function h(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===p?t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0).break())):(t.if(r._`${e} > ${p}`,(()=>t.assign(f,!1).break())),1===c?t.assign(f,!0):t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0))))}(n)))))}function m(n,r){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===p&&1===c?m(f,(()=>t.if(f,(()=>t.break())))):0===c?(t.let(f,!0),void 0!==p&&t.if(r._`${s}.length > 0`,h)):(t.let(f,!1),h()),e.result(f,(()=>e.reset()))}};t.default=o},49334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(16008),i=n(8199),o=n(50144);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e}, - missingProperty: ${i}, - depsCount: ${t}, - deps: ${n}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const l=(0,o.propertyInData)(n,i,c,s.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),s.allErrors?n.if(l,(()=>{for(const t of p)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${l} && (${(0,o.checkMissingProp)(e,p,a)})`),(0,o.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:s,it:a}=e,c=n.name("valid");for(const p in t)(0,i.alwaysValidSchema)(a,t[p])||(n.if((0,o.propertyInData)(n,r,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},7719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(8199),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),c=s(o,"else");if(!a&&!c)return;const p=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(l,u("then",n),u("else",n))}else a?t.if(l,u("then")):t.if((0,r.not)(l),u("else"));function u(n,i){return()=>{const o=e.subschema({keyword:n},l);t.assign(p,l),e.mergeValidEvaluated(o,p),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(p,(()=>e.error(!0)))}};function s(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},40980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90083),i=n(87444),o=n(95901),s=n(50077),a=n(58130),c=n(49334),p=n(13420),l=n(46160),u=n(9689),d=n(54773),f=n(11088),h=n(30407),m=n(42614),y=n(81257),g=n(7719),v=n(8181);t.default=function(e=!1){const t=[f.default,h.default,m.default,y.default,g.default,v.default,p.default,l.default,c.default,u.default,d.default];return e?t.push(i.default,s.default):t.push(r.default,o.default),t.push(a.default),t}},95901:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(16008),i=n(8199),o=n(50144),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:o,parentSchema:s,data:a,keyword:c,it:p}=e;!function(e){const{opts:r,errSchemaPath:o}=p,s=n.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(p,e,r.strictTuples)}}(s),p.opts.unevaluated&&n.length&&!0!==p.items&&(p.items=i.mergeEvaluated.items(o,n.length,p.items));const l=o.name("valid"),u=o.const("len",r._`${a}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(p,t)||(o.if(r._`${u} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},l))),e.ok(l))}))}t.validateTuple=a,t.default=s},50077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(8199),o=n(50144),s=n(90083),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},11088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8199),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},42614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(8199),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=n,c=t.let("valid",!1),p=t.let("passing",null),l=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((n,o)=>{let a;(0,i.alwaysValidSchema)(s,n)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(r._`${l} && ${c}`).assign(c,!1).assign(p,r._`[${p}, ${o}]`).else(),t.if(l,(()=>{t.assign(c,!0),t.assign(p,o),a&&e.mergeEvaluated(a,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},54773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50144),i=n(16008),o=n(8199),s=n(8199),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:p}=e,{opts:l}=p,u=(0,r.allSchemaProperties)(n),d=u.filter((e=>(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length||d.length===u.length&&(!p.opts.unevaluated||!0===p.props))return;const f=l.strictSchema&&!l.allowMatchingProperties&&c.properties,h=t.name("valid");!0===p.props||p.props instanceof i.Name||(p.props=(0,s.evaluatedPropsToName)(t,p.props));const{props:m}=p;function y(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",a,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=d.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:s.Type.Str},h),p.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||p.allErrors||t.if((0,i.not)(h),(()=>t.break()))}))}))}!function(){for(const e of u)f&&y(e),p.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=a},87444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(95901),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},9689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(32445),i=n(50144),o=n(8199),s=n(46160),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new r.KeywordCxt(p,s.default,"additionalProperties"));const l=(0,i.allSchemaProperties)(n);for(const e of l)p.definedProperties.add(e);p.opts.unevaluated&&l.length&&!0!==p.props&&(p.props=o.mergeEvaluated.props(t,(0,o.toHash)(l),p.props));const u=l.filter((e=>!(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length)return;const d=t.name("valid");for(const n of u)f(n)?h(n):(t.if((0,i.propertyInData)(t,c,n,p.opts.ownProperties)),h(n),p.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function f(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},13420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(8199),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,n))return;const a=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=o},8181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8199),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},50144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(16008),i=n(8199),o=n(18090),s=n(8199);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function p(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(c(e,t,n))):o}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(p(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(p(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${c(e,t,n)}`:o},t.noPropertyInData=p,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:s,errorPath:a},it:c},p,l,u){const d=u?r._`${e}, ${t}, ${i}${s}`:t,f=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=r._`${d}, ${n.object(...f)}`;return l!==r.nil?r._`${p}.call(${l}, ${h})`:r._`${p}(${h})`};const u=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===o.code?u:(0,s.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(s){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},a),t.if((0,r.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,r.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},80300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},88925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(80300),i=n(36633),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},36633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(58366),i=n(50144),o=n(16008),s=n(18090),a=n(41502),c=n(8199),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:s,schemaEnv:c,validateName:p,opts:d,self:f}=i,{root:h}=c;if(("#"===n||"#/"===n)&&s===h.baseId)return function(){if(c===h)return u(e,p,c,c.$async);const n=t.scopeValue("root",{ref:h});return u(e,o._`${n}.validate`,h,h.$async)}();const m=a.resolveRef.call(f,h,s,n);if(void 0===m)throw new r.default(i.opts.uriResolver,s,n);return m instanceof a.SchemaEnv?function(t){const n=l(e,t);u(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===d.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),s=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function l(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function u(e,t,n,r){const{gen:a,it:p}=e,{allErrors:l,schemaEnv:u,opts:d}=p,f=d.passContext?s.default.this:o.nil;function h(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function m(e){var t;if(!p.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(r&&!r.dynamicProps)void 0!==r.props&&(p.props=c.mergeEvaluated.props(a,r.props,p.props));else{const t=a.var("props",o._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,o.Name)}if(!0!==p.items)if(r&&!r.dynamicItems)void 0!==r.items&&(p.items=c.mergeEvaluated.items(a,r.items,p.items));else{const t=a.var("items",o._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,o.Name)}}r?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),m(t),l||a.assign(n,!0)}),(e=>{a.if(o._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),h(e),l||a.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,f),(()=>m(t)),(()=>h(t)))}t.getValidate=l,t.callRef=u,t.default=p},27461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(14385),o=n(41502),s=n(8199),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:p}=e,{oneOf:l}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=a.propertyName;if("string"!=typeof u)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),f=t.const("tag",r._`${n}${(0,r.getProperty)(u)}`);function h(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${f} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(c);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:u}))),e.ok(d)}};t.default=a},14385:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},61324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88925),i=n(92346),o=n(40980),s=n(84647),a=n(12594),c=[r.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},99691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:s,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:l,schemaEnv:u,self:d}=c;p.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:p.code.formats}),s=n.const("fDef",r._`${o}[${a}]`),c=n.let("fType"),l=n.let("format");n.if(r._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>n.assign(c,r._`${s}.type || "string"`).assign(l,r._`${s}.validate`)),(()=>n.assign(c,r._`"string"`).assign(l,s))),e.fail$data((0,r.or)(!1===p.strictSchema?r.nil:r._`${a} && !${l}`,function(){const e=u.$async?r._`(${s}.async ? await ${l}(${i}) : ${l}(${i}))`:r._`${l}(${i})`,n=r._`(typeof ${l} == "function" ? ${e} : ${l}.test(${i}))`;return r._`${l} && ${l} !== true && ${c} === ${t} && !${n}`}()))}():function(){const o=d.formats[s];if(!o)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${l}"`}d.logger.warn(e())}();if(!0===o)return;const[a,c,f]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):p.code.formats?r._`${p.code.formats}${(0,r.getProperty)(s)}`:void 0,i=n.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return r._`await ${f}(${i})`}return"function"==typeof c?r._`${f}(${i})`:r._`${f}.test(${i})`}())}())}};t.default=i},84647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(99691).default];t.default=r},12594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},70239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(8199),o=n(37692),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=s},22168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(8199),o=n(37692),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:s,schema:a,schemaCode:c,it:p}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=p.opts.loopEnum;let u;const d=()=>null!=u?u:u=(0,i.useFunc)(t,o.default);let f;if(l||s)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",c,(e=>t.if(r._`${d()}(${n}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);f=(0,r.or)(...a.map(((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?r._`${d()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(f)}};t.default=s},92346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(82039),i=n(26247),o=n(25122),s=n(11307),a=n(30029),c=n(78205),p=n(30628),l=n(91608),u=n(70239),d=n(22168),f=[r.default,i.default,o.default,s.default,a.default,c.default,p.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,d.default];t.default=f},30628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},25122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=n(8199),o=n(69211),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,p=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${p} ${c} ${s}`)}};t.default=s},82039:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=a},30029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},26247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16008),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),c=s?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${i} === 0 || (${a} = ${n}/${i}, ${c}))`)}};t.default=i},11307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50144),i=n(16008),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=n?i._`(new RegExp(${s}, ${c}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${p}.test(${t})`)}};t.default=o},78205:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50144),i=n(16008),o=n(8199),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:s,data:a,$data:c,it:p}=e,{opts:l}=p;if(!c&&0===n.length)return;const u=n.length>=l.loopRequired;if(p.allErrors?function(){if(u||c)e.block$data(i.nil,d);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(u||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,s,(()=>{t.assign(o,(0,r.propertyInData)(t,a,n,l.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(p,t,p.opts.strictRequired)}}function d(){t.forOf("prop",s,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,l.ownProperties),(()=>e.error()))}))}}};t.default=s},91608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(57607),i=n(16008),o=n(8199),s=n(37692),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:p,schemaCode:l,it:u}=e;if(!a&&!c)return;const d=t.let("valid"),f=p.items?(0,r.getSchemaTypes)(p.items):[];function h(o,s){const a=t.name("item"),c=(0,r.checkDataTypes)(f,a,u.opts.strictNumbers,r.DataType.Wrong),p=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(a,i._`${n}[${o}]`),t.if(c,i._`continue`),f.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(s,i._`${p}[${a}]`),e.error(),t.assign(d,!1).break()})).code(i._`${p}[${a}] = ${o}`)}))}function m(r,a){const c=(0,o.useFunc)(t,s.default),p=t.name("outer");t.label(p).for(i._`;${r}--;`,(()=>t.for(i._`${a} = ${r}; ${a}--;`,(()=>t.if(i._`${c}(${n}[${r}], ${n}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(p)}))))))}e.block$data(d,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(d,!0),t.if(i._`${r} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?h:m)(r,o)))}),i._`${l} === false`),e.ok(d)}};t.default=a},57091:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,s,a,c,p,l,u){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in r(o,s,a,c,p,l,u),o){var f=o[d];if(Array.isArray(f)){if(d in t.arrayKeywords)for(var h=0;h{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aas2_6=t.aas2_5=t.aas2_4=t.aas2_3=t.aas2_2=t.aas2_1=t.aas2_0=t.asyncapi2=t.asyncApi2=t.aas2=void 0;const r=n(4658),i=/^2\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/,o=/^2\.0(?:\.[0-9]*)?$/,s=/^2\.1(?:\.[0-9]*)?$/,a=/^2\.2(?:\.[0-9]*)?$/,c=/^2\.3(?:\.[0-9]*)?$/,p=/^2\.4(?:\.[0-9]*)?$/,l=/^2\.5(?:\.[0-9]*)?$/,u=/^2\.6(?:\.[0-9]*)?$/,d=e=>(0,r.isPlainObject)(e)&&"asyncapi"in e&&i.test(String(e.asyncapi));t.aas2=d,t.aas2.displayName="AsyncAPI 2.x",t.asyncApi2=t.aas2,t.asyncapi2=t.aas2,t.aas2_0=e=>d(e)&&o.test(String(e.asyncapi)),t.aas2_0.displayName="AsyncAPI 2.0.x",t.aas2_1=e=>d(e)&&s.test(String(e.asyncapi)),t.aas2_1.displayName="AsyncAPI 2.1.x",t.aas2_2=e=>d(e)&&a.test(String(e.asyncapi)),t.aas2_2.displayName="AsyncAPI 2.2.x",t.aas2_3=e=>d(e)&&c.test(String(e.asyncapi)),t.aas2_3.displayName="AsyncAPI 2.3.x",t.aas2_4=e=>d(e)&&p.test(String(e.asyncapi)),t.aas2_4.displayName="AsyncAPI 2.4.x",t.aas2_5=e=>d(e)&&l.test(String(e.asyncapi)),t.aas2_5.displayName="AsyncAPI 2.5.x",t.aas2_6=e=>d(e)&&u.test(String(e.asyncapi)),t.aas2_6.displayName="AsyncAPI 2.6.x"},80683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(73030);(0,r.__exportStar)(n(56967),t),(0,r.__exportStar)(n(59848),t),(0,r.__exportStar)(n(1400),t)},1400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectDialect=t.extractDraftVersion=t.jsonSchemaDraft2020_12=t.jsonSchemaDraft2019_09=t.jsonSchemaDraft7=t.jsonSchemaDraft6=t.jsonSchemaDraft4=t.jsonSchemaLoose=t.jsonSchema=void 0;const r=n(4658),i=["array","boolean","integer","null","number","object","string"],o=["allOf","oneOf","anyOf","not","if"],s=/^https?:\/\/json-schema.org\/(?:draft-0([467])|draft\/(20(?:19-09|20-12)))\/(?:hyper-)?schema#?$/,a=e=>function(e){return(0,r.isPlainObject)(e)&&"$schema"in e&&"string"==typeof e.$schema}(e)&&e.$schema.includes("//json-schema.org/");function c(e,t){const n=t=>a(t)&&p(t.$schema)===e;return n.displayName=t,n}function p(e){var t;const n=s.exec(e);return null!==n?`draft${null!==(t=n[1])&&void 0!==t?t:n[2]}`:null}t.jsonSchema=a,t.jsonSchema.displayName="JSON Schema",t.jsonSchemaLoose=e=>(0,r.isPlainObject)(e)&&(a(e)||(e=>"type"in e&&("string"==typeof e.type?i.includes(e.type):Array.isArray(e.type)&&e.type.every((e=>i.includes(e)))))(e)||(e=>o.some((t=>t in e&&"object"==typeof e[t]&&null!==e[t])))(e)),t.jsonSchemaLoose.displayName="JSON Schema (loose)",t.jsonSchemaDraft4=c("draft4","JSON Schema Draft 4"),t.jsonSchemaDraft6=c("draft6","JSON Schema Draft 6"),t.jsonSchemaDraft7=c("draft7","JSON Schema Draft 7"),t.jsonSchemaDraft2019_09=c("draft2019-09","JSON Schema Draft 2019-09"),t.jsonSchemaDraft2020_12=c("draft2020-12","JSON Schema Draft 2020-12"),t.extractDraftVersion=p,t.detectDialect=function(e){return a(e)?p(e.$schema):null}},56967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oas3_1=t.oas3_0=t.oas3=t.oas2=void 0;const r=n(4658);t.oas2=e=>(0,r.isPlainObject)(e)&&"swagger"in e&&2===parseInt(String(e.swagger)),t.oas2.displayName="OpenAPI 2.0 (Swagger)";const i=e=>(0,r.isPlainObject)(e)&&"openapi"in e&&3===Number.parseInt(String(e.openapi));t.oas3=i,t.oas3.displayName="OpenAPI 3.x",t.oas3_0=e=>i(e)&&/^3\.0(?:\.[0-9]*)?$/.test(String(e.openapi)),t.oas3_0.displayName="OpenAPI 3.0.x",t.oas3_1=e=>i(e)&&/^3\.1(?:\.[0-9]*)?$/.test(String(e.openapi)),t.oas3_1.displayName="OpenAPI 3.1.x"},65787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(96486),i=n(70309),o=n(91403),s=n(78208),a=(e,t)=>"number"!=typeof e&&!Number.isNaN(Number(e))||"number"!=typeof t&&Number.isNaN(Number(t))?"string"!=typeof e||"string"!=typeof t?0:e.localeCompare(t):Math.min(1,Math.max(-1,Number(e)-Number(t)));function c(e){return"string"==typeof e||"number"==typeof e}t.default=(0,i.createRulesetFunction)({input:{type:["object","array"]},options:s.optionSchemas.alphabetical},(function(e,t,{path:n,documentInventory:i}){var s,p;let l;if(l=Array.isArray(e)?e:Object.keys(null!==(p=null===(s=i.findAssociatedItemForPath(n,!0))||void 0===s?void 0:s.document.trapAccess(e))&&void 0!==p?p:e),l.length<2)return;const u=null==t?void 0:t.keyedBy;if(void 0!==u){const e=[];for(const t of l){if(!(0,r.isObject)(t))return[{message:'#{{print("property")}}must be an object'}];e.push(t[u])}l=e}if(!l.every(c))return[{message:'#{{print("property")}}must be one of the allowed types: number, string'}];const d=((e,t)=>{for(let n=0;n=1)return[n,n+1];return null})(l,a);return null!=d?[{...void 0===u?{path:[...n,Array.isArray(e)?d[0]:l[d[0]]]}:null,message:void 0!==u?"properties must follow the alphabetical order":`${(0,o.printValue)(l[d[0]])} must be placed after ${(0,o.printValue)(l[d[1]])}`}]:void 0}))},14202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0;const r=n(96486),i=n(70309),o=n(78208),s=n(32599);Object.defineProperty(t,"CasingType",{enumerable:!0,get:function(){return s.CasingType}});const a={[s.CasingType.flat]:"[a-z][a-z{__DIGITS__}]*",[s.CasingType.camel]:"[a-z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[s.CasingType.pascal]:"[A-Z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[s.CasingType.kebab]:"[a-z][a-z{__DIGITS__}]*(?:-[a-z{__DIGITS__}]+)*",[s.CasingType.cobol]:"[A-Z][A-Z{__DIGITS__}]*(?:-[A-Z{__DIGITS__}]+)*",[s.CasingType.snake]:"[a-z][a-z{__DIGITS__}]*(?:_[a-z{__DIGITS__}]+)*",[s.CasingType.macro]:"[A-Z][A-Z{__DIGITS__}]*(?:_[A-Z{__DIGITS__}]+)*"};t.default=(0,i.createRulesetFunction)({input:{type:"string",minLength:1},options:o.optionSchemas.casing},(function(e,t){if(1!==e.length||void 0===t.separator||!0!==t.separator.allowLeading||e!==t.separator.char)return c(a[t.type],t).test(e)?void 0:[{message:`must be ${t.type} case`}]}));const c=(e,t)=>{const n=!0!==t.disallowDigits,i=e.replace(/\{__DIGITS__\}/g,n?"0-9":"");if(void 0===t.separator)return new RegExp(`^${i}$`);const o=`[${(0,r.escapeRegExp)(t.separator.char)}]`,s=!0===t.separator.allowLeading?`${o}?`:"";return new RegExp(`^${s}${i}(?:${o}${i})*$`)}},24225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(78208);t.default=(0,r.createRulesetFunction)({input:null,options:i.optionSchemas.defined},(function(e){if(void 0===e)return[{message:'#{{print("property")}}must be defined'}]}))},40551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(91403),o=n(78208);t.default=(0,r.createRulesetFunction)({input:{type:["string","number","null","boolean"]},options:o.optionSchemas.enumeration},(function(e,{values:t}){if(!t.includes(e))return[{message:`#{{print("value")}} must be equal to one of the allowed values: ${t.map(i.printValue).join(", ")}`}]}))},77546:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(78208);t.default=(0,r.createRulesetFunction)({input:null,options:i.optionSchemas.falsy},(function(e){if(e)return[{message:'#{{print("property")}}must be falsy'}]}))},4133:(e,t,n)=>{"use strict";t.Jp=t.yb=t.fK=t.uj=void 0;const r=n(53125),i=((0,r.__importDefault)(n(65787)),(0,r.__importDefault)(n(14202)),(0,r.__importDefault)(n(24225)),(0,r.__importDefault)(n(40551)),(0,r.__importDefault)(n(77546)),(0,r.__importDefault)(n(85285)),(0,r.__importDefault)(n(13609)));Object.defineProperty(t,"uj",{enumerable:!0,get:function(){return i.default}});const o=(0,r.__importDefault)(n(47952));Object.defineProperty(t,"fK",{enumerable:!0,get:function(){return o.default}});const s=(0,r.__importDefault)(n(29719));Object.defineProperty(t,"yb",{enumerable:!0,get:function(){return s.default}});(0,r.__importDefault)(n(29298));const a=(0,r.__importDefault)(n(73789));Object.defineProperty(t,"Jp",{enumerable:!0,get:function(){return a.default}});(0,r.__importDefault)(n(47217))},85285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(91403),o=n(4658),s=n(78208);t.default=(0,r.createRulesetFunction)({input:{type:["array","object","string","number"]},options:s.optionSchemas.length},(function(e,t){let n,r;return n=(0,o.isPlainObject)(e)?Object.keys(e).length:Array.isArray(e)?e.length:"number"==typeof e?e:e.length,"min"in t&&nt.max&&(null!=r?r:r=[]).push({message:`#{{print("property")}}must be shorter than ${(0,i.printValue)(t.max)}`}),r}))},78208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionSchemas=void 0;const r=n(32599);t.optionSchemas={alphabetical:{type:["object","null"],properties:{keyedBy:{type:"string",description:"The key to sort an object by."}},additionalProperties:!1,errorMessage:{type:'"alphabetical" function has invalid options specified. Example valid options: null (no options), { "keyedBy": "my-key" }'}},casing:{required:["type"],type:"object",properties:{type:{type:"string",enum:Object.values(r.CasingType),errorMessage:`"casing" function and its "type" option accept the following values: ${Object.values(r.CasingType).join(", ")}`,description:"The casing type to match against."},disallowDigits:{type:"boolean",default:!1,description:"If not true, digits are allowed."},separator:{type:"object",required:["char"],additionalProperties:!1,properties:{char:{type:"string",maxLength:1,errorMessage:'"casing" function and its "separator.char" option accepts only char, i.e. "I" or "/"',description:"The additional char to separate groups of words."},allowLeading:{type:"boolean",description:"Can the group separator char be used at the first char?"}}}},additionalProperties:!1,errorMessage:{type:'"casing" function has invalid options specified. Example valid options: { "type": "camel" }, { "type": "pascal", "disallowDigits": true }'}},defined:null,enumeration:{type:"object",additionalProperties:!1,properties:{values:{type:"array",items:{type:["string","number","null","boolean"]},errorMessage:'"enumeration" and its "values" option support only arrays of primitive values, i.e. ["Berlin", "London", "Paris"]',description:"An array of possible values."}},required:["values"],errorMessage:{type:'"enumeration" function has invalid options specified. Example valid options: { "values": ["Berlin", "London", "Paris"] }, { "values": [2, 3, 5, 8, 13, 21] }'}},falsy:null,length:{type:"object",properties:{min:{type:"number",description:"The minimum length to match."},max:{type:"number",description:"The maximum length to match."}},minProperties:1,additionalProperties:!1,errorMessage:{type:'"length" function has invalid options specified. Example valid options: { "min": 2 }, { "max": 5 }, { "min": 0, "max": 10 }'}},pattern:{type:"object",additionalProperties:!1,properties:{match:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "match" option must be string or RegExp instance',description:"If provided, value must match this regex."},notMatch:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "notMatch" option must be string or RegExp instance',description:"If provided, value must _not_ match this regex."}},minProperties:1,errorMessage:{type:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }',minProperties:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }'}},truthy:null,undefined:null,schema:{additionalProperties:!1,properties:{schema:{type:"object",description:"Any valid JSON Schema document."},dialect:{enum:["auto","draft4","draft6","draft7","draft2019-09","draft2020-12"],default:"auto",description:"The JSON Schema draft used by function."},allErrors:{type:"boolean",default:!1,description:"Returns all errors when true; otherwise only returns the first error."},prepareResults:{"x-internal":!0}},required:["schema"],type:"object",errorMessage:{type:'"schema" function has invalid options specified. Example valid options: { "schema": { /* any JSON Schema can be defined here */ } , { "schema": { "type": "object" }, "dialect": "auto" }'}},unreferencedReusableObject:{type:"object",properties:{reusableObjectsLocation:{type:"string",format:"json-pointer-uri-fragment",errorMessage:'"unreferencedReusableObject" and its "reusableObjectsLocation" option support only valid JSON Pointer fragments, i.e. "#", "#/foo", "#/paths/~1user"',description:"A local json pointer to the document member holding the reusable objects (eg. #/definitions for an OAS2 document, #/components/schemas for an OAS3 document)."}},additionalProperties:!1,required:["reusableObjectsLocation"],errorMessage:{type:'"unreferencedReusableObject" function has invalid options specified. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }',required:'"unreferencedReusableObject" function is missing "reusableObjectsLocation" option. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }'}},xor:{type:"object",properties:{properties:{type:"array",items:{type:"string"},minItems:2,maxItems:2,errorMessage:'"xor" and its "properties" option support 2-item tuples, i.e. ["id", "name"]',description:"The properties to check."}},additionalProperties:!1,required:["properties"],errorMessage:{type:'"xor" function has invalid options specified. Example valid options: { "properties": ["id", "name"] }, { "properties": ["country", "street"] }'}}}},13609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(91403),o=n(78208),s=/^\/(.+)\/([a-z]*)$/,a=new Map;function c(e){const t=a.get(e);if(void 0!==t)return t.lastIndex=0,t;const n=function(e){const t=s.exec(e);return null!==t?new RegExp(t[1],t[2]):new RegExp(e)}(e);return a.set(e,n),n}t.default=(0,r.createRulesetFunction)({input:{type:"string"},options:o.optionSchemas.pattern},(function(e,t){let n;return"match"in t&&(c(t.match).test(e)||(n=[{message:`#{{print("value")}} must match the pattern ${(0,i.printValue)(t.match)}`}])),"notMatch"in t&&c(t.notMatch).test(e)&&(null!=n?n:n=[]).push({message:`#{{print("value")}} must not match the pattern ${(0,i.printValue)(t.notMatch)}`}),n}))},38178:(e,t,n)=>{"use strict";var r=n(25108);Object.defineProperty(t,"__esModule",{value:!0}),t.createAjvInstances=void 0;const i=n(53125),o=(0,i.__importDefault)(n(77503)),s=(0,i.__importDefault)(n(85307)),a=(0,i.__importDefault)(n(29288)),c=(0,i.__importDefault)(n(61e3)),p=(0,i.__importDefault)(n(5477)),l=(0,i.__importDefault)(n(44606)),u=(0,i.__importStar)(n(94193)),d=(0,i.__importStar)(n(59081)),f={warn(...e){const t=e[0];if("string"==typeof t){if(t.startsWith("unknown format"))return;r.warn(...e)}},log:r.log,error:r.error};function h(e,t){const n=new e({allErrors:t,meta:!0,messages:!0,strict:!1,allowUnionTypes:!0,logger:f,unicodeRegExp:!1});return(0,p.default)(n),t&&(0,l.default)(n),e===o.default&&(n.addSchema(d),n.addSchema(u)),n}function m(e){let t,n;return{get default(){return null!=t||(t=h(e,!1)),t},get allErrors(){return null!=n||(n=h(e,!0)),n}}}t.createAjvInstances=function(){const e={auto:m(o.default),draft4:m(c.default),"draft2019-09":m(s.default),"draft2020-12":m(a.default)},t=new WeakMap;return function(n,r,i){var o,s,a,c;const p=(null!==(o=e[r])&&void 0!==o?o:e.auto)[i?"allErrors":"default"],l=n.$id;if("string"==typeof l)return null!==(s=p.getSchema(l))&&void 0!==s?s:p.compile(n);{const e=null!==(a=t.get(p))&&void 0!==a?a:t.set(p,new WeakMap).get(p);return null!==(c=e.get(n))&&void 0!==c?c:e.set(n,p.compile(n)).get(n)}}}},47952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(53125),i=(0,r.__importDefault)(n(93817)),o=n(80683),s=n(38178),a=(0,r.__importDefault)(n(22952)),c=n(70309),p=n(96486),l=n(78208),u=new WeakMap;t.default=(0,c.createRulesetFunction)({input:null,options:l.optionSchemas.schema},(function(e,t,{path:n,rule:r,documentInventory:c}){var l,d,f;if(void 0===e)return[{path:n,message:'#{{print("property")}}must exist'}];const h=null!==(l=u.get(c))&&void 0!==l?l:u.set(c,(0,s.createAjvInstances)()).get(c),m=[],{allErrors:y=!1,schema:g}=t;try{const r=h(g,null!==(d=void 0===t.dialect||"auto"===t.dialect?(0,o.detectDialect)(g):null==t?void 0:t.dialect)&&void 0!==d?d:"draft7",y);!1===(null==r?void 0:r(e))&&Array.isArray(r.errors)&&(null===(f=t.prepareResults)||void 0===f||f.call(t,r.errors),m.push(...(0,i.default)(g,r.errors,{propertyPath:n,targetValue:e}).map((({suggestion:e,error:t,path:r})=>({message:void 0!==e?`${t}. ${e}`:t,path:[...n,...""!==r?r.replace(/^\//,"").split("/"):[]]})))))}catch(e){if(!(0,p.isError)(e))throw new Error("Unexpected error");r.resolved&&e instanceof a.default||m.push({message:e.message,path:n})}return m}))},29719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(78208);t.default=(0,r.createRulesetFunction)({input:null,options:i.optionSchemas.truthy},(function(e){if(!e)return[{message:'#{{print("property")}}must be truthy'}]}))},32599:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0,(n=t.CasingType||(t.CasingType={})).flat="flat",n.camel="camel",n.pascal="pascal",n.kebab="kebab",n.cobol="cobol",n.snake="snake",n.macro="macro"},29298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(78208);t.default=(0,r.createRulesetFunction)({input:null,options:i.optionSchemas.undefined},(function(e){if(void 0!==e)return[{message:'#{{print("property")}}must be undefined'}]}))},73789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(91403),o=n(4658),s=n(78208);t.default=(0,r.createRulesetFunction)({input:{type:"object"},options:s.optionSchemas.unreferencedReusableObject},(function(e,t,{document:n,documentInventory:r}){var s;const a=r.graph;if(null===a)throw new Error("unreferencedReusableObject requires dependency graph");const c=null!==(s=n.source)&&void 0!==s?s:"",p=Object.keys(e).map((e=>`${c}${t.reusableObjectsLocation}/${e}`)),l=new Set(a.overallOrder().map((e=>(0,o.decodePointer)(e))));return p.filter((e=>!l.has(e))).map((e=>({message:"Potential orphaned reusable object has been detected",path:(0,i.safePointerToPath)(e)})))}))},47217:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70309),i=n(91403),o=n(78208);t.default=(0,r.createRulesetFunction)({input:{type:"object"},options:o.optionSchemas.xor},(function(e,{properties:t}){if(2!==t.length)return;const n=[];return 1!==Object.keys(e).filter((e=>-1!==t.indexOf(e))).length&&n.push({message:`${(0,i.printValue)(t[0])} and ${(0,i.printValue)(t[1])} must not be both defined or both undefined`}),n}))},61e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(94900),i=n(10032),o=n(44459),s=n(52165),a=["/properties"],c="http://json-schema.org/draft-04/schema";class p extends r.default{constructor(e={}){super({...e,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=n(94900);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=n(94900);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})},8005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=["$schema","id","$defs",{keyword:"$comment"},"definitions",n(97215).default];t.default=r},10032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8005),i=n(83806),o=n(23343),s=n(32665),a=[r.default,i.default,o.default(),s.default,["title","description","default"]];t.default=a},83806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(96453),i=n(54275),o=n(15930),s=n(34593),a=n(5863),c=n(13787),p=n(34554),l=n(50632),u=n(96258),d=n(89928),f=n(73116),h=[r.default,i.default,o.default,s.default,a.default,c.default,p.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=h},96453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(94900),i=n(15256).operators,o={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:i.LTE,fail:i.GT},{okStr:"<",ok:i.LT,fail:i.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:i.GTE,fail:i.LT},{okStr:">",ok:i.GT,fail:i.LTE}]}},s={message:e=>r.str`must be ${c(e).okStr} ${e.schemaCode}`,params:e=>r._`{comparison: ${c(e).okStr}, limit: ${e.schemaCode}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{data:t,schemaCode:n}=e;e.fail$data(r._`${t} ${c(e).fail} ${n} || isNaN(${t})`)}};function c(e){var t;const n=e.keyword,r=(null===(t=e.parentSchema)||void 0===t?void 0:t[o[n].exclusive])?1:0;return o[n].ops[r]}t.default=a},54275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},r={keyword:Object.keys(n),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){const r=n[e];if(void 0===t[r])throw new Error(`${e} can only be used with ${r}`)}};t.default=r},44606:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(77503),i=n(15256),o=n(41314),s=n(85784),a=n(42084),c=n(21035),p="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:n,data:m,schema:y,schemaValue:g,it:v}=t;if(!1===v.createErrors)return;const b=y,_=i.strConcat(c.default.instancePath,v.errorPath);function $(e,t){return i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,r._`${e}.instancePath === ${_}`,r._`${e}.keyword in ${t}`,r._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function w(e,t){const r=[];for(const n in e){const e=t[n];d.test(e)&&r.push([n,x(e)])}return n.object(...r)}function j(e){return d.test(e)?new o._Code(o.safeStringify(e).replace(f,((e,t)=>`" + JSON.stringify(${s.getData(t,v)}) + "`)).replace(h,"")):r.stringify(e)}function x(e){return r._`function(){return ${j(e)}}`}n.if(r._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,s]=function(e){let t,n;for(const r in e){if("properties"===r||"items"===r)continue;const i=e[r];if("object"==typeof i){t||(t={});const e=t[r]={};for(const t in i)e[t]=[]}else n||(n={}),n[r]=[]}return[t,n]}(b);s&&function(i){const o=n.const("emErrors",r.stringify(i)),s=n.const("templates",w(i,y));n.forOf("err",c.default.vErrors,(e=>n.if($(e,o),(()=>n.code(r._`${o}[${e}.keyword].push(${e})`).assign(r._`${e}.${l}`,!0)))));const{singleError:p}=e;if(p){const e=n.let("message",r._`""`),i=n.let("paramsErrors",r._`[]`);u((t=>{n.if(e,(()=>n.code(r._`${e} += ${"string"==typeof p?p:";"}`))),n.code(r._`${e} += ${d(t)}`),n.assign(i,r._`${i}.concat(${o}[${t}])`)})),a.reportError(t,{message:e,params:r._`{errors: ${i}}`})}else u((e=>a.reportError(t,{message:d(e),params:r._`{errors: ${o}[${e}]}`})));function u(e){n.forIn("key",o,(t=>n.if(r._`${o}[${t}].length`,(()=>e(t)))))}function d(e){return r._`${e} in ${s} ? ${s}[${e}]() : ${g}[${e}]`}}(s),o&&function(e){const i=n.const("emErrors",r.stringify(e)),o=[];for(const t in e)o.push([t,w(e[t],y[t])]);const s=n.const("templates",n.object(...o)),p=n.scopeValue("obj",{ref:u,code:r.stringify(u)}),d=n.let("emPropParams"),f=n.let("emParamsErrors");n.forOf("err",c.default.vErrors,(e=>n.if($(e,i),(()=>{n.assign(d,r._`${p}[${e}.keyword]`),n.assign(f,r._`${i}[${e}.keyword][${e}.params[${d}]]`),n.if(f,(()=>n.code(r._`${f}.push(${e})`).assign(r._`${e}.${l}`,!0)))})))),n.forIn("key",i,(e=>n.forIn("keyProp",r._`${i}[${e}]`,(o=>{n.assign(f,r._`${i}[${e}][${o}]`),n.if(r._`${f}.length`,(()=>{const i=n.const("tmpl",r._`${s}[${e}] && ${s}[${e}][${o}]`);a.reportError(t,{message:r._`${i} ? ${i}() : ${g}[${e}][${o}]`,params:r._`{errors: ${f}}`})}))}))))}(o),function(e){const{props:o,items:s}=e;if(!o&&!s)return;const u=r._`typeof ${m} == "object"`,d=r._`Array.isArray(${m})`,f=n.let("emErrors");let h,v;const b=n.let("templates");function $(e,t){n.assign(f,r.stringify(e)),n.assign(b,w(e,t))}o&&s?(h=n.let("emChildKwd"),n.if(u),n.if(d,(()=>{$(s,y.items),n.assign(h,r.str`items`)}),(()=>{$(o,y.properties),n.assign(h,r.str`properties`)})),v=r._`[${h}]`):s?(n.if(d),$(s,y.items),v=r._`.items`):o&&(n.if(i.and(u,i.not(d))),$(o,y.properties),v=r._`.properties`),n.forOf("err",c.default.vErrors,(e=>function(e,t,o){n.if(i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,r._`${e}.instancePath.indexOf(${_}) === 0`),(()=>{const i=n.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),s=n.const("emMatches",r._`${i}.exec(${e}.instancePath.slice(${_}.length))`),a=n.const("emChild",r._`${s} && ${s}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);n.if(r._`${a} !== undefined && ${a} in ${t}`,(()=>o(a)))}))}(e,f,(t=>n.code(r._`${f}[${t}].push(${e})`).assign(r._`${e}.${l}`,!0))))),n.forIn("key",f,(e=>n.if(r._`${f}[${e}].length`,(()=>{a.reportError(t,{message:r._`${e} in ${b} ? ${b}[${e}]() : ${g}${v}[${e}]`,params:r._`{errors: ${f}[${e}]}`}),n.assign(r._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,r._`${_} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),n.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;en.if(function(e){return i.and(r._`${e}.keyword !== ${p}`,r._`!${e}.${l}`,i.or(r._`${e}.instancePath === ${_}`,i.and(r._`${e}.instancePath.indexOf(${_}) === 0`,r._`${e}.instancePath[${_}.length] === "/"`)),r._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>n.code(r._`${o}.push(${e})`).assign(r._`${e}.${l}`,!0))))),n.if(r._`${o}.length`,(()=>a.reportError(t,{message:j(e),params:r._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=n.const("emErrs",r._`[]`);n.forOf("err",c.default.vErrors,(t=>n.if(r._`!${t}.${l}`,(()=>n.code(r._`${e}.push(${t})`))))),n.assign(c.default.vErrors,e).assign(c.default.errors,r._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},85307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(94900),i=n(95117),o=n(62029),s=n(21651),a=n(37810),c=n(44459),p=n(52322),l="https://json-schema.org/draft/2019-09/schema";class u extends r.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(o.default),i.default.forEach((e=>this.addVocabulary(e))),this.addVocabulary(s.default),this.addVocabulary(a.default),this.opts.discriminator&&this.addKeyword(c.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(p.default.call(this,e),this.refs["http://json-schema.org/schema"]=l)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var d=n(85784);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var f=n(15256);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var h=n(35087);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var m=n(22952);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})},29288:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(94900),i=n(22884),o=n(44459),s=n(10765),a="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(s.default.call(this,e),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=n(85784);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var l=n(15256);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var u=n(35087);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=n(22952);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})},77503:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(94900),i=n(95117),o=n(44459),s=n(19173),a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=n(85784);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=n(15256);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=n(35087);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=n(22952);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},41314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(41314),i=n(37566);var o=n(41314);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=n(37566);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=A(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class p extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=A(this.rhs,e,t),this}get names(){return k(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class l extends p{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=A(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(I(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>T(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class v extends y{}v.kind="else";class b extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(N(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=A(this.condition,e,t),this}get names(){const e=super.names;return k(e,this.condition),this.else&&T(e,this.else.names),e}}b.kind="if";class _ extends y{}_.kind="for";class $ extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=A(this.iteration,e,t),this}get names(){return T(super.names,this.iteration.names)}}class w extends _{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=k(super.names,this.from);return k(e,this.to)}}class j extends _{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=A(this.iterable,e,t),this}get names(){return T(super.names,this.iterable.names)}}class x extends y{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class P extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&T(e,this.catch.names),this.finally&&T(e,this.finally.names),e}}class E extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class O extends y{render(e){return"finally"+super.render(e)}}function T(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function k(e,t){return t instanceof r._CodeOrName?T(e,t.names):e}function A(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function I(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}O.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new c(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new p(e,t,n))}add(e,n){return this._leafNode(new l(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new $(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new w(o,s,t,n),(()=>r(s)))}forOf(e,t,n,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(s,r._`${e}[${t}]`),n(s)}))}return this._for(new j("of",o,s,t),(()=>n(s)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const s=this._scope.toName(e);return this._for(new j("in",o,s,t),(()=>n(s)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new P;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(E,O)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new x(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=N;const R=C(t.operators.AND);t.and=function(...e){return e.reduce(R)};const M=C(t.operators.OR);function C(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(M)}},37566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(41314);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=a;const c=r._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:r.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,r);const a=this._scope[i]||(this._scope[i]=[]),c=a.length;return a[c]=t.ref,r.setValue(t,{property:i,itemIndex:c}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,s={},a){let c=r.nil;for(const p in e){const l=e[p];if(!l)continue;const u=s[p]=s[p]||new Map;l.forEach((e=>{if(u.has(e))return;u.set(e,o.Started);let s=n(e);if(s){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=r._`${c}${n} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);c=r._`${c}${s}${this.opts._n}`}u.set(e,o.Completed)}))}return c}}},42084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(15256),i=n(5330),o=n(21035);function s(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function a(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:c}=e,{gen:l,compositeRule:u,allErrors:d}=c,f=p(e,n,i);(null!=o?o:u||d)?s(l,f):a(c,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:c,compositeRule:l,allErrors:u}=i;s(c,p(e,n,r)),l||u||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,o.default.errors,(s=>{e.const(c,r._`${o.default.vErrors}[${s}]`),e.if(r._`${c}.instancePath === undefined`,(()=>e.assign(r._`${c}.instancePath`,(0,r.strConcat)(o.default.instancePath,a.errorPath)))),e.assign(r._`${c}.schemaPath`,r.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(r._`${c}.schema`,n),e.assign(r._`${c}.data`,i))}))};const c={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function p(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:s}=e,a=[l(s,n),u(e,n)];return function(e,{params:t,message:n},i){const{keyword:s,data:a,schemaValue:p,it:l}=e,{opts:u,propertyName:d,topSchemaRef:f,schemaPath:h}=l;i.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||r._`{}`]),u.messages&&i.push([c.message,"function"==typeof n?n(e):n]),u.verbose&&i.push([c.schema,p],[c.parentSchema,r._`${f}${h}`],[o.default.data,a]),d&&i.push([c.propertyName,d])}(e,t,a),i.object(...a)}(e,t,n)}function l({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function u({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let s=o?t:r.str`${t}/${e}`;return n&&(s=r.str`${s}${(0,i.getErrorPath)(n,i.Type.Str)}`),[c.schemaPath,s]}},6268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(15256),i=n(35087),o=n(21035),s=n(7352),a=n(5330),c=n(85784);class p{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(e){const t=d.call(this,e);if(t)return t;const n=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:p}=this.opts.code,{ownProperties:l}=this.opts,u=new r.CodeGen(this.scope,{es5:a,lines:p,ownProperties:l});let f;e.$async&&(f=u.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=u.scopeName("validate");e.validateName=h;const m={gen:u,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),u.optimize(this.opts.code.optimize);const t=u.toString();y=`${u.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:u._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function u(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function d(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function f(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),r=(0,s._getFullPath)(this.opts.uriResolver,n);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return y.call(this,n,e);const o=(0,s.normalizeId)(r),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=h.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||l.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,r)),new p({schema:t,schemaId:n,root:e,baseId:i})}return y.call(this,n,a)}}t.SchemaEnv=p,t.compileSchema=l,t.resolveRef=function(e,t,n){var r;n=(0,s.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=f.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:s}=this.opts;i&&(o=new p({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[n]=u.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,r,e)}const{schemaId:c}=this.opts;return o=o||new p({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},21035:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},22952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7352);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},7352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(5330),i=n(64063),o=n(65987),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&p(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function p(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=p(e))),t===1/0))return 1/0}return t}function l(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return u(e,r)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=u;const d=/#\/?$/;function f(e){return e?e.replace(d,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,s=f(e[n]||t),a={"":s},c=l(r,s,!1),p={},u=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=c+t;let s=a[i];function l(t){const n=this.opts.uriResolver.resolve;if(t=f(s?n(s,t):t),u.has(t))throw m(t);u.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?d(e,r.schema,t):t!==f(o)&&("#"===t[0]?(d(e,p[t],t),p[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[n]&&(s=l.call(this,e[n])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=s})),p;function d(e,t,n){if(void 0!==t&&!i(e,t))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},43804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},5330:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(15256),i=n(41314);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||h(e,`unknown keyword: "${n}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function p({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,s,a,c)=>{const p=void 0===a?s:a instanceof r.Name?(s instanceof r.Name?e(o,s,a):t(o,s,a),a):s instanceof r.Name?(t(o,a,s),s):n(s,a);return c!==r.Name||p instanceof r.Name?p:i(o,p)}}function l(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&u(e,n,t),n}function u(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),u(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=u;const d={};var f;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===f.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=h},21868:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},6327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(42084),i=n(15256),o=n(21035),s={message:"boolean schema is false"};function a(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),a(e)):n.var(t,!0)}},39216:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(43804),i=n(21868),o=n(42084),s=n(15256),a=n(5330);var c;function p(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=p(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=p,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,a=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),p=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(p){const i=d(t,r,o.strictNumbers,c.Wrong);n.if(i,(()=>{a.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,a=r.let("dataType",s._`typeof ${i}`),c=r.let("coerced",s._`undefined`);"array"===o.coerceTypes&&r.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(d(t,i,o.strictNumbers),(()=>r.assign(c,i))))),r.if(s._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===o.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void r.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(c,s._`""`);case"number":return void r.elseIf(s._`${a} == "boolean" || ${i} === null - || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,s._`+${i}`);case"integer":return void r.elseIf(s._`${a} === "boolean" || ${i} === null - || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,s._`+${i}`);case"boolean":return void r.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return r.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(c,null);case"array":r.elseIf(s._`${a} === "string" || ${a} === "number" - || ${a} === "boolean" || ${i} === null`).assign(c,s._`[${i}]`)}}r.else(),h(e),r.endIf(),r.if(s._`${c} !== undefined`,(()=>{r.assign(i,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${n}]`,r)))}(e,c)}))}(e,t,a):h(e)}))}return p};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,n,r=c.Correct){const i=r===c.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return r===c.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,n?s._`isFinite(${t})`:s.nil)}}function d(e,t,n,r){if(1===e.length)return u(e[0],t,n,r);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,u(e,t,n,r));return i}t.checkDataType=u,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=h},9855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(15256),i=n(5330);function o(e,t,n){const{gen:o,compositeRule:s,data:a,opts:c}=e;if(void 0===n)return;const p=r._`${a}${(0,r.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${p}`);let l=r._`${p} === undefined`;"empty"===c.useDefaults&&(l=r._`${l} || ${p} === null || ${p} === ""`),o.if(l,r._`${p} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},85784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(6327),i=n(39216),o=n(21868),s=n(39216),a=n(9855),c=n(7970),p=n(63478),l=n(15256),u=n(21035),d=n(7352),f=n(5330),h=n(42084);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,l._`${u.default.data}, ${u.default.valCxt}`,r.$async,(()=>{e.code(l._`"use strict"; ${y(n,i)}`),function(e,t){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,l._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,l._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,l._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,l._`${u.default.valCxt}.${u.default.rootData}`),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,l._`""`),e.var(u.default.parentData,l._`undefined`),e.var(u.default.parentDataProperty,l._`undefined`),e.var(u.default.rootData,u.default.data),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`{}`)}))}(e,i),e.code(o)})):e.func(t,l._`${u.default.data}, ${function(e){return l._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?l._`, ${u.default.dynamicAnchors}={}`:l.nil}}={}`}(i)}`,r.$async,(()=>e.code(y(n,i)).code(o)))}function y(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?l._`/*# sourceURL=${n} */`:l.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function _(e,t){if(e.opts.jtd)return w(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);w(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function $({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(l._`${u.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=l.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(l._`${u.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function w(e,t,n,r){const{gen:i,schema:a,data:c,allErrors:p,opts:d,self:h}=e,{RULES:m}=h;function y(f){(0,o.shouldUseGroup)(a,f)&&(f.type?(i.if((0,s.checkDataType)(f.type,c,d.strictNumbers)),j(e,f),1===t.length&&t[0]===f.type&&n&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):j(e,f),p||i.if(l._`${u.default.errors} === ${r||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{x(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)x(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&S(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)y(e);y(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function j(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),g(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(u.default.vErrors,null),r.let(u.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",l._`${n}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(l._`${u.default.errors} === 0`,(()=>t.return(u.default.data)),(()=>t.throw(l._`new ${i}(${u.default.vErrors})`))):(t.assign(l._`${r}.errors`,u.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof l.Name&&e.assign(l._`${t}.props`,n),r instanceof l.Name&&e.assign(l._`${t}.items`,r)}(e),t.return(l._`${u.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",k(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",u.default.errors))}result(e,t,n){this.failResult((0,l.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=l.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,l.or)(l._`${r} === undefined`,t)),e!==l.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,l.or)(function(){if(n.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return l._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return l.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return l._`!${n}(${t})`}return l.nil}())}subschema(e,t){const n=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(n,this.it,e),(0,p.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),g(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",u.default.errors);_(e,o),r.var(t,l._`${o} === ${u.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function E(e,t,n,r){const i=new P(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,c.funcKeywordCode)(i,n):"macro"in n?(0,c.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(i,n)}t.KeywordCxt=P;const O=/^\/(?:[^~]|~0|~1)*$/,T=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function k(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return u.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=u.default.rootData}else{const s=T.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(c("property/index",a));return r[t-a]}if(a>t)throw new Error(c("data",a));if(o=n[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=l._`${o}${(0,l.getProperty)((0,f.unescapeJsonPointer)(e))}`,s=l._`${s} && ${o}`);return s;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=k},7970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(15256),i=n(21035),o=n(5076),s=n(42084);function a(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:s,it:a}=e,p=t.macro.call(a.self,o,s,a),l=c(n,i,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const u=n.name("valid");e.subschema({schema:p,schemaPath:r.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:p,keyword:l,schema:u,parentSchema:d,$data:f,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!f&&t.compile?t.compile.call(h.self,u,d,h):t.validate,y=c(p,l,m),g=p.let("valid");function v(n=(t.async?r._`await `:r.nil)){const s=h.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!f||!1===t.schema);p.assign(g,r._`${n}${(0,o.callValidateCode)(e,y,s,a)}`,t.modifying)}function b(e){var n;p.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const n=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>v(r._`await `)),(t=>p.assign(g,!1).if(r._`${t} instanceof ${h.ValidationError}`,(()=>p.assign(e,r._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=r._`${y}.errors`;return p.assign(e,null),v(r.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:g)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},63478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(15256),i=n(5330);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==n){const{errorPath:s,dataPathArr:a,opts:c}=t;l(p.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${s}${(0,i.getErrorPath)(n,o,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function l(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==s&&(l(s instanceof r.Name?s:p.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},94900:(e,t,n)=>{"use strict";var r=n(25108);Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var i=n(85784);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var o=n(15256);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const s=n(35087),a=n(22952),c=n(43804),p=n(6268),l=n(15256),u=n(7352),d=n(39216),f=n(5330),h=n(68173),m=n(37573),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function $(e){var t,n,r,i,o,s,a,c,p,l,u,d,f,h,g,v,b,_,$,w,j,x,S,P,E;const O=e.strict,T=null===(t=e.code)||void 0===t?void 0:t.optimize,k=!0===T||void 0===T?1:T||0,A=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:y,I=null!==(i=e.uriResolver)&&void 0!==i?i:m.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:O)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:O)||void 0===c||c,strictTypes:null!==(l=null!==(p=e.strictTypes)&&void 0!==p?p:O)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(u=e.strictTuples)&&void 0!==u?u:O)&&void 0!==d?d:"log",strictRequired:null!==(h=null!==(f=e.strictRequired)&&void 0!==f?f:O)&&void 0!==h&&h,code:e.code?{...e.code,optimize:k,regExp:A}:{optimize:k,regExp:A},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(x=e.validateSchema)||void 0===x||x,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(E=e.int32range)||void 0===E||E,uriResolver:I}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...$(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:v,es5:t,lines:n}),this.logger=function(e){if(!1===e)return T;if(void 0===e)return r;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,c.getRules)(),j.call(this,b,e,"NOT SUPPORTED"),j.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=O.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=h;"id"===n&&(r={...h},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await p.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new p.SchemaEnv({schema:{},schemaId:n});if(t=p.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,n,t),!t)return(0,f.eachItem)(n,(e=>I.call(this,e))),this;R.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach((t=>I.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=C(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,u.normalizeId)(o||n);const c=u.getSchemaRefs.call(this,e,n);return a=new p.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:c}),this._cache.set(a.schema,a),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):p.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,e)}finally{this.opts=t}}}function j(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function P(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function O(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=w,w.ValidationError=s.default,w.MissingRefError=a.default;const T={log(){},warn(){},error(){}},k=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,t){const{RULES:n}=this;if((0,f.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!k.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:e})=>e===n));if(s||(s={type:n,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?N.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function N(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,M]}}},52322:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(34186),i=n(85139),o=n(57419),s=n(3797),a=n(42139),c=n(37579),p=n(49465),l=["/properties"];t.default=function(e){return[r,i,o,s,t(this,a),c,t(this,p)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,n){return e?t.$dataMetaSchema(n,l):n}}},10765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(46399),i=n(38895),o=n(91893),s=n(57571),a=n(94),c=n(37584),p=n(71915),l=n(74504),u=["/properties"];t.default=function(e){return[r,i,o,s,a,t(this,c),p,t(this,l)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,n){return e?t.$dataMetaSchema(n,u):n}}},49787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64063);r.code='require("ajv/dist/runtime/equal").default',t.default=r},91911:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(60540);r.code='require("ajv/dist/runtime/uri").default',t.default=r},35087:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},26202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(15256),i=n(5330),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?s(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:n,schema:o,data:s,keyword:a,it:c}=e;c.items=!0;const p=n.const("len",r._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${p} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=n.var("valid",r._`${p} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},79318:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5076),i=n(15256),o=n(21035),s=n(5330),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:p,it:l}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:u,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,s.alwaysValidSchema)(l,n))return;const f=(0,r.allSchemaProperties)(a.properties),h=(0,r.allSchemaProperties)(a.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function y(r){if("all"===d.removeAdditional||d.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(u||t.break());if("object"==typeof n&&!(0,s.alwaysValidSchema)(l,n)){const n=t.name("valid");"failing"===d.removeAdditional?(g(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),m(r)}))):(g(r,n),u||t.if((0,i.not)(n),(()=>t.break())))}}}function g(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",c,(n=>{f.length||h.length?t.if(function(n){let o;if(f.length>8){const e=(0,s.schemaRefOrVal)(l,a.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=f.length?(0,i.or)(...f.map((e=>i._`${n} === ${e}`))):i.nil;return h.length&&(o=(0,i.or)(o,...h.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>y(n))):y(n)})),e.ok(i._`${p} === ${o.default.errors}`)}};t.default=a},77329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5330),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(s)}))}};t.default=i},95369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(5076).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},9939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:a}=e;let c,p;const{minContains:l,maxContains:u}=o;a.opts.next?(c=void 0===l?1:l,p=u):c=1;const d=t.const("len",r._`${s}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,n)){let t=r._`${d} >= ${c}`;return void 0!==p&&(t=r._`${t} && ${d} <= ${p}`),void e.pass(t)}a.items=!0;const f=t.name("valid");function h(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===p?t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0).break())):(t.if(r._`${e} > ${p}`,(()=>t.assign(f,!1).break())),1===c?t.assign(f,!0):t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0))))}(n)))))}function m(n,r){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===p&&1===c?m(f,(()=>t.if(f,(()=>t.break())))):0===c?(t.let(f,!0),void 0!==p&&t.if(r._`${s}.length > 0`,h)):(t.let(f,!1),h()),e.result(f,(()=>e.reset()))}};t.default=o},36469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(15256),i=n(5330),o=n(5076);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e}, - missingProperty: ${i}, - depsCount: ${t}, - deps: ${n}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const l=(0,o.propertyInData)(n,i,c,s.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),s.allErrors?n.if(l,(()=>{for(const t of p)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${l} && (${(0,o.checkMissingProp)(e,p,a)})`),(0,o.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:s,it:a}=e,c=n.name("valid");for(const p in t)(0,i.alwaysValidSchema)(a,t[p])||(n.if((0,o.propertyInData)(n,r,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},97741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36469),i={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,r.validateSchemaDeps)(e)};t.default=i},98257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),c=s(o,"else");if(!a&&!c)return;const p=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(l,u("then",n),u("else",n))}else a?t.if(l,u("then")):t.if((0,r.not)(l),u("else"));function u(n,i){return()=>{const o=e.subschema({keyword:n},l);t.assign(p,l),e.mergeValidEvaluated(o,p),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(p,(()=>e.error(!0)))}};function s(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},23343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(26202),i=n(33529),o=n(90442),s=n(71681),a=n(9939),c=n(36469),p=n(25960),l=n(79318),u=n(74147),d=n(47660),f=n(89759),h=n(95369),m=n(25768),y=n(77329),g=n(98257),v=n(79153);t.default=function(e=!1){const t=[f.default,h.default,m.default,y.default,g.default,v.default,p.default,l.default,c.default,u.default,d.default];return e?t.push(i.default,s.default):t.push(r.default,o.default),t.push(a.default),t}},90442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(15256),i=n(5330),o=n(5076),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:o,parentSchema:s,data:a,keyword:c,it:p}=e;!function(e){const{opts:r,errSchemaPath:o}=p,s=n.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(p,e,r.strictTuples)}}(s),p.opts.unevaluated&&n.length&&!0!==p.items&&(p.items=i.mergeEvaluated.items(o,n.length,p.items));const l=o.name("valid"),u=o.const("len",r._`${a}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(p,t)||(o.if(r._`${u} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},l))),e.ok(l))}))}t.validateTuple=a,t.default=s},71681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o=n(5076),s=n(26202),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},89759:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5330),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},25768:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=n,c=t.let("valid",!1),p=t.let("passing",null),l=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((n,o)=>{let a;(0,i.alwaysValidSchema)(s,n)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(r._`${l} && ${c}`).assign(c,!1).assign(p,r._`[${p}, ${o}]`).else(),t.if(l,(()=>{t.assign(c,!0),t.assign(p,o),a&&e.mergeEvaluated(a,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},47660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5076),i=n(15256),o=n(5330),s=n(5330),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:p}=e,{opts:l}=p,u=(0,r.allSchemaProperties)(n),d=u.filter((e=>(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length||d.length===u.length&&(!p.opts.unevaluated||!0===p.props))return;const f=l.strictSchema&&!l.allowMatchingProperties&&c.properties,h=t.name("valid");!0===p.props||p.props instanceof i.Name||(p.props=(0,s.evaluatedPropsToName)(t,p.props));const{props:m}=p;function y(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",a,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=d.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:s.Type.Str},h),p.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||p.allErrors||t.if((0,i.not)(h),(()=>t.break()))}))}))}!function(){for(const e of u)f&&y(e),p.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=a},33529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90442),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},74147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(85784),i=n(5076),o=n(5330),s=n(79318),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new r.KeywordCxt(p,s.default,"additionalProperties"));const l=(0,i.allSchemaProperties)(n);for(const e of l)p.definedProperties.add(e);p.opts.unevaluated&&l.length&&!0!==p.props&&(p.props=o.mergeEvaluated.props(t,(0,o.toHash)(l),p.props));const u=l.filter((e=>!(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length)return;const d=t.name("valid");for(const n of u)f(n)?h(n):(t.if((0,i.propertyInData)(t,c,n,p.opts.ownProperties)),h(n),p.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function f(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},25960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,n))return;const a=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=o},79153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5330),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},5076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(15256),i=n(5330),o=n(21035),s=n(5330);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function p(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(c(e,t,n))):o}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(p(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(p(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${c(e,t,n)}`:o},t.noPropertyInData=p,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:s,errorPath:a},it:c},p,l,u){const d=u?r._`${e}, ${t}, ${i}${s}`:t,f=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=r._`${d}, ${n.object(...f)}`;return l!==r.nil?r._`${p}.call(${l}, ${h})`:r._`${p}(${h})`};const u=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===o.code?u:(0,s.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(s){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},a),t.if((0,r.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,r.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},51894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},49752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(51894),i=n(97215),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},97215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(22952),i=n(5076),o=n(15256),s=n(21035),a=n(6268),c=n(5330),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:s,schemaEnv:c,validateName:p,opts:d,self:f}=i,{root:h}=c;if(("#"===n||"#/"===n)&&s===h.baseId)return function(){if(c===h)return u(e,p,c,c.$async);const n=t.scopeValue("root",{ref:h});return u(e,o._`${n}.validate`,h,h.$async)}();const m=a.resolveRef.call(f,h,s,n);if(void 0===m)throw new r.default(i.opts.uriResolver,s,n);return m instanceof a.SchemaEnv?function(t){const n=l(e,t);u(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===d.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),s=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function l(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function u(e,t,n,r){const{gen:a,it:p}=e,{allErrors:l,schemaEnv:u,opts:d}=p,f=d.passContext?s.default.this:o.nil;function h(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function m(e){var t;if(!p.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(r&&!r.dynamicProps)void 0!==r.props&&(p.props=c.mergeEvaluated.props(a,r.props,p.props));else{const t=a.var("props",o._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,o.Name)}if(!0!==p.items)if(r&&!r.dynamicItems)void 0!==r.items&&(p.items=c.mergeEvaluated.items(a,r.items,p.items));else{const t=a.var("items",o._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,o.Name)}}r?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),m(t),l||a.assign(n,!0)}),(e=>{a.if(o._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),h(e),l||a.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,f),(()=>m(t)),(()=>h(t)))}t.getValidate=l,t.callRef=u,t.default=p},44459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(86952),o=n(6268),s=n(5330),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:p}=e,{oneOf:l}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=a.propertyName;if("string"!=typeof u)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),f=t.const("tag",r._`${n}${(0,r.getProperty)(u)}`);function h(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${f} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(c);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:u}))),e.ok(d)}};t.default=a},86952:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},22884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(49752),i=n(25519),o=n(23343),s=n(62029),a=n(21651),c=n(37810),p=n(32665),l=n(24283),u=[s.default,r.default,i.default,(0,o.default)(!0),p.default,l.metadataVocabulary,l.contentVocabulary,a.default,c.default];t.default=u},95117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(49752),i=n(25519),o=n(23343),s=n(32665),a=n(24283),c=[r.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},85306:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicAnchor=void 0;const r=n(15256),i=n(21035),o=n(6268),s=n(97215),a={keyword:"$dynamicAnchor",schemaType:"string",code:e=>c(e,e.schema)};function c(e,t){const{gen:n,it:a}=e;a.schemaEnv.root.dynamicAnchors[t]=!0;const c=r._`${i.default.dynamicAnchors}${(0,r.getProperty)(t)}`,p="#"===a.errSchemaPath?a.validateName:function(e){const{schemaEnv:t,schema:n,self:r}=e.it,{root:i,baseId:a,localRefs:c,meta:p}=t.root,{schemaId:l}=r.opts,u=new o.SchemaEnv({schema:n,schemaId:l,root:i,baseId:a,localRefs:c,meta:p});return o.compileSchema.call(r,u),(0,s.getValidate)(e,u)}(e);n.if(r._`!${c}`,(()=>n.assign(c,p)))}t.dynamicAnchor=c,t.default=a},41890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicRef=void 0;const r=n(15256),i=n(21035),o=n(97215),s={keyword:"$dynamicRef",schemaType:"string",code:e=>a(e,e.schema)};function a(e,t){const{gen:n,keyword:s,it:a}=e;if("#"!==t[0])throw new Error(`"${s}" only supports hash fragment reference`);const c=t.slice(1);if(a.allErrors)p();else{const t=n.let("valid",!1);p(t),e.ok(t)}function p(e){if(a.schemaEnv.root.dynamicAnchors[c]){const t=n.let("_v",r._`${i.default.dynamicAnchors}${(0,r.getProperty)(c)}`);n.if(t,l(t,e),l(a.validateName,e))}else l(a.validateName,e)()}function l(t,r){return r?()=>n.block((()=>{(0,o.callRef)(e,t),n.let(r,!0)})):()=>(0,o.callRef)(e,t)}}t.dynamicRef=a,t.default=s},62029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(85306),i=n(41890),o=n(25783),s=n(7017),a=[r.default,i.default,o.default,s.default];t.default=a},25783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(85306),i=n(5330),o={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,r.dynamicAnchor)(e,""):(0,i.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};t.default=o},7017:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41890),i={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,r.dynamicRef)(e,e.schema)};t.default=i},78394:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:s,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:l,schemaEnv:u,self:d}=c;p.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:p.code.formats}),s=n.const("fDef",r._`${o}[${a}]`),c=n.let("fType"),l=n.let("format");n.if(r._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>n.assign(c,r._`${s}.type || "string"`).assign(l,r._`${s}.validate`)),(()=>n.assign(c,r._`"string"`).assign(l,s))),e.fail$data((0,r.or)(!1===p.strictSchema?r.nil:r._`${a} && !${l}`,function(){const e=u.$async?r._`(${s}.async ? await ${l}(${i}) : ${l}(${i}))`:r._`${l}(${i})`,n=r._`(typeof ${l} == "function" ? ${e} : ${l}.test(${i}))`;return r._`${l} && ${l} !== true && ${c} === ${t} && !${n}`}()))}():function(){const o=d.formats[s];if(!o)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${l}"`}d.logger.warn(e())}();if(!0===o)return;const[a,c,f]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):p.code.formats?r._`${p.code.formats}${(0,r.getProperty)(s)}`:void 0,i=n.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return r._`await ${f}(${i})`}return"function"==typeof c?r._`${f}(${i})`:r._`${f}.test(${i})`}())}())}};t.default=i},32665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(78394).default];t.default=r},24283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},21651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(20570),i=n(97741),o=n(37601),s=[r.default,i.default,o.default];t.default=s},37810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(33828),i=n(99647),o=[r.default,i.default];t.default=o},99647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{gen:t,schema:n,data:o,it:s}=e,a=s.items||0;if(!0===a)return;const c=t.const("len",r._`${o}.length`);if(!1===n)e.setParams({len:a}),e.fail(r._`${c} > ${a}`);else if("object"==typeof n&&!(0,i.alwaysValidSchema)(s,n)){const n=t.var("valid",r._`${c} <= ${a}`);t.if((0,r.not)(n),(()=>function(n,o){t.forRange("i",o,c,(o=>{e.subschema({keyword:"unevaluatedItems",dataProp:o,dataPropType:i.Type.Num},n),s.allErrors||t.if((0,r.not)(n),(()=>t.break()))}))}(n,a))),e.ok(n)}s.items=!0}};t.default=o},33828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o=n(21035),s={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:e})=>r._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},code(e){const{gen:t,schema:n,data:s,errsCount:a,it:c}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:p,props:l}=c;function u(o){if(!1===n)return e.setParams({unevaluatedProperty:o}),e.error(),void(p||t.break());if(!(0,i.alwaysValidSchema)(c,n)){const n=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:o,dataPropType:i.Type.Str},n),p||t.if((0,r.not)(n),(()=>t.break()))}}l instanceof r.Name?t.if(r._`${l} !== true`,(()=>t.forIn("key",s,(e=>t.if(function(e,t){return r._`!${e} || !${e}[${t}]`}(l,e),(()=>u(e))))))):!0!==l&&t.forIn("key",s,(e=>void 0===l?u(e):t.if(function(e,t){const n=[];for(const i in e)!0===e[i]&&n.push(r._`${t} !== ${i}`);return(0,r.and)(...n)}(l,e),(()=>u(e))))),c.props=!0,e.ok(r._`${a} === ${o.default.errors}`)}};t.default=s},89928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o=n(49787),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=s},20570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36469),i={keyword:"dependentRequired",type:"object",schemaType:"object",error:r.error,code:e=>(0,r.validatePropertyDeps)(e)};t.default=i},73116:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o=n(49787),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:s,schema:a,schemaCode:c,it:p}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=p.opts.loopEnum;let u;const d=()=>null!=u?u:u=(0,i.useFunc)(t,o.default);let f;if(l||s)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",c,(e=>t.if(r._`${d()}(${n}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);f=(0,r.or)(...a.map(((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?r._`${d()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(f)}};t.default=s},25519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67894),i=n(15930),o=n(34593),s=n(5863),a=n(13787),c=n(34554),p=n(50632),l=n(96258),u=n(89928),d=n(73116),f=[r.default,i.default,o.default,s.default,a.default,c.default,p.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,d.default];t.default=f},37601:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5330),i={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:n}){void 0===t.contains&&(0,r.checkStrictMode)(n,`"${e}" without "contains" is ignored`)}};t.default=i},50632:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},34593:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=n(5330),o=n(91911),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,p=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${p} ${c} ${s}`)}};t.default=s},67894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=a},13787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},15930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15256),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),c=s?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${i} === 0 || (${a} = ${n}/${i}, ${c}))`)}};t.default=i},5863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5076),i=n(15256),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=n?i._`(new RegExp(${s}, ${c}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${p}.test(${t})`)}};t.default=o},34554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5076),i=n(15256),o=n(5330),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:s,data:a,$data:c,it:p}=e,{opts:l}=p;if(!c&&0===n.length)return;const u=n.length>=l.loopRequired;if(p.allErrors?function(){if(u||c)e.block$data(i.nil,d);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(u||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,s,(()=>{t.assign(o,(0,r.propertyInData)(t,a,n,l.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(p,t,p.opts.strictRequired)}}function d(){t.forOf("prop",s,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,l.ownProperties),(()=>e.error()))}))}}};t.default=s},96258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(39216),i=n(15256),o=n(5330),s=n(49787),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:p,schemaCode:l,it:u}=e;if(!a&&!c)return;const d=t.let("valid"),f=p.items?(0,r.getSchemaTypes)(p.items):[];function h(o,s){const a=t.name("item"),c=(0,r.checkDataTypes)(f,a,u.opts.strictNumbers,r.DataType.Wrong),p=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(a,i._`${n}[${o}]`),t.if(c,i._`continue`),f.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(s,i._`${p}[${a}]`),e.error(),t.assign(d,!1).break()})).code(i._`${p}[${a}] = ${o}`)}))}function m(r,a){const c=(0,o.useFunc)(t,s.default),p=t.name("outer");t.label(p).for(i._`;${r}--;`,(()=>t.for(i._`${a} = ${r}; ${a}--;`,(()=>t.if(i._`${c}(${n}[${r}], ${n}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(p)}))))))}e.block$data(d,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(d,!0),t.if(i._`${r} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?h:m)(r,o)))}),i._`${l} === false`),e.ok(d)}};t.default=a},65987:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,s,a,c,p,l,u){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in r(o,s,a,c,p,l,u),o){var f=o[d];if(Array.isArray(f)){if(d in t.arrayKeywords)for(var h=0;h{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(57061);(0,r.__exportStar)(n(37657),t),(0,r.__exportStar)(n(18450),t),(0,r.__exportStar)(n(97858),t)},37657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Json=t.parseJson=void 0;const r=n(4658);t.parseJson=e=>(0,r.parseWithPointers)(e,{ignoreDuplicateKeys:!1,preserveKeyOrder:!0}),t.Json={parse:t.parseJson,getLocationForJsonPath:r.getLocationForJsonPath,trapAccess:r.trapAccess}},97858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},18450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Yaml=t.parseYaml=void 0;const r=n(98748);t.parseYaml=e=>(0,r.parseWithPointers)(e,{ignoreDuplicateKeys:!1,mergeKeys:!0,preserveKeyOrder:!0}),t.Yaml={parse:t.parseYaml,getLocationForJsonPath:r.getLocationForJsonPath,trapAccess:r.trapAccess}},83871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHttpAndFileResolver=t.ResolverDepGraph=t.Resolver=t.httpAndFileResolver=void 0;const r=n(17317),i=n(55738),o=n(60819);Object.defineProperty(t,"Resolver",{enumerable:!0,get:function(){return o.Resolver}});const s=n(91403),a=n(41815);function c(e){const t=(0,i.createResolveHttp)({...s.DEFAULT_REQUEST_OPTIONS,...e});return new o.Resolver({resolvers:{https:{resolve:t},http:{resolve:t},file:{resolve:i.resolveFile}}})}(0,r.__exportStar)(n(65927),t),t.httpAndFileResolver=c(),t.ResolverDepGraph=a.DepGraph,t.createHttpAndFileResolver=c},65927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},41815:(e,t)=>{function n(e,t,n,r){var o={};return function(s){if(!o[s]){var a={},c=[],p=[];for(p.push({node:s,processed:!1});p.length>0;){var l=p[p.length-1],u=l.processed,d=l.node;if(u)p.pop(),c.pop(),a[d]=!1,o[d]=!0,t&&0!==e[d].length||n.push(d);else{if(o[d]){p.pop();continue}if(a[d]){if(r){p.pop();continue}throw c.push(d),new i(c)}a[d]=!0,c.push(d);for(var f=e[d],h=f.length-1;h>=0;h--)p.push({node:f[h],processed:!1});l.processed=!0}}}}}var r=t.DepGraph=function(e){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=e&&!!e.circular};r.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(e,t){this.hasNode(e)||(this.nodes[e]=2===arguments.length?t:e,this.outgoingEdges[e]=[],this.incomingEdges[e]=[])},removeNode:function(e){this.hasNode(e)&&(delete this.nodes[e],delete this.outgoingEdges[e],delete this.incomingEdges[e],[this.incomingEdges,this.outgoingEdges].forEach((function(t){Object.keys(t).forEach((function(n){var r=t[n].indexOf(e);r>=0&&t[n].splice(r,1)}),this)})))},hasNode:function(e){return this.nodes.hasOwnProperty(e)},getNodeData:function(e){if(this.hasNode(e))return this.nodes[e];throw new Error("Node does not exist: "+e)},setNodeData:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);this.nodes[e]=t},addDependency:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);if(!this.hasNode(t))throw new Error("Node does not exist: "+t);return-1===this.outgoingEdges[e].indexOf(t)&&this.outgoingEdges[e].push(t),-1===this.incomingEdges[t].indexOf(e)&&this.incomingEdges[t].push(e),!0},removeDependency:function(e,t){var n;this.hasNode(e)&&(n=this.outgoingEdges[e].indexOf(t))>=0&&this.outgoingEdges[e].splice(n,1),this.hasNode(t)&&(n=this.incomingEdges[t].indexOf(e))>=0&&this.incomingEdges[t].splice(n,1)},clone:function(){var e=this,t=new r;return Object.keys(e.nodes).forEach((function(n){t.nodes[n]=e.nodes[n],t.outgoingEdges[n]=e.outgoingEdges[n].slice(0),t.incomingEdges[n]=e.incomingEdges[n].slice(0)})),t},directDependenciesOf:function(e){if(this.hasNode(e))return this.outgoingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},directDependantsOf:function(e){if(this.hasNode(e))return this.incomingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},dependenciesOf:function(e,t){if(this.hasNode(e)){var r=[];n(this.outgoingEdges,t,r,this.circular)(e);var i=r.indexOf(e);return i>=0&&r.splice(i,1),r}throw new Error("Node does not exist: "+e)},dependantsOf:function(e,t){if(this.hasNode(e)){var r=[];n(this.incomingEdges,t,r,this.circular)(e);var i=r.indexOf(e);return i>=0&&r.splice(i,1),r}throw new Error("Node does not exist: "+e)},overallOrder:function(e){var t=this,r=[],i=Object.keys(this.nodes);if(0===i.length)return r;if(!this.circular){var o=n(this.outgoingEdges,!1,[],this.circular);i.forEach((function(e){o(e)}))}var s=n(this.outgoingEdges,e,r,this.circular);return i.filter((function(e){return 0===t.incomingEdges[e].length})).forEach((function(e){s(e)})),this.circular&&i.filter((function(e){return-1===r.indexOf(e)})).forEach((function(e){s(e)})),r},entryNodes:function(){var e=this;return Object.keys(this.nodes).filter((function(t){return 0===e.incomingEdges[t].length}))}},r.prototype.directDependentsOf=r.prototype.directDependantsOf,r.prototype.dependentsOf=r.prototype.dependantsOf;var i=t.DepGraphCycleError=function(e){var t="Dependency Cycle Found: "+e.join(" -> "),n=new Error(t);return n.cyclePath=e,Object.setPrototypeOf(n,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(n,i),n};i.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(i,Error)},19358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=void 0;const r=(0,n(12979).__importDefault)(n(83300));t.DEFAULT_REQUEST_OPTIONS={},t.default=async(e,n={})=>(0,r.default)(e,{...n,...t.DEFAULT_REQUEST_OPTIONS})},91403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=t.fetch=void 0;const r=n(12979);(0,r.__exportStar)(n(83309),t);var i=n(19358);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}}),Object.defineProperty(t,"DEFAULT_REQUEST_OPTIONS",{enumerable:!0,get:function(){return i.DEFAULT_REQUEST_OPTIONS}}),(0,r.__exportStar)(n(23336),t)},23336:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readParsable=t.readFile=void 0;const r=n(12979),i=n(75966),o=(0,r.__importDefault)(n(28599)),s=(0,r.__importStar)(n(61872)),a=n(96486),c=(0,r.__importDefault)(n(19358)),p=n(78842);async function l(e,t){if((0,i.isURL)(e)){let n,r=null;try{const i={};if(i.agent=t.agent,void 0!==t.timeout){const e=new o.default;r=setTimeout((()=>{e.abort()}),t.timeout),i.signal=e.signal}if(n=await(0,c.default)(e,i),!n.ok)throw new Error(n.statusText);return await n.text()}catch(e){throw(0,a.isError)(e)&&"AbortError"===e.name?new Error("Timeout"):e}finally{null!==r&&clearTimeout(r)}}else try{return await new Promise(((n,r)=>{s.readFile(e,t.encoding,((e,t)=>{null!==e?r(e):n(t)}))}))}catch(t){throw new Error(`Could not read ${e}: ${(0,p.printError)(t)}`)}}t.readFile=l,t.readParsable=async function(e,t){try{return await l(e,t)}catch(t){throw new Error(`Could not parse ${e}: ${(0,p.printError)(t)}`)}}},37699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSegmentFragment=void 0;const r=n(4658);t.decodeSegmentFragment=function(e){return"string"!=typeof e?String(e):(0,r.decodePointerFragment)(e)}},83309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12979);(0,r.__exportStar)(n(37699),t),(0,r.__exportStar)(n(78842),t),(0,r.__exportStar)(n(28067),t),(0,r.__exportStar)(n(43115),t),(0,r.__exportStar)(n(95514),t)},78842:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printError=void 0;const r=n(96486);t.printError=function(e){return(0,r.isError)(e)?e.message:"unknown error"}},28067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPath=t.PrintStyle=void 0;const r=n(4658);var i;!function(e){e.Dot="dot",e.Pointer="pointer",e.EscapedPointer="escapedPointer"}(i=t.PrintStyle||(t.PrintStyle={}));const o=e=>"number"==typeof e?e:(0,r.decodePointerFragment)(e);t.printPath=(e,t)=>{switch(t){case i.Dot:return(0,r.decodePointerFragment)((e=>e.reduce(((e,t,n)=>{var r;return`${e}${null!==(r=(e=>{return"number"==typeof e?`[${e}]`:0===e.length?"['']":/\s/.test(e)?`['${e}']`:"number"!=typeof(t=e)&&Number.isNaN(Number(t))?null:`[${e}]`;var t})(t))&&void 0!==r?r:`${0===n?"":"."}${t}`}`}),""))(e));case i.Pointer:return 0===e.length?"#":`#/${(0,r.decodePointerFragment)(e.join("/"))}`;case i.EscapedPointer:return(0,r.pathToPointer)(e.map(o));default:return String(e)}}},43115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printValue=void 0;const r=n(96486),i=n(4658);t.printValue=function(e){return void 0===e?"undefined":(0,r.isObject)(e)?Array.isArray(e)?"Array[]":e instanceof RegExp?String(e.source):!(0,i.isPlainObject)(e)&&"constructor"in e&&"string"==typeof e.constructor.name?e.constructor.name:"Object{}":JSON.stringify(e)}},95514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClosestJsonPath=t.safePointerToPath=t.getEndRef=t.traverseObjUntilRef=t.isAbsoluteRef=t.startsWithProtocol=void 0;const r=n(4658),i=n(75966),o=n(96486),s=/^[a-z]+:\/\//i;t.startsWithProtocol=e=>s.test(e),t.isAbsoluteRef=e=>(0,i.isAbsolute)(e)||(0,t.startsWithProtocol)(e),t.traverseObjUntilRef=(e,t)=>{let n=e;for(const e of t.slice()){if(!(0,o.isObject)(n))throw new TypeError("Segment is not a part of the object");if(!(e in n)){if((0,r.hasRef)(n))return n.$ref;throw new Error("Segment is not a part of the object")}n=n[e],t.shift()}return(0,r.isPlainObject)(n)&&(0,r.hasRef)(n)&&1===Object.keys(n).length?n.$ref:null},t.getEndRef=(e,t)=>{for(;t in e;)t=e[t];return t},t.safePointerToPath=e=>{const t=(0,r.extractPointerFromRef)(e);return null!==t?(0,r.pointerToPath)(t):[]},t.getClosestJsonPath=(e,t)=>{const n=[];if(!(0,o.isObject)(e))return n;let r=e;for(const e of t){if(!(0,o.isObject)(r)||!(e in r))break;n.push(e),r=r[e]}return n}},64369:(e,t)=>{"use strict";function n(e){return null==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNothing=n,t.isObject=function(e){return"object"==typeof e&&null!==e},t.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},t.extend=function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64369),i=n(14057),o=n(18707),s=n(71225),a=Object.prototype.toString,c=Object.prototype.hasOwnProperty,p=9,l=10,u=13,d=32,f=33,h=34,m=35,y=37,g=38,v=39,b=42,_=44,$=45,w=58,j=61,x=62,S=63,P=64,E=91,O=93,T=96,k=123,A=124,I=125,N={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},R=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function M(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+r.repeat("0",o-t.length)+t}function C(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,o,s,a,p;if(null===t)return{};for(n={},i=0,o=(r=Object.keys(t)).length;i-1&&n>=e.flowLevel;switch(function(e,t,n,r,i){var o,s,a,c,p=!1,u=!1,d=-1!==r,N=-1,R=U(c=e.charCodeAt(0))&&65279!==c&&!F(c)&&c!==$&&c!==S&&c!==w&&c!==_&&c!==E&&c!==O&&c!==k&&c!==I&&c!==m&&c!==g&&c!==b&&c!==f&&c!==A&&c!==j&&c!==x&&c!==v&&c!==h&&c!==y&&c!==P&&c!==T&&!F(e.charCodeAt(e.length-1));if(t)for(o=0;o0?e.charCodeAt(o-1):null,R=R&&V(s,a)}else{for(o=0;or&&" "!==e[N+1],N=o);else if(!U(s))return G;a=o>0?e.charCodeAt(o-1):null,R=R&&V(s,a)}u=u||d&&o-N-1>r&&" "!==e[N+1]}return p||u?n>9&&L(e)?G:u?H:K:R&&!i(e)?z:B}(t,a,e.indent,s,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+J(t,e.indent)+Q(D(function(e,t){for(var n,r,i,o=/(\n+)([^\n]*)/g,s=(i=-1!==(i=e.indexOf("\n"))?i:e.length,o.lastIndex=i,Z(e.slice(0,i),t)),a="\n"===e[0]||" "===e[0];r=o.exec(e);){var c=r[1],p=r[2];n=" "===p[0],s+=c+(a||n||""===p?"":"\n")+Z(p,t),a=n}return s}(t,s),o));case G:return'"'+function(e){for(var t,n,r,i="",o=0;o=55296&&t<=56319&&(n=e.charCodeAt(o+1))>=56320&&n<=57343?(i+=M(1024*(t-55296)+n-56320+65536),o++):i+=!(r=N[t])&&U(t)?e[o]:r||M(t);return i}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function J(e,t){var n=L(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function Q(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Z(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,s=0,a=0,c="";n=i.exec(e);)(a=n.index)-o>t&&(r=s>o?s:a,c+="\n"+e.slice(o,r),o=r+1),s=a;return c+="\n",e.length-o>t&&s>o?c+=e.slice(o,s)+"\n"+e.slice(s+1):c+=e.slice(o),c.slice(1)}function Y(e,t,n){var r,o,s,p,l,u;for(s=0,p=(o=n?e.explicitTypes:e.implicitTypes).length;s tag resolver accepts not "'+u+'" style');r=l.represent[u](t,u)}e.dump=r}return!0}return!1}function X(e,t,n,r,o,s){e.tag=null,e.dump=n,Y(e,n,!1)||Y(e,n,!0);var c=a.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var p,u,d="[object Object]"===c||"[object Array]"===c;if(d&&(u=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||u||2!==e.indent&&t>0)&&(o=!1),u&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&u&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===c)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var o,s,a,c,p,u,d="",f=e.tag,h=Object.keys(n);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(o=0,s=h.length;o1024)&&(e.dump&&l===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,p&&(u+=q(e,t)),X(e,t+1,c,!0,p)&&(e.dump&&l===e.dump.charCodeAt(0)?u+=":":u+=": ",d+=u+=e.dump));e.tag=f,e.dump=d||"{}"}(e,t,e.dump,o),u&&(e.dump="&ref_"+p+e.dump)):(function(e,t,n){var r,i,o,s,a,c="",p=e.tag,l=Object.keys(n);for(r=0,i=l.length;r1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),X(e,t,s,!1,!1)&&(c+=a+=e.dump));e.tag=p,e.dump="{"+c+"}"}(e,t,e.dump),u&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===c){var f=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(function(e,t,n,r){var i,o,s="",a=e.tag;for(i=0,o=n.length;i "+e.dump)}return!0}function ee(e,t){var n,r,i=[],o=[];for(te(e,i,o),n=0,r=o.length;n{"use strict";class t{constructor(e,t=null,n=!1){this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1),this.isWarning=n}static isInstance(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(let n of e.getClassIdentifier())if(n==t.CLASS_IDENTIFIER)return!0;return!1}getClassIdentifier(){return[].concat(t.CLASS_IDENTIFIER)}toString(e=!1){var t;return t="JS-YAML: "+(this.reason||"(unknown reason)"),!e&&this.mark&&(t+=" "+this.mark.toString()),t}}t.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e.exports=t},9581:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var i=n(75519);t.load=i.load,t.loadAll=i.loadAll,t.safeLoad=i.safeLoad,t.safeLoadAll=i.safeLoadAll;var o=n(14991);t.dump=o.dump,t.safeDump=o.safeDump,t.YAMLException=n(14057),r(n(83382)),r(n(66133))},75519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(83382),i=n(64369),o=n(14057),s=n(73887),a=n(71225),c=n(18707);var p=Object.prototype.hasOwnProperty,l=1,u=2,d=3,f=4,h=1,m=2,y=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=/[\x85\u2028\u2029]/,b=/[,\[\]\{\}]/,_=/^(?:!|!!|![a-z\-]+!)$/i,$=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function w(e){return 10===e||13===e}function j(e){return 9===e||32===e}function x(e){return 9===e||32===e||10===e||13===e}function S(e){return 44===e||91===e||93===e||123===e||125===e}function P(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function E(e){return 120===e?2:117===e?4:85===e?8:0}function O(e){return 48<=e&&e<=57?e-48:-1}function T(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var k,A=new Array(256),I=new Array(256),N=new Array(256),R=new Array(256),M=0;M<256;M++)R[M]=I[M]=48===(k=M)?"\0":97===k?"":98===k?"\b":116===k||9===k?"\t":110===k?"\n":118===k?"\v":102===k?"\f":114===k?"\r":101===k?"":32===k?" ":34===k?'"':47===k?"/":92===k?"\\":78===k?"…":95===k?" ":76===k?"\u2028":80===k?"\u2029":"",A[M]=I[M]?1:0,N[M]=1,A[M]||(R[M]="\\"+String.fromCharCode(M));class C{constructor(e,t){this.errorMap={},this.errors=[],this.lines=[],this.input=e,this.filename=t.filename||null,this.schema=t.schema||c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.allowAnyEscape=t.allowAnyEscape||!1,this.ignoreDuplicateKeys=t.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}}function D(e,t,n=!1){return new o(t,new s(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function q(e,t,n,r=!1,i=!1){var a=function(e,t){for(var n,r=0;rt);r++)n=e.lines[r];return n||{start:0,line:0}}(e,t);if(a){var c=n+t;if(!e.errorMap[c]){var p=new s(e.filename,e.input,t,a.line,t-a.start);i&&(p.toLineEnd=!0);var l=new o(n,p,r);e.errors.push(l)}}}function F(e,t){var n=D(e,t),r=n.message+n.mark.position;if(!e.errorMap[r]){e.errors.push(n),e.errorMap[r]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if("\n"==o)return e.position--,void(e.position==i&&(e.position+=1));if("\r"==o)return e.position--,void(e.position==i&&(e.position+=1));e.position++}}}function U(e,t){var n=D(e,t);e.onWarning&&e.onWarning.call(null,n)}var V={YAML:function(e,t,n){var r,i,o;null!==e.version&&F(e,"duplication of %YAML directive"),1!==n.length&&F(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&F(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&F(e,"found incompatible YAML document (version 1.2 is required)"),e.version=n[0],e.checkLineBreaks=o<2,2!==o&&F(e,"found incompatible YAML document (version 1.2 is required)")},TAG:function(e,t,n){var r,i;2!==n.length&&F(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],_.test(r)||F(e,"ill-formed tag handle (first argument) of the TAG directive"),p.call(e.tagMap,r)&&F(e,'there is a previously declared suffix for "'+r+'" tag handle'),$.test(i)||F(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=i}};function L(e,t,n,r){var i,o,s,a,c=e.result;if(-1==c.startPosition&&(c.startPosition=t),t<=n){if(a=e.input.slice(t,n),r)for(i=0,o=a.length;i{t.key&&t.key.value===(s.key&&s.key.value)&&(q(e,s.key.startPosition,"duplicate key"),q(e,t.key.startPosition,"duplicate key"))})),t.mappings.push(s),t.endPosition=o?o.endPosition:i.endPosition+1,t}}function B(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):F(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function K(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;j(i);)9===i&&e.errors.push(D(e,"Using tabs can lead to unpredictable results",!0)),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!w(i))break;for(B(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent1&&(t.value+=i.repeat("\n",n-1))}function W(e,t){var n,i,o=e.tag,s=e.anchor,a=r.newItems(),c=!1;for(null!==e.anchor&&(a.anchorId=e.anchor,e.anchorMap[e.anchor]=a),a.startPosition=e.position,i=e.input.charCodeAt(e.position);0!==i&&45===i&&x(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,K(e,!0,-1)&&e.lineIndent<=t)a.items.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,Z(e,t,d,!1,!0),e.result&&(e.result.parent=a,a.items.push(e.result)),K(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)F(e,"bad indentation of a sequence entry");else if(e.lineIndentt?M=1:e.lineIndent===t?M=0:e.lineIndentt?M=1:e.lineIndent===t?M=0:e.lineIndent0;)if(w(a=e.input.charCodeAt(--e.position))){e.position++;break}}}else 63===a?(m&&(z(e,l,0,d,null),d=h=null),y=!0,m=!0,o=!0):m?(m=!1,o=!0):F(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,a=i;if((e.line===s||e.lineIndent>t)&&(Z(e,t,f,!0,o)&&(m?d=e.result:h=e.result),m||(z(e,l,0,d,h),d=h=null),K(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)F(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===s?F(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?F(e,"repeat of an indentation width identifier"):(l=t+s-1,p=!0)}if(j(a)){do{a=e.input.charCodeAt(++e.position)}while(j(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!w(a)&&0!==a)}for(;0!==a;){for(B(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!p||e.lineIndentl&&(l=e.lineIndent),w(a))u++;else{if(e.lineIndent0){for(o=a,s=0;o>0;o--)(a=P(c=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+a:F(e,"expected hexadecimal character");p.value+=T(s),e.position++}else F(e,"unknown escape sequence");n=i=e.position}else w(c)?(L(e,n,i,!0),G(0,p,K(e,!1,t)),n=i=e.position):e.position===e.lineStart&&H(e)?F(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}F(e,"unexpected end of the stream within a double quoted scalar")}(e,$)?D=!0:function(e){var t,n,i;if(e.length,e.input,42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!x(i)&&!S(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(F(e,"name of an alias node must contain at least one character"),e.position=t+1),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||(F(e,'unidentified alias "'+n+'"'),e.position<=t&&(e.position=t+1)),e.result=r.newAnchorRef(n,t,e.position,e.anchorMap[n]),K(e,!0,-1),!0}(e)?(D=!0,null===e.tag&&null===e.anchor||F(e,"alias node should not have any properties")):function(e,t,n){var i,o,s,a,c,p,l,u,d=e.kind,f=e.result,h=r.newScalar();if(h.plainScalar=!0,e.result=h,x(u=e.input.charCodeAt(e.position))||S(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(x(i=e.input.charCodeAt(e.position+1))||n&&S(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;0!==u;){if(58===u){if(x(i=e.input.charCodeAt(e.position+1))||n&&S(i))break}else if(35===u){if(x(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&H(e)||n&&S(u))break;if(w(u)){if(c=e.line,p=e.lineStart,l=e.lineIndent,K(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=s,e.line=c,e.lineStart=p,e.lineIndent=l;break}}if(a&&(L(e,o,s,!1),G(0,h,e.line-c),o=s=e.position,a=!1),j(u)||(s=e.position+1),u=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return L(e,o,s,!1),-1!=e.result.startPosition?(h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0):(e.kind=d,e.result=f,!1)}(e,$,l===n)&&(D=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):0===M&&(D=g&&W(e,k))),null!==e.tag&&"!"!==e.tag)if("!include"==e.tag)e.result||(e.result=r.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,F(e,"!include without value")),e.result.kind=r.Kind.INCLUDE_REF;else if("?"===e.tag)for(v=0,b=e.implicitTypes.length;v tag; it should be "'+_.kind+'", not "'+e.kind+'"'),_.resolve(e.result)?(e.result=_.construct(e.result),null!==e.anchor&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):F(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):q(e,U,"unknown tag <"+e.tag+">",!1,!0);return null!==e.tag||null!==e.anchor||D}function Y(e){var t,n,r,i,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(K(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!x(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&F(e,"directive name must not be less than one character in length");0!==i;){for(;j(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!w(i));break}if(w(i))break;for(t=e.position;0!==i&&!x(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&B(e),p.call(V,n)?V[n](e,n,r):(U(e,'unknown document directive "'+n+'"'),e.position++)}K(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,K(e,!0,-1)):s&&F(e,"directives end mark is expected"),Z(e,e.lineIndent-1,f,!1,!0),K(e,!0,-1),e.checkLineBreaks&&v.test(e.input.slice(o,e.position))&&U(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&H(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,K(e,!0,-1)):e.position0&&(o[s-1].endPosition=n);for(let e of o)e.errors=r.errors,e.startPosition>e.endPosition&&(e.startPosition=e.endPosition);return o}function ee(e,t,n={}){var r,i,o=X(e,n);for(r=0,i=o.length;r{"use strict";const r=n(64369);e.exports=class{constructor(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}getSnippet(e=0,t=75){var n,i,o,s,a;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;st/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),r.repeat(" ",e)+n+a+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"}toString(e=!0){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n}}},66133:(e,t)=>{"use strict";function n(e){const t=function(e){return 0===e.lastIndexOf("0o",0)?parseInt(e.substring(2),8):parseInt(e)}(e);if(Number.isNaN(t))throw`Invalid integer "${e}"`;return t}var r;Object.defineProperty(t,"__esModule",{value:!0}),t.parseYamlBoolean=function(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`},t.parseYamlInteger=n,t.parseYamlBigInteger=function(e){const t=n(e);return t>Number.MAX_SAFE_INTEGER&&-1===e.lastIndexOf("0o",0)?BigInt(e):t},t.parseYamlFloat=function(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;const t=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(t)return"-"===t[1]?-1/0:1/0;const n=parseFloat(e);if(!isNaN(n))return n;throw`Invalid float "${e}"`},function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"}(r=t.ScalarType||(t.ScalarType={})),t.determineScalarType=function(e){if(void 0===e)return r.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return r.string;const t=e.value;return["null","Null","NULL","~",""].indexOf(t)>=0||null==t?r.null:["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0?r.bool:/^[-+]?[0-9]+$/.test(t)||/^0o[0-7]+$/.test(t)||/^0x[0-9a-fA-F]+$/.test(t)?r.int:/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/.test(t)||/^[-+]?(\.inf|\.Inf|\.INF)$/.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?r.float:r.string}},93463:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64369),i=n(14057),o=n(57947);function s(e,t,n){var r=[];return e.include.forEach((function(e){n=s(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}class a{constructor(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={};function r(e){n[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";const r=n(93463);e.exports=new r.Schema({include:[n(66315)]})},18707:(e,t,n)=>{"use strict";const r=n(93463);var i=new r.Schema({include:[n(71225)],explicit:[n(30389),n(73592)]});r.Schema.DEFAULT=i,e.exports=i},71225:(e,t,n)=>{"use strict";var r=new(n(93463).Schema)({include:[n(68644)],implicit:[n(55973),n(35665)],explicit:[n(27841),n(28364),n(67064),n(52978)]});e.exports=r},79215:(e,t,n)=>{"use strict";const r=n(93463);e.exports=new r.Schema({explicit:[n(38930),n(37017),n(73865)]})},66315:(e,t,n)=>{"use strict";const r=n(93463);e.exports=new r.Schema({include:[n(79215)],implicit:[n(90082),n(17586),n(20583),n(46109)]})},57947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(14057);var i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];t.Type=class{constructor(e,t){var n,s;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,s={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){s[String(t)]=e}))})),s),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}},27841:(e,t,n)=>{"use strict";var r=n(48764).Buffer;const i=n(57947);var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new i.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,s=o;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),s=i.length,a=o,c=0,p=[];for(t=0;t>16&255),p.push(c>>8&255),p.push(255&c)),c=c<<6|a.indexOf(i.charAt(t));return 0==(n=s%4*6)?(p.push(c>>16&255),p.push(c>>8&255),p.push(255&c)):18===n?(p.push(c>>10&255),p.push(c>>2&255)):12===n&&p.push(c>>4&255),r?new r(p):p},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",i=0,s=e.length,a=o;for(t=0;t>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]),i=(i<<8)+e[t];return 0==(n=s%3)?(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]):2===n?(r+=a[i>>10&63],r+=a[i>>4&63],r+=a[i<<2&63],r+=a[64]):1===n&&(r+=a[i>>2&63],r+=a[i<<4&63],r+=a[64],r+=a[64]),r}})},17586:(e,t,n)=>{"use strict";const r=n(57947);e.exports=new r.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},46109:(e,t,n)=>{"use strict";const r=n(64369),i=n(57947);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");e.exports=new i.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!o.test(e)},construct:function(e){var t,n,r,i;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:0<=t.indexOf(":")?(t.split(":").forEach((function(e){i.unshift(parseFloat(e,10))})),t=0,r=1,i.forEach((function(e){t+=e*r,r*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(0!=e%1||r.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return e.toString(10)},defaultStyle:"lowercase"})},20583:(e,t,n)=>{"use strict";const r=n(64369),i=n(57947);function o(e){return 48<=e&&e<=55}function s(e){return 48<=e&&e<=57}e.exports=new i.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,a=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i{"use strict";const r=n(57947);e.exports=new r.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1;t=t.slice(1,t.length-r.length-1)}try{return new RegExp(t,r),!0}catch(e){return!1}},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},30389:(e,t,n)=>{"use strict";const r=n(57947);e.exports=new r.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},73865:(e,t,n)=>{"use strict";const r=n(57947);e.exports=new r.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},35665:(e,t,n)=>{"use strict";const r=n(57947);e.exports=new r.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},90082:(e,t,n)=>{"use strict";const r=n(57947);e.exports=new r.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},28364:(e,t,n)=>{"use strict";const r=n(57947);var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new r.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,s,a,c=[],p=e;for(t=0,n=p.length;t{"use strict";const r=n(57947),i=n(83382);var o=Object.prototype.toString;e.exports=new r.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;if(e.kind!=i.Kind.SEQ)return!1;var t,n,r,s=e.items;for(t=0,n=s.length;t{"use strict";const r=n(57947);e.exports=new r.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},52978:(e,t,n)=>{"use strict";const r=n(57947),i=n(83382);Object.prototype.hasOwnProperty,e.exports=new r.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){return null===e||e.kind==i.Kind.MAP},construct:function(e){return null!==e?e:{}}})},38930:(e,t,n)=>{"use strict";const r=n(57947);e.exports=new r.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},55973:(e,t,n)=>{"use strict";const r=n(57947);var i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");e.exports=new r.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&null!==i.exec(e)},construct:function(e){var t,n,r,o,s,a,c,p,l=0,u=null;if(null===(t=i.exec(e)))throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),p=new Date(Date.UTC(n,r,o,s,a,c,l)),u&&p.setTime(p.getTime()-u),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},83382:(e,t)=>{"use strict";var n;function r(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:n.SEQ,parent:null}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"}(n=t.Kind||(t.Kind={})),t.newMapping=function(e,t){var r=t?t.endPosition:e.endPosition+1;return{key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:n.MAPPING,parent:null,errors:[]}},t.newAnchorRef=function(e,t,r,i){return{errors:[],referencesAnchor:e,value:i,startPosition:t,endPosition:r,kind:n.ANCHOR_REF,parent:null}},t.newScalar=function(e=""){const t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:n.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return"string"!=typeof e&&(t.valueObject=e),t},t.newItems=r,t.newSeq=function(){return r()},t.newMap=function(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:n.MAP,parent:null}}},81728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70517),i=n(14042);t.buildJsonPath=function(e){const t=[];let n=e;for(;e;){switch(e.kind){case r.Kind.SCALAR:t.unshift(e.value);break;case r.Kind.MAPPING:n!==e.key&&(t.length>0&&i.isObject(e.value)&&e.value.value===t[0]?t[0]=e.key.value:t.unshift(e.key.value));break;case r.Kind.SEQ:if(n){const i=e.items.indexOf(n);n.kind===r.Kind.SCALAR?t[0]=i:-1!==i&&t.unshift(i)}}n=e,e=e.parent}return t}},91919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70517),i=n(14042);t.dereferenceAnchor=(e,n)=>{if(!i.isObject(e))return e;if(e.kind===r.Kind.ANCHOR_REF&&e.referencesAnchor===n)return null;switch(e.kind){case r.Kind.MAP:return Object.assign({},e,{mappings:e.mappings.map((e=>t.dereferenceAnchor(e,n)))});case r.Kind.SEQ:return Object.assign({},e,{items:e.items.map((e=>t.dereferenceAnchor(e,n)))});case r.Kind.MAPPING:return Object.assign({},e,{value:t.dereferenceAnchor(e.value,n)});case r.Kind.SCALAR:return e;case r.Kind.ANCHOR_REF:return i.isObject(e.value)&&o(e)?null:e;default:return e}};const o=e=>{const{referencesAnchor:t}=e;let n=e;for(;n=n.parent;)if("anchorId"in n&&n.anchorId===t)return!0;return!1}},99169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(81728),i=n(70517),o=n(14042);function s(e,t,n){const r=n[t-1]+1,o=n[t];switch(e.kind){case i.Kind.MAPPING:return e.key;case i.Kind.MAP:if(0!==e.mappings.length)for(const i of e.mappings)if(i.startPosition>r&&i.startPosition<=o)return s(i,t,n);break;case i.Kind.SEQ:if(0!==e.items.length)for(const i of e.items)if(null!==i&&i.startPosition>r&&i.startPosition<=o)return s(i,t,n)}return e}function a(e,t,n,r){for(const s of function*(e){switch(e.kind){case i.Kind.MAP:if(0!==e.mappings.length)for(const t of e.mappings)o.isObject(t)&&(yield t);break;case i.Kind.MAPPING:o.isObject(e.key)&&(yield e.key),o.isObject(e.value)&&(yield e.value);break;case i.Kind.SEQ:if(0!==e.items.length)for(const t of e.items)o.isObject(t)&&(yield t);break;case i.Kind.SCALAR:yield e}}(e))if(s.startPosition<=t&&t<=s.endPosition)return s.kind===i.Kind.SCALAR?s:a(s,t,n,r);if(r[n-1]===r[n]-1)return e;if(e.startPosition{if(n>=t.length||i>=t[n])return;const s=0===n?0:t[n-1]+1,c=a(e,Math.min(t[n]-1,s+i),n,t);if(!o.isObject(c))return;const p=r.buildJsonPath(c);return 0!==p.length?p:void 0}},6465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3661),i=n(70517),o=n(14042);function s(e,t){if(e.parent&&e.parent.kind===i.Kind.MAPPING){if(null===e.parent.value)return e.parent.endPosition;if(e.kind!==i.Kind.SCALAR)return e.parent.key.endPosition+1}return null===e.parent&&t-e.startPosition==0?0:e.startPosition}function a(e){switch(e.kind){case i.Kind.SEQ:const{items:t}=e;if(0!==t.length){const e=t[t.length-1];if(null!==e)return a(e)}break;case i.Kind.MAPPING:if(null!==e.value)return a(e.value);break;case i.Kind.MAP:if(null!==e.value&&0!==e.mappings.length)return a(e.mappings[e.mappings.length-1]);break;case i.Kind.SCALAR:if(null!==e.parent&&e.parent.kind===i.Kind.MAPPING&&null===e.parent.value)return e.parent.endPosition}return e.endPosition}function c(e,t){return t?e.reduce(((e,t)=>(o.isObject(t)&&("<<"===t.key.value?e.push(...p(t.value)):e.push(t)),e)),[]):e}function p(e){if(!o.isObject(e))return[];switch(e.kind){case i.Kind.SEQ:return e.items.reduceRight(((e,t)=>(e.push(...p(t)),e)),[]);case i.Kind.MAP:return e.mappings;case i.Kind.ANCHOR_REF:return p(e.value);default:return[]}}t.getLocationForJsonPath=({ast:e,lineMap:t,metadata:n},r,p=!1)=>{const u=function(e,t,{closest:n,mergeKeys:r}){e:for(const s of t){if(!o.isObject(e))return n?e:void 0;switch(e.kind){case i.Kind.MAP:const t=c(e.mappings,r);for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.key.value===s){e=null===r.value?r.key:r.value;continue e}}return n?e:void 0;case i.Kind.SEQ:for(let t=0;t0?t[0]:0),end:a(u)})};const l=(e,{start:t=0,end:n=0})=>{const i=r.lineForPosition(t,e),o=r.lineForPosition(n,e);return{range:{start:{line:i,character:t-(0===i?0:e[i-1])},end:{line:o,character:n-(0===o?0:e[o-1])}}}}},98748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4862);r.__exportStar(n(81728),t),r.__exportStar(n(91919),t),r.__exportStar(n(99169),t),r.__exportStar(n(6465),t),r.__exportStar(n(3661),t),r.__exportStar(n(74467),t),r.__exportStar(n(84273),t),r.__exportStar(n(43451),t),r.__exportStar(n(70517),t),r.__exportStar(n(47051),t)},3661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineForPosition=(e,n,r=0,i)=>{if(0===e||0===n.length||e=n[o]&&!n[o+1])return o+1;const s=n[Math.min(o+1,n.length)];return e===n[o]-1?o:e>=n[o]&&e<=s?e===s?o+2:o+1:e>n[o]?t.lineForPosition(e,n,o+1,i):t.lineForPosition(e,n,r,o-1)}},74467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9581),i=n(84273);t.parse=e=>i.walkAST(r.load(e),void 0,[],[])},84273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1762),i=n(28373),o=n(9581),s=n(81728),a=n(91919),c=n(3661),p=n(70517),l=n(14042);function u(e){switch(o.determineScalarType(e)){case p.ScalarType.null:return null;case p.ScalarType.string:return String(e.value);case p.ScalarType.bool:return o.parseYamlBoolean(e.value);case p.ScalarType.int:return o.parseYamlBigInteger(e.value);case p.ScalarType.float:return o.parseYamlFloat(e.value)}}t.parseWithPointers=(e,n)=>{const r=d(e),i=o.load(e,Object.assign({},n,{ignoreDuplicateKeys:!0})),s={ast:i,lineMap:r,data:void 0,diagnostics:[],metadata:n};return i?(s.data=t.walkAST(i,n,r,s.diagnostics),i.errors&&s.diagnostics.push(...h(i.errors,r)),s.diagnostics.length>0&&s.diagnostics.sort(((e,t)=>e.range.start.line-t.range.start.line)),Array.isArray(s.ast.errors)&&(s.ast.errors.length=0),s):s},t.walkAST=(e,n,r,i)=>{if(e)switch(e.kind){case p.Kind.MAP:{const o=void 0!==n&&!0===n.preserveKeyOrder,s=y(o),a=[],c=void 0!==n&&!0===n.mergeKeys,p=void 0!==n&&!1===n.json,l=void 0!==n&&!1===n.ignoreDuplicateKeys;for(const d of e.mappings){if(!b(d,r,i,p))continue;const e=String(u(d.key));if((p||l)&&(!c||"<<"!==e))if(a.includes(e)){if(p)throw new Error("Duplicate YAML mapping key encountered");l&&i.push($(d.key,r,"duplicate key"))}else a.push(e);if(c&&"<<"===e){const e=m(t.walkAST(d.value,n,r,i),o);Object.assign(s,e)}else s[e]=t.walkAST(d.value,n,r,i),o&&v(s,e)}return s}case p.Kind.SEQ:return e.items.map((e=>t.walkAST(e,n,r,i)));case p.Kind.SCALAR:{const t=void 0!==n&&!0===n.bigInt,r=u(e);return t||"bigint"!=typeof r?r:Number(r)}case p.Kind.ANCHOR_REF:return l.isObject(e.value)&&(e.value=a.dereferenceAnchor(e.value,e.referencesAnchor)),t.walkAST(e.value,n,r,i);default:return null}return e};const d=e=>{const t=[];let n=0;for(;n{const n=[];let r=-1,o=0;for(const s of e){const e={code:s.name,message:s.reason,severity:s.isWarning?i.DiagnosticSeverity.Warning:i.DiagnosticSeverity.Error,range:{start:{line:s.mark.line,character:s.mark.column},end:{line:s.mark.line,character:s.mark.toLineEnd?f(t,s.mark.line):s.mark.column}}};"missed comma between flow collection entries"===s.reason?r=-1===r?o:r:-1!==r&&(n[r].range.end=e.range.end,n[r].message="invalid mixed usage of block and flow styles",n.length=r+1,o=n.length,r=-1),n.push(e),o++}return n},m=(e,t)=>Array.isArray(e)?e.reduceRight(t?(e,t)=>{const n=Object.keys(t);Object.assign(e,t);for(let t=n.length-1;t>=0;t--)i=e,o=n[t],g(i,o),r.getOrder(i).unshift(o);var i,o;return e}:(e,t)=>Object.assign(e,t),y(t)):"object"!=typeof e||null===e?null:Object(e);function y(e){return e?r.default({}):{}}function g(e,t){if(!(t in e))return;const n=r.getOrder(e),i=n.indexOf(t);-1!==i&&n.splice(i,1)}function v(e,t){g(e,t),r.getOrder(e).push(t)}function b(e,t,n,r){if(e.key.kind!==p.Kind.SCALAR)return r||n.push(_(e.key,t,"mapping key must be a string scalar",r)),!1;if(!r){const i=typeof u(e.key);"string"!==i&&n.push(_(e.key,t,`mapping key must be a string scalar rather than ${null===e.key.valueObject?"null":i}`,r))}return!0}function _(e,t,n,r){const o=$(e,t,n);return o.code="YAMLIncompatibleValue",o.severity=r?i.DiagnosticSeverity.Hint:i.DiagnosticSeverity.Warning,o}function $(e,t,n){const r=c.lineForPosition(e.startPosition,t),o=c.lineForPosition(e.endPosition,t);return{code:"YAMLException",message:n,severity:i.DiagnosticSeverity.Error,path:s.buildJsonPath(e),range:{start:{line:r,character:0===r?e.startPosition:e.startPosition-t[r-1]},end:{line:o,character:0===o?e.endPosition:e.endPosition-t[o-1]}}}}},43451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9581);t.safeStringify=(e,t)=>"string"==typeof e?e:r.safeDump(e,t)},47051:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1762);t.KEYS=Symbol.for(r.ORDER_KEY_ID);const i={ownKeys:e=>t.KEYS in e?e[t.KEYS]:Reflect.ownKeys(e)};t.trapAccess=e=>new Proxy(e,i)},70517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9581);t.Kind=r.Kind,t.ScalarType=r.ScalarType},14042:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=e=>null!==e&&"object"==typeof e},28599:e=>{"use strict";const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},16870:(e,t)=>{"use strict";function n(e,t){return{validate:e,compare:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:n(o,s),time:n(c,p),"date-time":n((function(e){const t=e.split(l);return 2===t.length&&o(t[0])&&c(t[1],!0)}),u),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return d.test(e)&&f.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(v.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return h.lastIndex=0,h.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=y&&e>=m}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:g},double:{type:"number",validate:g},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:n(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":n(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=r.exec(e);if(!t)return!1;const n=+t[1],o=+t[2],s=+t[3];return o>=1&&o<=12&&s>=1&&s<=(2===o&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(n)?29:i[o])}function s(e,t){if(e&&t)return e>t?1:e(t=r[1]+r[2]+r[3]+(r[4]||""))?1:e{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16870),i=n(57963),o=n(48461),s=new o.Name("fullFormats"),a=new o.Name("fastFormats"),c=(e,t={keywords:!0})=>{if(Array.isArray(t))return p(e,t,r.fullFormats,s),e;const[n,o]="fast"===t.mode?[r.fastFormats,a]:[r.fullFormats,s];return p(e,t.formats||r.formatNames,n,o),t.keywords&&i.default(e),e};function p(e,t,n,r){var i,s;null!==(i=(s=e.opts.code).formats)&&void 0!==i||(s.formats=o._`require("ajv-formats/dist/formats").${r}`);for(const r of t)e.addFormat(r,n[r])}c.get=(e,t="full")=>{const n=("fast"===t?r.fastFormats:r.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c},57963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const r=n(4444),i=n(48461),o=i.operators,s={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},a={message:({keyword:e,schemaCode:t})=>i.str`should be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>i._`{comparison: ${s[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:t,data:n,schemaCode:o,keyword:a,it:c}=e,{opts:p,self:l}=c;if(!p.validateFormats)return;const u=new r.KeywordCxt(c,l.RULES.all.format.definition,"format");function d(e){return i._`${e}.compare(${n}, ${o}) ${s[a].fail} 0`}u.$data?function(){const n=t.scopeValue("formats",{ref:l.formats,code:p.code.formats}),r=t.const("fmt",i._`${n}[${u.schemaCode}]`);e.fail$data(i.or(i._`typeof ${r} != "object"`,i._`${r} instanceof RegExp`,i._`typeof ${r}.compare != "function"`,d(r)))}():function(){const n=u.schema,r=l.formats[n];if(!r||!0===r)return;if("object"!=typeof r||r instanceof RegExp||"function"!=typeof r.compare)throw new Error(`"${a}": format "${n}" does not define "compare" function`);const o=t.scopeValue("formats",{key:n,ref:r,code:p.code.formats?i._`${p.code.formats}${i.getProperty(n)}`:void 0});e.fail$data(d(o))}()},dependencies:["format"]},t.default=e=>(e.addKeyword(t.formatLimitDefinition),e)},4444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(70623),i=n(60892),o=n(85451),s=n(90074),a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=n(25700);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=n(48461);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=n(14007);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=n(32381);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(826),i=n(27102);var o=n(826);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=n(27102);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=A(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class p extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=A(this.rhs,e,t),this}get names(){return k(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class l extends p{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=A(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(I(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>T(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class v extends y{}v.kind="else";class b extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(N(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=A(this.condition,e,t),this}get names(){const e=super.names;return k(e,this.condition),this.else&&T(e,this.else.names),e}}b.kind="if";class _ extends y{}_.kind="for";class $ extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=A(this.iteration,e,t),this}get names(){return T(super.names,this.iteration.names)}}class w extends _{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=k(super.names,this.from);return k(e,this.to)}}class j extends _{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=A(this.iterable,e,t),this}get names(){return T(super.names,this.iterable.names)}}class x extends y{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class P extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&T(e,this.catch.names),this.finally&&T(e,this.finally.names),e}}class E extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class O extends y{render(e){return"finally"+super.render(e)}}function T(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function k(e,t){return t instanceof r._CodeOrName?T(e,t.names):e}function A(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function I(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}O.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new c(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new p(e,t,n))}add(e,n){return this._leafNode(new l(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new $(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new w(o,s,t,n),(()=>r(s)))}forOf(e,t,n,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(s,r._`${e}[${t}]`),n(s)}))}return this._for(new j("of",o,s,t),(()=>n(s)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const s=this._scope.toName(e);return this._for(new j("in",o,s,t),(()=>n(s)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new P;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(E,O)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new x(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=N;const R=C(t.operators.AND);t.and=function(...e){return e.reduce(R)};const M=C(t.operators.OR);function C(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(M)}},27102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(826);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=a;const c=r._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:r.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,r);const a=this._scope[i]||(this._scope[i]=[]),c=a.length;return a[c]=t.ref,r.setValue(t,{property:i,itemIndex:c}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,s={},a){let c=r.nil;for(const p in e){const l=e[p];if(!l)continue;const u=s[p]=s[p]||new Map;l.forEach((e=>{if(u.has(e))return;u.set(e,o.Started);let s=n(e);if(s){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=r._`${c}${n} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);c=r._`${c}${s}${this.opts._n}`}u.set(e,o.Completed)}))}return c}}},2024:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(48461),i=n(40950),o=n(5077);function s(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function a(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:c}=e,{gen:l,compositeRule:u,allErrors:d}=c,f=p(e,n,i);(null!=o?o:u||d)?s(l,f):a(c,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:c,compositeRule:l,allErrors:u}=i;s(c,p(e,n,r)),l||u||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,o.default.errors,(s=>{e.const(c,r._`${o.default.vErrors}[${s}]`),e.if(r._`${c}.instancePath === undefined`,(()=>e.assign(r._`${c}.instancePath`,(0,r.strConcat)(o.default.instancePath,a.errorPath)))),e.assign(r._`${c}.schemaPath`,r.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(r._`${c}.schema`,n),e.assign(r._`${c}.data`,i))}))};const c={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function p(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:s}=e,a=[l(s,n),u(e,n)];return function(e,{params:t,message:n},i){const{keyword:s,data:a,schemaValue:p,it:l}=e,{opts:u,propertyName:d,topSchemaRef:f,schemaPath:h}=l;i.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||r._`{}`]),u.messages&&i.push([c.message,"function"==typeof n?n(e):n]),u.verbose&&i.push([c.schema,p],[c.parentSchema,r._`${f}${h}`],[o.default.data,a]),d&&i.push([c.propertyName,d])}(e,t,a),i.object(...a)}(e,t,n)}function l({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function u({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let s=o?t:r.str`${t}/${e}`;return n&&(s=r.str`${s}${(0,i.getErrorPath)(n,i.Type.Str)}`),[c.schemaPath,s]}},22478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(48461),i=n(14007),o=n(5077),s=n(77679),a=n(40950),c=n(25700);class p{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(e){const t=d.call(this,e);if(t)return t;const n=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:p}=this.opts.code,{ownProperties:l}=this.opts,u=new r.CodeGen(this.scope,{es5:a,lines:p,ownProperties:l});let f;e.$async&&(f=u.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=u.scopeName("validate");e.validateName=h;const m={gen:u,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),u.optimize(this.opts.code.optimize);const t=u.toString();y=`${u.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:u._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function u(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function d(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function f(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),r=(0,s._getFullPath)(this.opts.uriResolver,n);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return y.call(this,n,e);const o=(0,s.normalizeId)(r),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=h.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||l.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,r)),new p({schema:t,schemaId:n,root:e,baseId:i})}return y.call(this,n,a)}}t.SchemaEnv=p,t.compileSchema=l,t.resolveRef=function(e,t,n){var r;n=(0,s.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=f.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:s}=this.opts;i&&(o=new p({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[n]=u.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,r,e)}const{schemaId:c}=this.opts;return o=o||new p({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},5077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},32381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(77679);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},77679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(40950),i=n(64063),o=n(55136),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&p(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function p(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=p(e))),t===1/0))return 1/0}return t}function l(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return u(e,r)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=u;const d=/#\/?$/;function f(e){return e?e.replace(d,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,s=f(e[n]||t),a={"":s},c=l(r,s,!1),p={},u=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=c+t;let s=a[i];function l(t){const n=this.opts.uriResolver.resolve;if(t=f(s?n(s,t):t),u.has(t))throw m(t);u.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?d(e,r.schema,t):t!==f(o)&&("#"===t[0]?(d(e,p[t],t),p[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[n]&&(s=l.call(this,e[n])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=s})),p;function d(e,t,n){if(void 0!==t&&!i(e,t))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},68803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},40950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(48461),i=n(826);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||h(e,`unknown keyword: "${n}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function p({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,s,a,c)=>{const p=void 0===a?s:a instanceof r.Name?(s instanceof r.Name?e(o,s,a):t(o,s,a),a):s instanceof r.Name?(t(o,a,s),s):n(s,a);return c!==r.Name||p instanceof r.Name?p:i(o,p)}}function l(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&u(e,n,t),n}function u(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),u(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:p({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=u;const d={};var f;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===f.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=h},51134:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},57122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(2024),i=n(48461),o=n(5077),s={message:"boolean schema is false"};function a(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),a(e)):n.var(t,!0)}},85298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(68803),i=n(51134),o=n(2024),s=n(48461),a=n(40950);var c;function p(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=p(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=p,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,a=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),p=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(p){const i=d(t,r,o.strictNumbers,c.Wrong);n.if(i,(()=>{a.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,a=r.let("dataType",s._`typeof ${i}`),c=r.let("coerced",s._`undefined`);"array"===o.coerceTypes&&r.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(d(t,i,o.strictNumbers),(()=>r.assign(c,i))))),r.if(s._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===o.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void r.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(c,s._`""`);case"number":return void r.elseIf(s._`${a} == "boolean" || ${i} === null - || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,s._`+${i}`);case"integer":return void r.elseIf(s._`${a} === "boolean" || ${i} === null - || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,s._`+${i}`);case"boolean":return void r.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return r.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(c,null);case"array":r.elseIf(s._`${a} === "string" || ${a} === "number" - || ${a} === "boolean" || ${i} === null`).assign(c,s._`[${i}]`)}}r.else(),h(e),r.endIf(),r.if(s._`${c} !== undefined`,(()=>{r.assign(i,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${n}]`,r)))}(e,c)}))}(e,t,a):h(e)}))}return p};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,n,r=c.Correct){const i=r===c.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return r===c.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,n?s._`isFinite(${t})`:s.nil)}}function d(e,t,n,r){if(1===e.length)return u(e[0],t,n,r);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,u(e,t,n,r));return i}t.checkDataType=u,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=h},57054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(48461),i=n(40950);function o(e,t,n){const{gen:o,compositeRule:s,data:a,opts:c}=e;if(void 0===n)return;const p=r._`${a}${(0,r.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${p}`);let l=r._`${p} === undefined`;"empty"===c.useDefaults&&(l=r._`${l} || ${p} === null || ${p} === ""`),o.if(l,r._`${p} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},25700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(57122),i=n(85298),o=n(51134),s=n(85298),a=n(57054),c=n(83134),p=n(75197),l=n(48461),u=n(5077),d=n(77679),f=n(40950),h=n(2024);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,l._`${u.default.data}, ${u.default.valCxt}`,r.$async,(()=>{e.code(l._`"use strict"; ${y(n,i)}`),function(e,t){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,l._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,l._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,l._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,l._`${u.default.valCxt}.${u.default.rootData}`),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,l._`""`),e.var(u.default.parentData,l._`undefined`),e.var(u.default.parentDataProperty,l._`undefined`),e.var(u.default.rootData,u.default.data),t.dynamicRef&&e.var(u.default.dynamicAnchors,l._`{}`)}))}(e,i),e.code(o)})):e.func(t,l._`${u.default.data}, ${function(e){return l._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?l._`, ${u.default.dynamicAnchors}={}`:l.nil}}={}`}(i)}`,r.$async,(()=>e.code(y(n,i)).code(o)))}function y(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?l._`/*# sourceURL=${n} */`:l.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function _(e,t){if(e.opts.jtd)return w(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);w(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function $({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(l._`${u.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=l.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(l._`${u.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function w(e,t,n,r){const{gen:i,schema:a,data:c,allErrors:p,opts:d,self:h}=e,{RULES:m}=h;function y(f){(0,o.shouldUseGroup)(a,f)&&(f.type?(i.if((0,s.checkDataType)(f.type,c,d.strictNumbers)),j(e,f),1===t.length&&t[0]===f.type&&n&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):j(e,f),p||i.if(l._`${u.default.errors} === ${r||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{x(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)x(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&S(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)y(e);y(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function j(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),g(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(u.default.vErrors,null),r.let(u.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",l._`${n}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(l._`${u.default.errors} === 0`,(()=>t.return(u.default.data)),(()=>t.throw(l._`new ${i}(${u.default.vErrors})`))):(t.assign(l._`${r}.errors`,u.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof l.Name&&e.assign(l._`${t}.props`,n),r instanceof l.Name&&e.assign(l._`${t}.items`,r)}(e),t.return(l._`${u.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",k(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",u.default.errors))}result(e,t,n){this.failResult((0,l.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=l.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,l.or)(l._`${r} === undefined`,t)),e!==l.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,l.or)(function(){if(n.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return l._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return l.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return l._`!${n}(${t})`}return l.nil}())}subschema(e,t){const n=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(n,this.it,e),(0,p.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),g(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",u.default.errors);_(e,o),r.var(t,l._`${o} === ${u.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function E(e,t,n,r){const i=new P(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,c.funcKeywordCode)(i,n):"macro"in n?(0,c.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(i,n)}t.KeywordCxt=P;const O=/^\/(?:[^~]|~0|~1)*$/,T=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function k(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return u.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=u.default.rootData}else{const s=T.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(c("property/index",a));return r[t-a]}if(a>t)throw new Error(c("data",a));if(o=n[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=l._`${o}${(0,l.getProperty)((0,f.unescapeJsonPointer)(e))}`,s=l._`${s} && ${o}`);return s;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=k},83134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(48461),i=n(5077),o=n(47813),s=n(2024);function a(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:s,it:a}=e,p=t.macro.call(a.self,o,s,a),l=c(n,i,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const u=n.name("valid");e.subschema({schema:p,schemaPath:r.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:p,keyword:l,schema:u,parentSchema:d,$data:f,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!f&&t.compile?t.compile.call(h.self,u,d,h):t.validate,y=c(p,l,m),g=p.let("valid");function v(n=(t.async?r._`await `:r.nil)){const s=h.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!f||!1===t.schema);p.assign(g,r._`${n}${(0,o.callValidateCode)(e,y,s,a)}`,t.modifying)}function b(e){var n;p.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const n=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>v(r._`await `)),(t=>p.assign(g,!1).if(r._`${t} instanceof ${h.ValidationError}`,(()=>p.assign(e,r._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=r._`${y}.errors`;return p.assign(e,null),v(r.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:g)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},75197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(48461),i=n(40950);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==n){const{errorPath:s,dataPathArr:a,opts:c}=t;l(p.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${s}${(0,i.getErrorPath)(n,o,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function l(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==s&&(l(s instanceof r.Name?s:p.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},70623:(e,t,n)=>{"use strict";var r=n(25108);Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var i=n(25700);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var o=n(48461);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const s=n(14007),a=n(32381),c=n(68803),p=n(22478),l=n(48461),u=n(77679),d=n(85298),f=n(40950),h=n(87099),m=n(10579),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function $(e){var t,n,r,i,o,s,a,c,p,l,u,d,f,h,g,v,b,_,$,w,j,x,S,P,E;const O=e.strict,T=null===(t=e.code)||void 0===t?void 0:t.optimize,k=!0===T||void 0===T?1:T||0,A=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:y,I=null!==(i=e.uriResolver)&&void 0!==i?i:m.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:O)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:O)||void 0===c||c,strictTypes:null!==(l=null!==(p=e.strictTypes)&&void 0!==p?p:O)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(u=e.strictTuples)&&void 0!==u?u:O)&&void 0!==d?d:"log",strictRequired:null!==(h=null!==(f=e.strictRequired)&&void 0!==f?f:O)&&void 0!==h&&h,code:e.code?{...e.code,optimize:k,regExp:A}:{optimize:k,regExp:A},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(x=e.validateSchema)||void 0===x||x,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(E=e.int32range)||void 0===E||E,uriResolver:I}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...$(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:v,es5:t,lines:n}),this.logger=function(e){if(!1===e)return T;if(void 0===e)return r;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,c.getRules)(),j.call(this,b,e,"NOT SUPPORTED"),j.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=O.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=h;"id"===n&&(r={...h},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await p.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new p.SchemaEnv({schema:{},schemaId:n});if(t=p.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,n,t),!t)return(0,f.eachItem)(n,(e=>I.call(this,e))),this;R.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach((t=>I.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=C(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,u.normalizeId)(o||n);const c=u.getSchemaRefs.call(this,e,n);return a=new p.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:c}),this._cache.set(a.schema,a),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):p.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,e)}finally{this.opts=t}}}function j(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function P(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function O(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=w,w.ValidationError=s.default,w.MissingRefError=a.default;const T={log(){},warn(){},error(){}},k=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,t){const{RULES:n}=this;if((0,f.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!k.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:e})=>e===n));if(s||(s={type:n,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?N.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function N(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,M]}}},22444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64063);r.code='require("ajv/dist/runtime/equal").default',t.default=r},36670:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(60540);r.code='require("ajv/dist/runtime/uri").default',t.default=r},14007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},59756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(48461),i=n(40950),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?s(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:n,schema:o,data:s,keyword:a,it:c}=e;c.items=!0;const p=n.const("len",r._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${p} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=n.var("valid",r._`${p} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},79670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(47813),i=n(48461),o=n(5077),s=n(40950),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:p,it:l}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:u,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,s.alwaysValidSchema)(l,n))return;const f=(0,r.allSchemaProperties)(a.properties),h=(0,r.allSchemaProperties)(a.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function y(r){if("all"===d.removeAdditional||d.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(u||t.break());if("object"==typeof n&&!(0,s.alwaysValidSchema)(l,n)){const n=t.name("valid");"failing"===d.removeAdditional?(g(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),m(r)}))):(g(r,n),u||t.if((0,i.not)(n),(()=>t.break())))}}}function g(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",c,(n=>{f.length||h.length?t.if(function(n){let o;if(f.length>8){const e=(0,s.schemaRefOrVal)(l,a.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=f.length?(0,i.or)(...f.map((e=>i._`${n} === ${e}`))):i.nil;return h.length&&(o=(0,i.or)(o,...h.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>y(n))):y(n)})),e.ok(i._`${p} === ${o.default.errors}`)}};t.default=a},67516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(40950),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(s)}))}};t.default=i},55812:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(47813).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},90220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(40950),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:a}=e;let c,p;const{minContains:l,maxContains:u}=o;a.opts.next?(c=void 0===l?1:l,p=u):c=1;const d=t.const("len",r._`${s}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,n)){let t=r._`${d} >= ${c}`;return void 0!==p&&(t=r._`${t} && ${d} <= ${p}`),void e.pass(t)}a.items=!0;const f=t.name("valid");function h(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===p?t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0).break())):(t.if(r._`${e} > ${p}`,(()=>t.assign(f,!1).break())),1===c?t.assign(f,!0):t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0))))}(n)))))}function m(n,r){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===p&&1===c?m(f,(()=>t.if(f,(()=>t.break())))):0===c?(t.let(f,!0),void 0!==p&&t.if(r._`${s}.length > 0`,h)):(t.let(f,!1),h()),e.result(f,(()=>e.reset()))}};t.default=o},54853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(48461),i=n(40950),o=n(47813);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e}, - missingProperty: ${i}, - depsCount: ${t}, - deps: ${n}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const l=(0,o.propertyInData)(n,i,c,s.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),s.allErrors?n.if(l,(()=>{for(const t of p)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${l} && (${(0,o.checkMissingProp)(e,p,a)})`),(0,o.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:s,it:a}=e,c=n.name("valid");for(const p in t)(0,i.alwaysValidSchema)(a,t[p])||(n.if((0,o.propertyInData)(n,r,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},73449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(40950),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),c=s(o,"else");if(!a&&!c)return;const p=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(l,u("then",n),u("else",n))}else a?t.if(l,u("then")):t.if((0,r.not)(l),u("else"));function u(n,i){return()=>{const o=e.subschema({keyword:n},l);t.assign(p,l),e.mergeValidEvaluated(o,p),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(p,(()=>e.error(!0)))}};function s(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},61964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(59756),i=n(81849),o=n(42031),s=n(8089),a=n(90220),c=n(54853),p=n(21523),l=n(79670),u=n(90704),d=n(66125),f=n(98556),h=n(55812),m=n(94164),y=n(67516),g=n(73449),v=n(65846);t.default=function(e=!1){const t=[f.default,h.default,m.default,y.default,g.default,v.default,p.default,l.default,c.default,u.default,d.default];return e?t.push(i.default,s.default):t.push(r.default,o.default),t.push(a.default),t}},42031:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(48461),i=n(40950),o=n(47813),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:o,parentSchema:s,data:a,keyword:c,it:p}=e;!function(e){const{opts:r,errSchemaPath:o}=p,s=n.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(p,e,r.strictTuples)}}(s),p.opts.unevaluated&&n.length&&!0!==p.items&&(p.items=i.mergeEvaluated.items(o,n.length,p.items));const l=o.name("valid"),u=o.const("len",r._`${a}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(p,t)||(o.if(r._`${u} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},l))),e.ok(l))}))}t.validateTuple=a,t.default=s},8089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(40950),o=n(47813),s=n(59756),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},98556:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(40950),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},94164:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(40950),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=n,c=t.let("valid",!1),p=t.let("passing",null),l=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((n,o)=>{let a;(0,i.alwaysValidSchema)(s,n)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(r._`${l} && ${c}`).assign(c,!1).assign(p,r._`[${p}, ${o}]`).else(),t.if(l,(()=>{t.assign(c,!0),t.assign(p,o),a&&e.mergeEvaluated(a,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},66125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(47813),i=n(48461),o=n(40950),s=n(40950),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:p}=e,{opts:l}=p,u=(0,r.allSchemaProperties)(n),d=u.filter((e=>(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length||d.length===u.length&&(!p.opts.unevaluated||!0===p.props))return;const f=l.strictSchema&&!l.allowMatchingProperties&&c.properties,h=t.name("valid");!0===p.props||p.props instanceof i.Name||(p.props=(0,s.evaluatedPropsToName)(t,p.props));const{props:m}=p;function y(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",a,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=d.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:s.Type.Str},h),p.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||p.allErrors||t.if((0,i.not)(h),(()=>t.break()))}))}))}!function(){for(const e of u)f&&y(e),p.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=a},81849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42031),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},90704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(25700),i=n(47813),o=n(40950),s=n(79670),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new r.KeywordCxt(p,s.default,"additionalProperties"));const l=(0,i.allSchemaProperties)(n);for(const e of l)p.definedProperties.add(e);p.opts.unevaluated&&l.length&&!0!==p.props&&(p.props=o.mergeEvaluated.props(t,(0,o.toHash)(l),p.props));const u=l.filter((e=>!(0,o.alwaysValidSchema)(p,n[e])));if(0===u.length)return;const d=t.name("valid");for(const n of u)f(n)?h(n):(t.if((0,i.propertyInData)(t,c,n,p.opts.ownProperties)),h(n),p.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function f(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},21523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(40950),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,n))return;const a=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=o},65846:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(40950),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},47813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(48461),i=n(40950),o=n(5077),s=n(40950);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function p(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(c(e,t,n))):o}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(p(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(p(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${c(e,t,n)}`:o},t.noPropertyInData=p,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:s,errorPath:a},it:c},p,l,u){const d=u?r._`${e}, ${t}, ${i}${s}`:t,f=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=r._`${d}, ${n.object(...f)}`;return l!==r.nil?r._`${p}.call(${l}, ${h})`:r._`${p}(${h})`};const u=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===o.code?u:(0,s.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(s){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},a),t.if((0,r.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,r.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},59899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},69265:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(59899),i=n(3672),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},3672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(32381),i=n(47813),o=n(48461),s=n(5077),a=n(22478),c=n(40950),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:s,schemaEnv:c,validateName:p,opts:d,self:f}=i,{root:h}=c;if(("#"===n||"#/"===n)&&s===h.baseId)return function(){if(c===h)return u(e,p,c,c.$async);const n=t.scopeValue("root",{ref:h});return u(e,o._`${n}.validate`,h,h.$async)}();const m=a.resolveRef.call(f,h,s,n);if(void 0===m)throw new r.default(i.opts.uriResolver,s,n);return m instanceof a.SchemaEnv?function(t){const n=l(e,t);u(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===d.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),s=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function l(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function u(e,t,n,r){const{gen:a,it:p}=e,{allErrors:l,schemaEnv:u,opts:d}=p,f=d.passContext?s.default.this:o.nil;function h(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function m(e){var t;if(!p.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(r&&!r.dynamicProps)void 0!==r.props&&(p.props=c.mergeEvaluated.props(a,r.props,p.props));else{const t=a.var("props",o._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,o.Name)}if(!0!==p.items)if(r&&!r.dynamicItems)void 0!==r.items&&(p.items=c.mergeEvaluated.items(a,r.items,p.items));else{const t=a.var("items",o._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,o.Name)}}r?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),m(t),l||a.assign(n,!0)}),(e=>{a.if(o._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),h(e),l||a.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,f),(()=>m(t)),(()=>h(t)))}t.getValidate=l,t.callRef=u,t.default=p},85451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(5447),o=n(22478),s=n(40950),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:p}=e,{oneOf:l}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=a.propertyName;if("string"!=typeof u)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),f=t.const("tag",r._`${n}${(0,r.getProperty)(u)}`);function h(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${f} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(c);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:u}))),e.ok(d)}};t.default=a},5447:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},60892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69265),i=n(67978),o=n(61964),s=n(89179),a=n(26001),c=[r.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},9079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:s,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:l,schemaEnv:u,self:d}=c;p.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:p.code.formats}),s=n.const("fDef",r._`${o}[${a}]`),c=n.let("fType"),l=n.let("format");n.if(r._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>n.assign(c,r._`${s}.type || "string"`).assign(l,r._`${s}.validate`)),(()=>n.assign(c,r._`"string"`).assign(l,s))),e.fail$data((0,r.or)(!1===p.strictSchema?r.nil:r._`${a} && !${l}`,function(){const e=u.$async?r._`(${s}.async ? await ${l}(${i}) : ${l}(${i}))`:r._`${l}(${i})`,n=r._`(typeof ${l} == "function" ? ${e} : ${l}.test(${i}))`;return r._`${l} && ${l} !== true && ${c} === ${t} && !${n}`}()))}():function(){const o=d.formats[s];if(!o)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${l}"`}d.logger.warn(e())}();if(!0===o)return;const[a,c,f]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):p.code.formats?r._`${p.code.formats}${(0,r.getProperty)(s)}`:void 0,i=n.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return r._`await ${f}(${i})`}return"function"==typeof c?r._`${f}(${i})`:r._`${f}.test(${i})`}())}())}};t.default=i},89179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(9079).default];t.default=r},26001:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},23723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(40950),o=n(22444),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=s},73186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(40950),o=n(22444),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:s,schema:a,schemaCode:c,it:p}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=p.opts.loopEnum;let u;const d=()=>null!=u?u:u=(0,i.useFunc)(t,o.default);let f;if(l||s)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",c,(e=>t.if(r._`${d()}(${n}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);f=(0,r.or)(...a.map(((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?r._`${d()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(f)}};t.default=s},67978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(80949),i=n(43229),o=n(66346),s=n(41244),a=n(12561),c=n(19798),p=n(35767),l=n(89320),u=n(23723),d=n(73186),f=[r.default,i.default,o.default,s.default,a.default,c.default,p.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,d.default];t.default=f},35767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},66346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=n(40950),o=n(36670),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,p=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${p} ${c} ${s}`)}};t.default=s},80949:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=a},12561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},43229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48461),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),c=s?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${i} === 0 || (${a} = ${n}/${i}, ${c}))`)}};t.default=i},41244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(47813),i=n(48461),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=n?i._`(new RegExp(${s}, ${c}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${p}.test(${t})`)}};t.default=o},19798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(47813),i=n(48461),o=n(40950),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:s,data:a,$data:c,it:p}=e,{opts:l}=p;if(!c&&0===n.length)return;const u=n.length>=l.loopRequired;if(p.allErrors?function(){if(u||c)e.block$data(i.nil,d);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(u||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,s,(()=>{t.assign(o,(0,r.propertyInData)(t,a,n,l.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(p,t,p.opts.strictRequired)}}function d(){t.forOf("prop",s,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,l.ownProperties),(()=>e.error()))}))}}};t.default=s},89320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(85298),i=n(48461),o=n(40950),s=n(22444),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:p,schemaCode:l,it:u}=e;if(!a&&!c)return;const d=t.let("valid"),f=p.items?(0,r.getSchemaTypes)(p.items):[];function h(o,s){const a=t.name("item"),c=(0,r.checkDataTypes)(f,a,u.opts.strictNumbers,r.DataType.Wrong),p=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(a,i._`${n}[${o}]`),t.if(c,i._`continue`),f.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(s,i._`${p}[${a}]`),e.error(),t.assign(d,!1).break()})).code(i._`${p}[${a}] = ${o}`)}))}function m(r,a){const c=(0,o.useFunc)(t,s.default),p=t.name("outer");t.label(p).for(i._`;${r}--;`,(()=>t.for(i._`${a} = ${r}; ${a}--;`,(()=>t.if(i._`${c}(${n}[${r}], ${n}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(p)}))))))}e.block$data(d,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(d,!0),t.if(i._`${r} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?h:m)(r,o)))}),i._`${l} === false`),e.ok(d)}};t.default=a},55136:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,s,a,c,p,l,u){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in r(o,s,a,c,p,l,u),o){var f=o[d];if(Array.isArray(f)){if(d in t.arrayKeywords)for(var h=0;h{"use strict";var r=n(34155),i=n(25108);function o(e){return o="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},o(e)}function s(e,t){for(var n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i{"use strict";var r=n(34155);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;te.length)&&(n=e.length),e.substring(n-t.length,n)===t}var b="",_="",$="",w="",j={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function S(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(P,e);var n,i,a,l,u=(n=P,i=d(),function(){var e,t=h(n);if(i){var r=h(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function P(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),"object"!==m(e)||null===e)throw new g("options","Object",e);var n=e.message,i=e.operator,o=e.stackStartFn,s=e.actual,a=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=u.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(b="",_="",w="",$=""):(b="",_="",w="",$="")),"object"===m(s)&&null!==s&&"object"===m(a)&&null!==a&&"stack"in s&&s instanceof Error&&"stack"in a&&a instanceof Error&&(s=x(s),a=x(a)),"deepStrictEqual"===i||"strictEqual"===i)t=u.call(this,function(e,t,n){var i="",o="",s=0,a="",c=!1,p=S(e),l=p.split("\n"),u=S(t).split("\n"),d=0,f="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===u.length&&l[0]!==u[0]){var h=l[0].length+u[0].length;if(h<=10){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat(j[n],"\n\n")+"".concat(l[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n&&h<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][d]===u[0][d];)d++;d>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}for(var y=l[l.length-1],g=u[u.length-1];y===g&&(d++<2?a="\n ".concat(y).concat(a):i=y,l.pop(),u.pop(),0!==l.length&&0!==u.length);)y=l[l.length-1],g=u[u.length-1];var x=Math.max(l.length,u.length);if(0===x){var P=p.split("\n");if(P.length>30)for(P[26]="".concat(b,"...").concat(w);P.length>27;)P.pop();return"".concat(j.notIdentical,"\n\n").concat(P.join("\n"),"\n")}d>3&&(a="\n".concat(b,"...").concat(w).concat(a),c=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var E=0,O=j[n]+"\n".concat(_,"+ actual").concat(w," ").concat($,"- expected").concat(w),T=" ".concat(b,"...").concat(w," Lines skipped");for(d=0;d1&&d>2&&(k>4?(o+="\n".concat(b,"...").concat(w),c=!0):k>3&&(o+="\n ".concat(u[d-2]),E++),o+="\n ".concat(u[d-1]),E++),s=d,i+="\n".concat($,"-").concat(w," ").concat(u[d]),E++;else if(u.length1&&d>2&&(k>4?(o+="\n".concat(b,"...").concat(w),c=!0):k>3&&(o+="\n ".concat(l[d-2]),E++),o+="\n ".concat(l[d-1]),E++),s=d,o+="\n".concat(_,"+").concat(w," ").concat(l[d]),E++;else{var A=u[d],I=l[d],N=I!==A&&(!v(I,",")||I.slice(0,-1)!==A);N&&v(A,",")&&A.slice(0,-1)===I&&(N=!1,I+=","),N?(k>1&&d>2&&(k>4?(o+="\n".concat(b,"...").concat(w),c=!0):k>3&&(o+="\n ".concat(l[d-2]),E++),o+="\n ".concat(l[d-1]),E++),s=d,o+="\n".concat(_,"+").concat(w," ").concat(I),i+="\n".concat($,"-").concat(w," ").concat(A),E+=2):(o+=i,i="",1!==k&&0!==d||(o+="\n ".concat(I),E++))}if(E>20&&d30)for(f[26]="".concat(b,"...").concat(w);f.length>27;)f.pop();t=1===f.length?u.call(this,"".concat(d," ").concat(f[0])):u.call(this,"".concat(d,"\n\n").concat(f.join("\n"),"\n"))}else{var h=S(s),y="",E=j[i];"notDeepEqual"===i||"notEqual"===i?(h="".concat(j[i],"\n\n").concat(h)).length>1024&&(h="".concat(h.slice(0,1021),"...")):(y="".concat(S(a)),h.length>512&&(h="".concat(h.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===i||"equal"===i?h="".concat(E,"\n\n").concat(h,"\n\nshould equal\n\n"):y=" ".concat(i," ").concat(y)),t=u.call(this,"".concat(h).concat(y))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(p(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=s,t.expected=a,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(p(t),o),t.stack,t.name="AssertionError",c(t)}return a=P,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return y(this,o(o({},t),{},{customInspect:!1,depth:0}))}}])&&s(a.prototype,l),Object.defineProperty(a,"prototype",{writable:!1}),P}(l(Error),y.custom);e.exports=P},62136:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var s,a,c={};function p(e,t,n){n||(n=Error);var s=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,n);var s,a,c,p=(a=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=o(a);if(c){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(n,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=p.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i)),o.code=e,o}return s=l,Object.defineProperty(s,"prototype",{writable:!1}),s}(n);c[e]=s}function l(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,c,p,u;if(void 0===s&&(s=n(69282)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(0,4)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(l(t,"type"));else{var d=("number"!=typeof u&&(u=0),u+1>(p=e).length||-1===p.indexOf(".",u)?"argument":"property");c='The "'.concat(e,'" ').concat(d," ").concat(o," ").concat(l(t,"type"))}return c+". Received type ".concat(r(i))}),TypeError),p("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=n(89539));var i=a.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),p("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=c},19158:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],c=!0,p=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){p=!0,i=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(p)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function N(e){return Object.keys(e).filter(I).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i{"use strict";function n(e,t){for(var n=0;n":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},o=17;t.NEEDS_PARENTHESES=o;var s,a,c,p,l,u,d={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:o,ClassExpression:o,FunctionExpression:o,ObjectExpression:o,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function f(e,t){var n=e.generator;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);for(var r=t.length,i=1;i0){e.write(r);for(var s=1;s0){n.VariableDeclarator(r[0],e);for(var o=1;o0){t.write(r),i&&null!=e.comments&&g(t,e.comments,o,r);for(var a=s.length,c=0;c0){for(;i0&&t.write(", ");var o=n[i],s=o.type[6];if("D"===s)t.write(o.local.name,o),i++;else{if("N"!==s)break;t.write("* as "+o.local.name,o),i++}}if(i0)for(var i=0;;){var o=n[i],s=o.local.name;if(t.write(s,o),s!==o.exported.name&&t.write(" as "+o.exported.name),!(++i "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression:function(e,t){t.write("this",e)},Super:function(e,t){t.write("super",e)},RestElement:c=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:c,YieldExpression:function(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression:function(e,t){t.write("await ",e),m(t,e.argument,e)},TemplateLiteral:function(e,t){var n=e.quasis,r=e.expressions;t.write("`");for(var i=r.length,o=0;o0)for(var n=e.elements,r=n.length,i=0;;){var o=n[i];if(null!=o&&this[o.type](o,t),!(++i0){t.write(r),i&&null!=e.comments&&g(t,e.comments,o,r);for(var s=","+r,a=e.properties,c=a.length,p=0;;){var l=a[p];if(i&&null!=l.comments&&g(t,l.comments,o,r),t.write(o),this[l.type](l,t),!(++p0)for(var n=e.properties,r=n.length,i=0;this[n[i].type](n[i],t),++i1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),o?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression:function(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression:function(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern:function(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:p=function(e,t){var n="in"===e.operator;n&&t.write("("),m(t,e.left,e,!1),t.write(" "+e.operator+" "),m(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:p,ConditionalExpression:function(e,t){var n=e.test,r=t.expressionsPrecedence[n.type];r===o||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression:function(e,t){t.write("new ");var n=t.expressionsPrecedence[e.callee.type];n===o||n0&&(this.lineEndSize>0&&(1===p.length?e[c-1]===p:e.endsWith(p))?(this.line+=this.lineEndSize,this.column=0):this.column+=c)}},{key:"toString",value:function(){return this.output}}])&&n(t.prototype,r),e}()},17457:(e,t,n)=>{"use strict";var r=n(98844),i=n(6724),o=n(5117),s=n(34570);e.exports={Service:i.Service,assembleProtocol:o.assembleProtocol,discoverProtocol:i.discoverProtocol,parse:function(e,t){var n=o.read(e);return n.protocol?i.Service.forProtocol(n,t):r.Type.forSchema(n,t)},readProtocol:o.readProtocol,readSchema:o.readSchema},s.copyOwnProperties(r,e.exports)},98844:(e,t,n)=>{"use strict";var r=n(87608);e.exports={Type:r.Type,parse:function(e,t){var n;if("string"==typeof e)try{n=JSON.parse(e)}catch(t){n=e}else n=e;return r.Type.forSchema(n,t)},types:r.builtins,combine:r.Type.forTypes,infer:r.Type.forValue}},97064:(e,t,n)=>{"use strict";var r=n(17457),i=n(94186),o=n(34570),s=n(42830),a=n(89539);function c(e,t){s.Readable.call(this),t=t||{},this._batchSize=t.batchSize||65536,this._blob=e,this._pos=0}function p(){s.Transform.call(this,{readableObjectMode:!0}),this._bufs=[]}a.inherits(c,s.Readable),c.prototype._read=function(){var e=this._pos;if(e>=this._blob.size)this.push(null);else{this._pos+=this._batchSize;var t=this._blob.slice(e,this._pos,this._blob.type),n=new FileReader,r=this;n.addEventListener("loadend",(function e(t){n.removeEventListener("loadend",e,!1),t.error?r.emit("error",t.error):r.push(o.bufferFrom(n.result))}),!1),n.readAsArrayBuffer(t)}},a.inherits(p,s.Transform),p.prototype._transform=function(e,t,n){this._bufs.push(e),n()},p.prototype._flush=function(e){this.push(new Blob(this._bufs,{type:"application/octet-binary"})),e()},e.exports={createBlobDecoder:function(e,t){return new c(e).pipe(new i.streams.BlockDecoder(t))},createBlobEncoder:function(e,t){var n=new i.streams.BlockEncoder(e,t),r=new p;return n.pipe(r),new s.Duplex({objectMode:!0,read:function(){var e=r.read();e?n(e):r.once("readable",n);var t=this;function n(e){t.push(e||r.read()),t.push(null)}},write:function(e,t,r){return n.write(e,t,r)}}).on("finish",(function(){n.end()}))},streams:i.streams},o.copyOwnProperties(r,e.exports)},35880:(e,t,n)=>{"use strict";var r=n(48764).Buffer;function i(){this.data=void 0}function o(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n=a(n,r,i,o,t[0],7,-680876936),o=a(o,n,r,i,t[1],12,-389564586),i=a(i,o,n,r,t[2],17,606105819),r=a(r,i,o,n,t[3],22,-1044525330),n=a(n,r,i,o,t[4],7,-176418897),o=a(o,n,r,i,t[5],12,1200080426),i=a(i,o,n,r,t[6],17,-1473231341),r=a(r,i,o,n,t[7],22,-45705983),n=a(n,r,i,o,t[8],7,1770035416),o=a(o,n,r,i,t[9],12,-1958414417),i=a(i,o,n,r,t[10],17,-42063),r=a(r,i,o,n,t[11],22,-1990404162),n=a(n,r,i,o,t[12],7,1804603682),o=a(o,n,r,i,t[13],12,-40341101),i=a(i,o,n,r,t[14],17,-1502002290),n=c(n,r=a(r,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=c(o,n,r,i,t[6],9,-1069501632),i=c(i,o,n,r,t[11],14,643717713),r=c(r,i,o,n,t[0],20,-373897302),n=c(n,r,i,o,t[5],5,-701558691),o=c(o,n,r,i,t[10],9,38016083),i=c(i,o,n,r,t[15],14,-660478335),r=c(r,i,o,n,t[4],20,-405537848),n=c(n,r,i,o,t[9],5,568446438),o=c(o,n,r,i,t[14],9,-1019803690),i=c(i,o,n,r,t[3],14,-187363961),r=c(r,i,o,n,t[8],20,1163531501),n=c(n,r,i,o,t[13],5,-1444681467),o=c(o,n,r,i,t[2],9,-51403784),i=c(i,o,n,r,t[7],14,1735328473),n=p(n,r=c(r,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=p(o,n,r,i,t[8],11,-2022574463),i=p(i,o,n,r,t[11],16,1839030562),r=p(r,i,o,n,t[14],23,-35309556),n=p(n,r,i,o,t[1],4,-1530992060),o=p(o,n,r,i,t[4],11,1272893353),i=p(i,o,n,r,t[7],16,-155497632),r=p(r,i,o,n,t[10],23,-1094730640),n=p(n,r,i,o,t[13],4,681279174),o=p(o,n,r,i,t[0],11,-358537222),i=p(i,o,n,r,t[3],16,-722521979),r=p(r,i,o,n,t[6],23,76029189),n=p(n,r,i,o,t[9],4,-640364487),o=p(o,n,r,i,t[12],11,-421815835),i=p(i,o,n,r,t[15],16,530742520),n=l(n,r=p(r,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=l(o,n,r,i,t[7],10,1126891415),i=l(i,o,n,r,t[14],15,-1416354905),r=l(r,i,o,n,t[5],21,-57434055),n=l(n,r,i,o,t[12],6,1700485571),o=l(o,n,r,i,t[3],10,-1894986606),i=l(i,o,n,r,t[10],15,-1051523),r=l(r,i,o,n,t[1],21,-2054922799),n=l(n,r,i,o,t[8],6,1873313359),o=l(o,n,r,i,t[15],10,-30611744),i=l(i,o,n,r,t[6],15,-1560198380),r=l(r,i,o,n,t[13],21,1309151649),n=l(n,r,i,o,t[4],6,-145523070),o=l(o,n,r,i,t[11],10,-1120210379),i=l(i,o,n,r,t[2],15,718787259),r=l(r,i,o,n,t[9],21,-343485551),e[0]=d(n,e[0]),e[1]=d(r,e[1]),e[2]=d(i,e[2]),e[3]=d(o,e[3])}function s(e,t,n,r,i,o){return t=d(d(t,e),d(r,o)),d(t<>>32-i,n)}function a(e,t,n,r,i,o,a){return s(t&n|~t&r,e,t,i,o,a)}function c(e,t,n,r,i,o,a){return s(t&r|n&~r,e,t,i,o,a)}function p(e,t,n,r,i,o,a){return s(t^n^r,e,t,i,o,a)}function l(e,t,n,r,i,o,a){return s(n^(t|~r),e,t,i,o,a)}function u(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function d(e,t){return e+t&4294967295}i.prototype.end=function(e){this.data=e},i.prototype.read=function(){return function(e){var t,n=function(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)o(r,u(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(o(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,o(r,i),r}(e),i=r.alloc?r.alloc(16):new r(16);for(t=0;t<4;t++)i.writeIntLE(n[t],4*t,4);return i}(this.data)},e.exports={createHash:function(e){if("md5"!==e)throw new Error("only md5 is supported in the browser");return new i}}},67776:e=>{"use strict";function t(){return new Error("unsupported in the browser")}e.exports={createImportHook:function(){return function(e,n,r){r(t())}},createSyncImportHook:function(){return function(){throw t()}},existsSync:function(){return!1},readFileSync:function(){throw t()}}},94186:(e,t,n)=>{"use strict";var r=n(34155),i=n(87608),o=n(34570),s=n(48764),a=n(42830),c=n(89539),p=n(42635),l=s.Buffer,u={namespace:"org.apache.avro.file"},d=i.Type.forSchema("long",u),f=i.Type.forSchema({type:"map",values:"bytes"},u),h=i.Type.forSchema({name:"Header",type:"record",fields:[{name:"magic",type:{type:"fixed",name:"Magic",size:4}},{name:"meta",type:f},{name:"sync",type:{type:"fixed",name:"Sync",size:16}}]},u),m=i.Type.forSchema({name:"Block",type:"record",fields:[{name:"count",type:"long"},{name:"data",type:"bytes"},{name:"sync",type:"Sync"}]},u),y=o.bufferFrom("Obj"),g=c.format,v=o.Tap;function b(e,t){var n=!!(t=t||{}).noDecode;a.Duplex.call(this,{readableObjectMode:!n,allowHalfOpen:!1}),this._type=i.Type.forSchema(e),this._tap=new v(o.newBuffer(0)),this._writeCb=null,this._needPush=!1,this._readValue=P(n,this._type),this._finished=!1,this.on("finish",(function(){this._finished=!0,this._read()}))}function _(e){var t=!!(e=e||{}).noDecode;a.Duplex.call(this,{allowHalfOpen:!0,readableObjectMode:!t}),this._rType=void 0!==e.readerSchema?i.Type.forSchema(e.readerSchema):void 0,this._wType=null,this._codecs=e.codecs,this._codec=void 0,this._parseHook=e.parseHook,this._tap=new v(o.newBuffer(0)),this._blockTap=new v(o.newBuffer(0)),this._syncMarker=null,this._readValue=null,this._noDecode=t,this._queue=new o.OrderedQueue,this._decompress=null,this._index=0,this._remaining=void 0,this._needPush=!1,this._finished=!1,this.on("finish",(function(){this._finished=!0,this._needPush&&this._read()}))}function $(e,t){t=t||{},a.Transform.call(this,{writableObjectMode:!0,allowHalfOpen:!1}),this._type=i.Type.forSchema(e),this._writeValue=function(e,t){try{this._type._write(e,t)}catch(e){this.emit("typeError",e,t,this._type)}},this._tap=new v(o.newBuffer(t.batchSize||65536)),this.on("typeError",(function(e){this.emit("error",e)}))}function w(e,t){var n;if(t=t||{},a.Duplex.call(this,{allowHalfOpen:!0,writableObjectMode:!0}),i.Type.isType(e)?(n=e,e=void 0):n=i.Type.forSchema(e),this._schema=e,this._type=n,this._writeValue=function(e,t){try{this._type._write(e,t)}catch(e){return this.emit("typeError",e,t,this._type),!1}return!0},this._blockSize=t.blockSize||65536,this._tap=new v(o.newBuffer(this._blockSize)),this._codecs=t.codecs,this._codec=t.codec||"null",this._blockCount=0,this._syncMarker=t.syncMarker||(new o.Lcg).nextBuffer(16),this._queue=new o.OrderedQueue,this._pending=0,this._finished=!1,this._needHeader=!1,this._needPush=!1,this._metadata=t.metadata||{},!f.isValid(this._metadata))throw new Error("invalid metadata");var r=this._codec;if(this._compress=(this._codecs||w.getDefaultCodecs())[r],!this._compress)throw new Error(g("unsupported codec: %s",r));switch(void 0!==t.omitHeader&&(t.writeHeader=t.omitHeader?"never":"auto"),t.writeHeader){case!1:case"never":break;case void 0:case"auto":this._needHeader=!0;break;default:this._writeHeader()}this.on("finish",(function(){this._finished=!0,this._blockCount?this._flushChunk():this._finished&&this._needPush&&this.push(null)})),this.on("typeError",(function(e){this.emit("error",e)}))}function j(e,t,n){this.valueCount=e,this.rawDataLength=t,this.compressedDataLength=n}function x(e,t,n,r){this.index=e,this.buf=t,this.cb=n,this.count=0|r}function S(e){var t=e.pos,n=m._read(e);return e.isValid()?n:(e.pos=t,null)}function P(e,t,n){if(e)return i=t._skip,function(e){var t=e.pos;return i(e),e.buf.slice(t,e.pos)};if(n){var r=n.createResolver(t);return function(e){return r._read(e)}}return function(e){return t._read(e)};var i}c.inherits(b,a.Duplex),b.prototype._write=function(e,t,n){this._writeCb=n;var r=this._tap;r.buf=l.concat([r.buf.slice(r.pos),e]),r.pos=0,this._needPush&&(this._needPush=!1,this._read())},b.prototype._read=function(){this._needPush=!1;var e=this._tap,t=e.pos,n=this._readValue(e);e.isValid()?this.push(n):this._finished?this.push(null):(e.pos=t,this._needPush=!0,this._writeCb&&this._writeCb())},c.inherits(_,a.Duplex),_.defaultCodecs=function(){return{null:function(e,t){t(null,e)},deflate:p.inflateRaw}},_.getDefaultCodecs=_.defaultCodecs,_.prototype._decodeHeader=function(){var e=this._tap;if(e.buf.lengthi.length&&(r.buf=o.newBuffer(2*a)),r.pos=0,this._writeValue(r,e)}n()},$.prototype._flush=function(e){var t=this._tap,n=t.pos;n&&this.push(t.buf.slice(0,n)),e()},c.inherits(w,a.Duplex),w.defaultCodecs=function(){return{null:function(e,t){t(null,e)},deflate:p.deflateRaw}},w.getDefaultCodecs=w.defaultCodecs,w.prototype._writeHeader=function(){var e=JSON.stringify(this._schema?this._schema:this._type.getSchema({exportAttrs:!0})),t=o.copyOwnProperties(this._metadata,{"avro.schema":o.bufferFrom(e),"avro.codec":o.bufferFrom(this._codec)},!0),n=new(h.getRecordConstructor())(y,t,this._syncMarker);this.push(n.toBuffer())},w.prototype._write=function(e,t,n){this._needHeader&&(this._writeHeader(),this._needHeader=!1);var r=this._tap,i=r.pos,s=!1;if(this._writeValue(r,e)){if(!r.isValid()){i&&(this._flushChunk(i,n),s=!0);var a=r.pos-i;a>this._blockSize&&(this._blockSize=2*a),r.buf=o.newBuffer(this._blockSize),r.pos=0,this._writeValue(r,e)}this._blockCount++}else r.pos=i;s||n()},w.prototype._flushChunk=function(e,t){var n=this._tap;e=e||n.pos,this._compress(n.buf.slice(0,e),this._createBlockCallback(e,t)),this._blockCount=0},w.prototype._read=function(){var e=this,t=this._queue.pop();t?(this.push(d.toBuffer(t.count,!0)),this.push(d.toBuffer(t.buf.length,!0)),this.push(t.buf),this.push(this._syncMarker),this._finished||t.cb()):this._finished&&!this._pending?r.nextTick((function(){e.push(null)})):this._needPush=!0},w.prototype._createBlockCallback=function(e,t){var n=this,r=this._index++,i=this._blockCount;return this._pending++,function(o,s){if(o){var a=new Error(g("%s codec compression error",n._codec));return a.cause=o,void n.emit("error",a)}n._pending--,n.emit("block",new j(i,e,s.length)),n._queue.push(new x(r,s,t,i)),n._needPush&&(n._needPush=!1,n._read())}},e.exports={BLOCK_TYPE:m,HEADER_TYPE:h,MAGIC_BYTES:y,streams:{BlockDecoder:_,BlockEncoder:w,RawDecoder:b,RawEncoder:$}}},6724:(e,t,n)=>{"use strict";var r=n(34155),i=n(25108),o=n(87608),s=n(34570),a=n(48764),c=n(17187),p=n(42830),l=n(89539),u=a.Buffer,d=s.Tap,f=o.Type,h=l.debuglog("avsc:services"),m=l.format,y={namespace:"org.apache.avro.ipc"},g=f.forSchema("boolean",y),v=f.forSchema({type:"map",values:"bytes"},y),b=f.forSchema("string",y),_=f.forSchema({name:"HandshakeRequest",type:"record",fields:[{name:"clientHash",type:{name:"MD5",type:"fixed",size:16}},{name:"clientProtocol",type:["null","string"],default:null},{name:"serverHash",type:"MD5"},{name:"meta",type:["null",v],default:null}]},y),$=f.forSchema({name:"HandshakeResponse",type:"record",fields:[{name:"match",type:{name:"HandshakeMatch",type:"enum",symbols:["BOTH","CLIENT","NONE"]}},{name:"serverProtocol",type:["null","string"],default:null},{name:"serverHash",type:["null","MD5"],default:null},{name:"meta",type:["null",v],default:null}]},y),w=16,j=new x("",f.forSchema({name:"PingRequest",type:"record",fields:[]},y),f.forSchema(["string"],y),f.forSchema("null",y));function x(e,t,n,r,i,o){if(this.name=e,!f.isType(t,"record"))throw new Error("invalid request type");if(this.requestType=t,!f.isType(n,"union")||!f.isType(n.getTypes()[0],"string"))throw new Error("invalid error type");if(this.errorType=n,i&&(!f.isType(r,"null")||n.getTypes().length>1))throw new Error("inapplicable one-way parameter");this.responseType=r,this.oneWay=!!i,this.doc=void 0!==o?""+o:void 0,Object.freeze(this)}function S(e,t,n,r,i){if("string"!=typeof e)return S.forProtocol(e,t);this.name=e,this._messagesByName=t||{},this.messages=Object.freeze(s.objectValues(this._messagesByName)),this._typesByName=n||{},this.types=Object.freeze(s.objectValues(this._typesByName)),this.protocol=r,this._hashStr=s.getHash(JSON.stringify(r)).toString("binary"),this.doc=r.doc?""+r.doc:void 0,this._server=i||this.createServer({silent:!0}),Object.freeze(this)}function P(e,t){t=t||{},c.EventEmitter.call(this),this._svc$=e,this._channels$=[],this._fns$=[],this._buffering$=!!t.buffering,this._cache$=t.cache||{},this._policy$=t.channelPolicy,this._strict$=!!t.strictTypes,this._timeout$=s.getOption(t,"timeout",1e4),t.remoteProtocols&&G(this._cache$,t.remoteProtocols,e,!0),this._svc$.messages.forEach((function(e){this[e.name]=this._createMessageHandler$(e)}),this)}function E(e,t){t=t||{},c.EventEmitter.call(this),this.service=e,this._handlers={},this._fns=[],this._channels={},this._nextChannelId=1,this._cache=t.cache||{},this._defaultHandler=t.defaultHandler,this._sysErrFormatter=t.systemErrorFormatter,this._silent=!!t.silent,this._strict=!!t.strictTypes,t.remoteProtocols&&G(this._cache,t.remoteProtocols,e,!1),e.messages.forEach((function(e){var n=e.name;t.noCapitalize||(n=s.capitalize(n)),this["on"+n]=this._createMessageHandler(e)}),this)}function O(e,t){t=t||{},c.EventEmitter.call(this),this.client=e,this.timeout=s.getOption(t,"timeout",e._timeout$),this._endWritable=!!s.getOption(t,"endWritable",!0),this._prefix=X(t.scope);var n=e._cache$,r=e._svc$,i=t.serverHash;i||(i=r.hash);var o=n[i];o||(o=n[i=r.hash]=new q(r,r,i)),this._adapter=o,this._registry=new D(this,w),this.pending=0,this.destroyed=!1,this.draining=!1,this.once("_eot",(function(e,t){h("client channel EOT"),this.destroyed=!0,this.emit("eot",e,t)}))}function T(e,t,n){O.call(this,e,n),this._writableFactory=t,n&&n.noPing||(h("emitting ping request"),this.ping())}function k(e,t,n,i){O.call(this,e,i),this._readable=t,this._writable=n,this._connected=!(!i||!i.noPing),this._readable.on("end",f),this._writable.on("finish",m);var o,a=this,c=null;function p(e){if(!a.destroyed){o=a._createHandshakeRequest(a._adapter,!e);var t=[_.toBuffer(o),s.bufferFrom([0,0])];a._writable.write({id:a._prefix,payload:t})}}function l(e){if(a._matchesPrefix(e.id)){var t=u.concat(e.payload);try{var n=B($,t).head;n.serverHash&&(a._adapter=a._getAdapter(n))}catch(e){return void a.destroy(e)}var i=n.match;h("handshake match: %s",i),a.emit("handshake",o,n),"NONE"===i?r.nextTick((function(){p(!0)})):(h("successfully connected"),c&&(clearTimeout(c),c=null),a._readable.removeListener("data",l).on("data",d),a._connected=!0,a.emit("_ready"),o=null)}else h("discarding unscoped response %s (still connecting)",e.id)}function d(e){var t=e.id;if(a._matchesPrefix(t)){var n=a._registry.get(t);n&&r.nextTick((function(){h("received message %s",t),n(null,u.concat(e.payload),a._adapter)}))}else h("discarding unscoped message %s",t)}function f(){a.destroy(!0)}function m(){a.destroy()}this.once("eot",(function(){c&&(clearTimeout(c),c=null),a._connected||a.emit("_ready"),this._writable.removeListener("finish",m),this._endWritable&&(h("ending transport"),this._writable.end()),this._readable.removeListener("data",l).removeListener("data",d).removeListener("end",f)})),this._connected?this._readable.on("data",d):(this._readable.on("data",l),r.nextTick(p),a.timeout&&(c=setTimeout((function(){a.destroy(new Error("timeout"))}),a.timeout)))}function A(e,t){t=t||{},c.EventEmitter.call(this),this.server=e,this._endWritable=!!s.getOption(t,"endWritable",!0),this._prefix=X(t.scope);var n=e._cache,r=e.service,i=r.hash;n[i]||(n[i]=new q(r,r,i)),this._adapter=null,this.destroyed=!1,this.draining=!1,this.pending=0,this.once("_eot",(function(e,t){h("server channel EOT"),this.emit("eot",e,t)}))}function I(e,t,n){A.call(this,e,n),this._writable=void 0;var i,o=this;function s(e){var t,n=e.id,r=u.concat(e.payload);try{var i=B(_,r),s=i.head,a=o._getAdapter(s)}catch(e){t=Z("INVALID_HANDSHAKE_REQUEST",e)}var c=o._createHandshakeResponse(t,s);function p(e){if(!o.destroyed){if(!o._writable)return void o.once("_writable",(function(){p(e)}));o._writable.write({id:n,payload:[$.toBuffer(c),e]})}o._writable&&o._endWritable&&o._writable.end()}o.emit("handshake",s,c),t?p(o._encodeSystemError(t)):o._receive(i.tail,a,p)}function a(){o.destroy()}function c(e){i.removeListener("data",s).removeListener("end",a),o.destroy(e||!0)}r.nextTick((function(){i=t.call(o,(function(e,t){r.nextTick((function(){e?c(e):(o._writable=t.on("finish",c),o.emit("_writable"))}))})).on("data",s).on("end",a)}))}function N(e,t,n,r){A.call(this,e,r),this._adapter=void 0,this._writable=n.on("finish",c),this._readable=t.on("data",o).on("end",a),this.once("_drain",(function(){this._readable.removeListener("data",o).removeListener("data",s).removeListener("end",a)})).once("eot",(function(){this._writable.removeListener("finish",c),this._endWritable&&this._writable.end()}));var i=this;function o(e){var t=e.id;if(i._matchesPrefix(t)){var n,r=u.concat(e.payload);try{var a=B(_,r),c=a.head;i._adapter=i._getAdapter(c)}catch(e){n=Z("INVALID_HANDSHAKE_REQUEST",e)}var p=i._createHandshakeResponse(n,c);i.emit("handshake",c,p),n?l(i._encodeSystemError(n)):(i._readable.removeListener("data",o).on("data",s),i._receive(a.tail,i._adapter,l))}function l(e){i.destroyed||i._writable.write({id:t,payload:[$.toBuffer(p),e]})}}function s(e){var t=e.id;if(i._matchesPrefix(t)){var n=u.concat(e.payload);i._receive(n,i._adapter,(function(e,n){i.destroyed||n||i._writable.write({id:t,payload:[e]})}))}}function a(){i.destroy()}function c(){i.destroy(!0)}}function R(e,t,n){this._msg=e,this.headers=t||{},this.request=n||{}}function M(e,t,n,r){this._msg=e,this.headers=t,this.error=n,this.response=r}function C(e,t){this.channel=t,this.locals={},this.message=e,Object.freeze(this)}function D(e,t){this._ctx=e,this._mask=-1>>>(0|t),this._id=0,this._n=0,this._cbs={}}function q(e,t,n,r){this._clientSvc=e,this._serverSvc=t,this._hash=n,this._isRemote=!!r,this._readers=H(e,t)}function F(){p.Transform.call(this,{readableObjectMode:!0}),this._id=void 0,this._buf=s.newBuffer(0),this._bufs=[],this.on("finish",(function(){this.push(null)}))}function U(){p.Transform.call(this,{writableObjectMode:!0}),this.on("finish",(function(){this.push(null)}))}function V(){p.Transform.call(this,{readableObjectMode:!0}),this._id=void 0,this._frameCount=0,this._buf=s.newBuffer(0),this._bufs=[],this.on("finish",(function(){this.push(null)}))}function L(){p.Transform.call(this,{writableObjectMode:!0}),this.on("finish",(function(){this.push(null)}))}function z(e){var t=s.newBuffer(4);return t.writeInt32BE(e),t}function B(e,t){var n=new d(t),r=e._read(n);if(!n.isValid())throw new Error(m("truncated %j",e.schema()));return{head:r,tail:n.buf.slice(n.pos)}}function K(e,t){return e.equals(t)?e:e.createResolver(t)}function H(e,t){var n={};return e.messages.forEach((function(e){var r=e.name,i=t.message(r);try{if(!i)throw new Error(m("missing server message: %s",r));if(i.oneWay!==e.oneWay)throw new Error(m("inconsistent one-way message: %s",r));n[r+"?"]=K(i.requestType,e.requestType),n[r+"*"]=K(e.errorType,i.errorType),n[r+"!"]=K(e.responseType,i.responseType)}catch(e){throw Z("INCOMPATIBLE_PROTOCOL",e)}})),n}function G(e,t,n,r){Object.keys(t).forEach((function(i){var o,s,a=t[i];r?(o=n,s=S.forProtocol(a)):(o=S.forProtocol(a),s=n),e[i]=new q(o,s,i,!0)}))}function W(e,t){var n={};return Object.keys(e).forEach((function(r){var i=e[r];if(i._isRemote){var o=t?i._serverSvc:i._clientSvc;n[r]=o.protocol}})),n}function J(e){return!!e&&"[object Error]"===Object.prototype.toString.call(e)}function Q(e,t){var n=new Error(e);return n.cause=t,n}function Z(e,t){var n=Q(e.toLowerCase().replace(/_/g," "),t);return n.rpcCode=t&&t.rpcCode?t.rpcCode:e,n}function Y(e,t,n){var r,i,o,s=[];for(r=0,i=n.length;r>32-w==0}function te(e){return!(!e||!e.pipe)}function ne(e,t){var n=e.message(t);if(!n)throw new Error(m("unknown message: %s",t));return n}function re(e){var t,n=[e.wreq,e.wres],i=[];function o(){var n=i.pop();if(n){var r=!1;n.call(e.ctx,t,(function(n){r?e.onError(Q("duplicate backward middleware call",n)):(t=n,r=!0,o())}))}else e.onCompletion.call(e.ctx,t)}!function s(a){var c=!1;a1&&(t.errors=r.slice(1)),this.oneWay&&(t["one-way"]=!0),t},s.addDeprecatedGetters(x,["name","errorType","requestType","responseType"]),x.prototype.isOneWay=l.deprecate((function(){return this.oneWay}),"use `.oneWay` directly instead of `.isOneWay()`"),S.Client=P,S.Server=E,S.compatible=function(e,t){try{H(e,t)}catch(e){return!1}return!0},S.forProtocol=function(e,t){t=t||{};var n,r=e.protocol;if(!r)throw new Error("missing protocol name");if(void 0!==e.namespace)t.namespace=e.namespace;else{var i=/^(.*)\.[^.]+$/.exec(r);i&&(t.namespace=i[1])}return r=s.qualify(r,t.namespace),e.types&&e.types.forEach((function(e){f.forSchema(e,t)})),e.messages&&(n={},Object.keys(e.messages).forEach((function(r){n[r]=x.forSchema(r,e.messages[r],t)}))),new S(r,n,t.registry,e)},S.isService=function(e){return!!e&&e.hasOwnProperty("_hashStr")},S.prototype.createClient=function(e){var t=new P(this,e);return r.nextTick((function(){if(e&&e.server){var n={objectMode:!0},r=[new p.PassThrough(n),new p.PassThrough(n)];e.server.createChannel({readable:r[0],writable:r[1]},n),t.createChannel({readable:r[1],writable:r[0]},n)}else e&&e.transport&&t.createChannel(e.transport)})),t},S.prototype.createServer=function(e){return new E(this,e)},Object.defineProperty(S.prototype,"hash",{enumerable:!0,get:function(){return s.bufferFrom(this._hashStr,"binary")}}),S.prototype.message=function(e){return this._messagesByName[e]},S.prototype.type=function(e){return this._typesByName[e]},S.prototype.inspect=function(){return m("",this.name)},s.addDeprecatedGetters(S,["message","messages","name","type","types"]),S.prototype.createEmitter=l.deprecate((function(e,t){t=t||{};var n,r,i=this.createClient({cache:t.cache,buffering:!1,strictTypes:t.strictErrors,timeout:t.timeout}),o=i.createChannel(e,t);return r=o,(n=i).on("error",(function(e){r.emit("error",e,n)})),o}),"use `.createClient()` instead of `.createEmitter()`"),S.prototype.createListener=l.deprecate((function(e,t){if(t&&t.strictErrors)throw new Error("use `.createServer()` to support strict errors");return this._server.createChannel(e,t)}),"use `.createServer().createChannel()` instead of `.createListener()`"),S.prototype.emit=l.deprecate((function(e,t,n,r){if(!n||!this.equals(n.client._svc$))throw new Error("invalid emitter");var i=n.client;return P.prototype.emitMessage.call(i,e,t,r&&r.bind(this)),n.getPending()}),"create a client via `.createClient()` to emit messages instead of `.emit()`"),S.prototype.equals=l.deprecate((function(e){return S.isService(e)&&this.getFingerprint().equals(e.getFingerprint())}),"equality testing is deprecated, compare the `.protocol`s instead"),S.prototype.getFingerprint=l.deprecate((function(e){return s.getHash(JSON.stringify(this.protocol),e)}),"use `.hash` instead of `.getFingerprint()`"),S.prototype.getSchema=l.deprecate(f.prototype.getSchema,"use `.protocol` instead of `.getSchema()`"),S.prototype.on=l.deprecate((function(e,t){var n=this;return this._server.onMessage(e,(function(e,r){return t.call(n,e,this.channel,r)})),this}),"use `.createServer().onMessage()` instead of `.on()`"),S.prototype.subprotocol=l.deprecate((function(){var e=this._server,t={strictTypes:e._strict,cache:e._cache},n=new E(e.service,t);return n._handlers=Object.create(e._handlers),new S(this.name,this._messagesByName,this._typesByName,this.protocol,n)}),"`.subprotocol()` will be removed in 5.1"),S.prototype._attrs=function(e){var t={protocol:this.name},n=[];this.types.forEach((function(t){if(void 0!==t.getName()){var r=t._attrs(e);"string"!=typeof r&&n.push(r)}})),n.length&&(t.types=n);var r=Object.keys(this._messagesByName);return r.length&&(t.messages={},r.forEach((function(n){t.messages[n]=this._messagesByName[n]._attrs(e)}),this)),e&&e.exportAttrs&&void 0!==this.doc&&(t.doc=this.doc),t},l.inherits(P,c.EventEmitter),P.prototype.activeChannels=function(){return this._channels$.slice()},P.prototype.createChannel=function(e,t){var n,r=t&&t.objectMode;if("function"==typeof e){var i;i=r?e:function(t){var r=new U,i=e((function(e,r){if(e)t(e);else{var i=(new F).once("error",(function(e){n.destroy(e)}));t(null,r.pipe(i))}}));if(i)return r.pipe(i),r},n=new T(this,i,t)}else{var o,s;if(te(e)?o=s=e:(o=e.readable,s=e.writable),!r){var a=new V;o=o.pipe(a);var c=new L;c.pipe(s),s=c}n=new k(this,o,s,t),r||(n.once("eot",(function(){o.unpipe(a),c.unpipe(s)})),a.once("error",(function(e){n.destroy(e)})))}var p=this._channels$;return p.push(n),n.once("_drain",(function(){p.splice(p.indexOf(this),1)})),this._buffering$=!1,this.emit("channel",n),n},P.prototype.destroyChannels=function(e){this._channels$.forEach((function(t){t.destroy(e&&e.noWait)}))},P.prototype.emitMessage=function(e,t,n,r){var i=new R(ne(this._svc$,e),{},t);this._emitMessage$(i,n,r)},P.prototype.remoteProtocols=function(){return W(this._cache$,!0)},Object.defineProperty(P.prototype,"service",{enumerable:!0,get:function(){return this._svc$}}),P.prototype.use=function(){var e,t,n;for(e=0,t=arguments.length;e0&&(n=setTimeout((function(){o(new Error("timeout"))}),e)),this._cbs[i]=o,this._n++,i;function o(){r._cbs[i]&&(delete r._cbs[i],r._n--,n&&clearTimeout(n),t.apply(r._ctx,arguments))}},D.prototype.clear=function(){Object.keys(this._cbs).forEach((function(e){this._cbs[e](new Error("interrupted"))}),this)},q.prototype._decodeRequest=function(e){var t,n,r=new d(e),i=v._read(r),o=b._read(r);if(o?(t=this._serverSvc.message(o),n=this._readers[o+"?"]._read(r)):t=j,!r.isValid())throw new Error(m("truncated %s request",o||"ping$"));return new R(t,i,n)},q.prototype._decodeResponse=function(e,t,n){var r=new d(e);s.copyOwnProperties(v._read(r),t.headers,!0);var i=g._read(r),o=n.name;if(o){var a=this._readers[o+(i?"*":"!")];if(n=this._clientSvc.message(o),i?t.error=a._read(r):t.response=a._read(r),!r.isValid())throw new Error(m("truncated %s response",o))}else n=j},l.inherits(F,p.Transform),F.prototype._transform=function(e,t,n){var r;for(e=u.concat([this._buf,e]);e.length>=4&&e.length>=(r=e.readInt32BE(0))+4;){if(r)this._bufs.push(e.slice(4,r+4));else{var i=this._bufs;this._bufs=[],this.push({id:null,payload:i})}e=e.slice(r+4)}this._buf=e,n()},F.prototype._flush=function(e){if(this._buf.length||this._bufs.length){var t=this._bufs.slice();t.unshift(this._buf);var n=Z("TRAILING_DATA");n.trailingData=u.concat(t).toString(),this.emit("error",n)}e()},l.inherits(U,p.Transform),U.prototype._transform=function(e,t,n){var r,i,o,s=e.payload;for(r=0,i=s.length;r=4&&e.length>=(r=e.readInt32BE(0))+4;)this._frameCount--,this._bufs.push(e.slice(4,r+4)),e=e.slice(r+4);if(this._frameCount)return this._buf=e,void n();var i={id:this._id,payload:this._bufs};this._bufs=[],this._id=void 0,this.push(i)}},V.prototype._flush=F.prototype._flush,l.inherits(L,p.Transform),L.prototype._transform=function(e,t,n){var r,i,o=e.payload,a=o.length;for((r=s.newBuffer(8)).writeInt32BE(e.id,0),r.writeInt32BE(a,4),this.push(r),i=0;i{"use strict";var r=n(67776),i=n(34570),o=n(26470),s=n(89539).format,a={date:{type:"int",logicalType:"date"},decimal:{type:"bytes",logicalType:"decimal"},time_ms:{type:"long",logicalType:"time-millis"},timestamp_ms:{type:"long",logicalType:"timestamp-millis"}};function c(e,t,n){n||"function"!=typeof t||(n=t,t=void 0),(t=t||{}).importHook||(t.importHook=r.createImportHook()),function e(n,r){t.importHook(n,"idl",(function(i,a){if(i)r(i);else if(void 0!==a){try{var c=new p(a,t)._readProtocol(a,t)}catch(i){return i.path=n,void r(i)}!function(n,r,i,a){var c=[];!function p(){var l=r.shift();if(l){var u=o.join(i,l.name);"idl"===l.kind?e(u,(function(e,t){e?a(e):(t&&c.push(t),p())})):t.importHook(u,l.kind,(function(e,t){if(e)a(e);else switch(l.kind){case"protocol":case"schema":if(void 0===t)return void p();try{var n=JSON.parse(t)}catch(e){return e.path=u,void a(e)}var r="schema"===l.kind?{types:[n]}:n;return c.push(r),void p();default:a(new Error(s("invalid import kind: %s",l.kind)))}}))}else{c.reverse();try{c.forEach((function(e){!function(e,t){var n=t.types||[];n.reverse(),n.forEach((function(n){e.types||(e.types=[]),void 0===n.namespace&&(n.namespace=d(t)||""),e.types.unshift(n)})),Object.keys(t.messages||{}).forEach((function(n){if(e.messages||(e.messages={}),e.messages[n])throw new Error(s("duplicate message: %s",n));e.messages[n]=t.messages[n]}))}(n,e)}))}catch(e){return void a(e)}a(null,n)}}()}(c.protocol,c.imports,o.dirname(n),r)}else r()}))}(e,(function(e,t){if(e)n(e);else if(t){var r=t.types;if(r){var i=d(t)||"";r.forEach((function(e){e.namespace===i&&delete e.namespace}))}n(null,t)}else n(new Error("empty root import"))}))}function p(e,t){t=t||{},this._tk=new l(e),this._ackVoidMessages=!!t.ackVoidMessages,this._implicitTags=!t.delimitedCollections,this._typeRefs=t.typeRefs||a}function l(e){this._str=e,this.pos=0}function u(e){for(var t=e.replace(/^[ \t]+|[ \t]+$/g,"").split("\n").map((function(e,t){return t?e.replace(/^\s*\*\s?/,""):e}));t.length&&!t[0];)t.shift();for(;t.length&&!t[t.length-1];)t.pop();return t.join("\n")}function d(e){if(e.namespace)return e.namespace;var t=/^(.*)\.[^.]+$/.exec(e.protocol);return t?t[1]:void 0}p.readProtocol=function(e,t){var n=new p(e,t)._readProtocol();if(n.imports.length)throw new Error("unresolvable import");return n.protocol},p.readSchema=function(e,t){var n=new p(e,t),r=n._readJavadoc(),i=n._readType(void 0===r?{}:{doc:r},!0);return n._tk.next({id:"(eof)"}),i},p.prototype._readProtocol=function(){var e,t=this._tk,n=[],r=[],i={};this._readImports(n);var o={},a=this._readJavadoc();for(void 0!==a&&(o.doc=a),this._readAnnotations(o),t.next({val:"protocol"}),t.next({val:"{",silent:!0})||(o.protocol=t.next({id:"name"}).val,t.next({val:"{"}));!t.next({val:"}",silent:!0});)if(!this._readImports(n)){var c=this._readJavadoc(),p=this._readType({},!0),l=this._readImports(n,!0),u=void 0;if(e=t.pos,!l&&(u=this._readMessage(p))){void 0!==c&&void 0===u.schema.doc&&(u.schema.doc=c);var d=!1;if("void"!==u.schema.response&&"void"!==u.schema.response.type||(d=!this._ackVoidMessages&&!u.schema.errors,"void"===u.schema.response?u.schema.response="null":u.schema.response.type="null"),d&&(u.schema["one-way"]=!0),i[u.name])throw new Error(s("duplicate message: %s",u.name));i[u.name]=u.schema}else c&&("string"==typeof p?p={doc:c,type:p}:void 0===p.doc&&(p.doc=c)),r.push(p),t.pos=e,t.next({val:";",silent:!0});c=void 0}return t.next({id:"(eof)"}),r.length&&(o.types=r),Object.keys(i).length&&(o.messages=i),{protocol:o,imports:n}},p.prototype._readAnnotations=function(e){for(var t=this._tk;t.next({val:"@",silent:!0});){for(var n=[];!t.next({val:"(",silent:!0});)n.push(t.next().val);e[n.join("")]=t.next({id:"json"}).val,t.next({val:")"})}},p.prototype._readMessage=function(e){var t=this._tk,n={request:[],response:e};this._readAnnotations(n);var r=t.next().val;if("("===t.next().val){if(!t.next({val:")",silent:!0}))do{n.request.push(this._readField())}while(!t.next({val:")",silent:!0})&&t.next({val:","}));var i=t.next();switch(i.val){case"throws":n.errors=[];do{n.errors.push(this._readType())}while(!t.next({val:";",silent:!0})&&t.next({val:","}));break;case"oneway":n["one-way"]=!0,t.next({val:";"});break;case";":break;default:throw t.error("invalid message suffix",i)}return{name:r,schema:n}}},p.prototype._readJavadoc=function(){var e=this._tk.next({id:"javadoc",emitJavadoc:!0,silent:!0});if(e)return e.val},p.prototype._readField=function(){var e=this._tk,t=this._readJavadoc(),n={type:this._readType()};return void 0!==t&&void 0===n.doc&&(n.doc=t),this._readAnnotations(n),n.name=e.next({id:"name"}).val,e.next({val:"=",silent:!0})&&(n.default=e.next({id:"json"}).val),n},p.prototype._readType=function(e,t){switch(e=e||{},this._readAnnotations(e),e.type=this._tk.next({id:"name"}).val,e.type){case"record":case"error":return this._readRecord(e);case"fixed":return this._readFixed(e);case"enum":return this._readEnum(e,t);case"map":return this._readMap(e);case"array":return this._readArray(e);case"union":if(Object.keys(e).length>1)throw new Error("union annotations are not supported");return this._readUnion();default:var n=this._typeRefs[e.type];return n&&(delete e.type,i.copyOwnProperties(n,e)),Object.keys(e).length>1?e:e.type}},p.prototype._readFixed=function(e){var t=this._tk;return t.next({val:"(",silent:!0})||(e.name=t.next({id:"name"}).val,t.next({val:"("})),e.size=parseInt(t.next({id:"number"}).val),t.next({val:")"}),e},p.prototype._readMap=function(e){var t=this._tk,n=this._implicitTags,r=void 0===t.next({val:"<",silent:n});return e.values=this._readType(),t.next({val:">",silent:r}),e},p.prototype._readArray=function(e){var t=this._tk,n=this._implicitTags,r=void 0===t.next({val:"<",silent:n});return e.items=this._readType(),t.next({val:">",silent:r}),e},p.prototype._readEnum=function(e,t){var n=this._tk;n.next({val:"{",silent:!0})||(e.name=n.next({id:"name"}).val,n.next({val:"{"})),e.symbols=[];do{e.symbols.push(n.next().val)}while(!n.next({val:"}",silent:!0})&&n.next({val:","}));return t&&n.next({val:"=",silent:!0})&&(e.default=n.next().val,n.next({val:";"})),e},p.prototype._readUnion=function(){var e=this._tk,t=[];e.next({val:"{"});do{t.push(this._readType())}while(!e.next({val:"}",silent:!0})&&e.next({val:","}));return t},p.prototype._readRecord=function(e){var t=this._tk;for(t.next({val:"{",silent:!0})||(e.name=t.next({id:"name"}).val,t.next({val:"{"})),e.fields=[];!t.next({val:"}",silent:!0});)e.fields.push(this._readField()),t.next({val:";"});return e},p.prototype._readImports=function(e,t){for(var n=this._tk,r=0,i=n.pos;n.next({val:"import",silent:!0});){if(!r&&t&&n.next({val:"(",silent:!0}))return void(n.pos=i);var o=n.next({id:"name"}).val,s=JSON.parse(n.next({id:"string"}).val);n.next({val:";"}),e.push({kind:o,name:s}),r++}return r},l.prototype.next=function(e){var t,n={pos:this.pos,id:void 0,val:void 0},r=this._skip(e&&e.emitJavadoc);if("string"==typeof r)n.id="javadoc",n.val=r;else{var i=this.pos,o=this._str,a=o.charAt(i);if(a)if(e&&"json"===e.id?(n.id="json",this.pos=this._endOfJson()):'"'===a?(n.id="string",this.pos=this._endOfString()):/[0-9]/.test(a)?(n.id="number",this.pos=this._endOf(/[0-9]/)):/[`A-Za-z_.]/.test(a)?(n.id="name",this.pos=this._endOf(/[`A-Za-z0-9_.]/)):(n.id="operator",this.pos=i+1),n.val=o.slice(i,this.pos),"json"===n.id)try{n.val=JSON.parse(n.val)}catch(t){throw this.error("invalid JSON",n)}else"name"===n.id&&(n.val=n.val.replace(/`/g,""));else n.id="(eof)"}if(e&&e.id&&e.id!==n.id?t=this.error(s("expected ID %s",e.id),n):e&&e.val&&e.val!==n.val&&(t=this.error(s("expected value %s",e.val),n)),t){if(e&&e.silent)return void(this.pos=n.pos);throw t}return n},l.prototype.error=function(e,t){var n,r="number"!=typeof t,i=r?t.pos:t,o=this._str,a=1,c=0;for(n=0;n{"use strict";var r=n(34570),i=n(48764),o=n(89539),s=i.Buffer,a=i.SlowBuffer,c=r.Tap,p=o.debuglog("avsc:types"),l=o.format,u={array:I,boolean:b,bytes:S,double:j,enum:T,error:N,fixed:k,float:w,int:_,long:$,map:A,null:v,record:N,string:x},d=new r.Lcg,f=new c(new a(1024)),h=null,m=[];function y(e,t){var n;if(h?(n=h,m.push([h,this]),h=null):n=this,this._hash=new q,this.name=void 0,this.aliases=void 0,this.doc=e&&e.doc?""+e.doc:void 0,e){var r=e.name,i=void 0===e.namespace?t&&t.namespace:e.namespace;if(void 0!==r){if(L(r=W(r,i)))throw new Error(l("cannot rename primitive type: %j",r));var o=t&&t.registry;if(o){if(void 0!==o[r])throw new Error(l("duplicate type name: %s",r));o[r]=n}}else if(t&&t.noAnonymousTypes)throw new Error(l("missing name property in schema: %j",e));this.name=r,this.aliases=e.aliases?e.aliases.map((function(e){return W(e,i)})):[]}}function g(e){y.call(this),this._branchConstructor=this._createBranchConstructor(),e||Object.freeze(this)}function v(){g.call(this)}function b(){g.call(this)}function _(){g.call(this)}function $(){g.call(this)}function w(){g.call(this)}function j(){g.call(this)}function x(){g.call(this)}function S(){g.call(this)}function P(e,t){if(y.call(this),!Array.isArray(e))throw new Error(l("non-array union schema: %j",e));if(!e.length)throw new Error("empty union");this.types=Object.freeze(e.map((function(e){return y.forSchema(e,t)}))),this._branchIndices={},this.types.forEach((function(e,t){if(y.isType(e,"union"))throw new Error("unions cannot be directly nested");var n=e.branchName;if(void 0!==this._branchIndices[n])throw new Error(l("duplicate union branch name: %j",n));this._branchIndices[n]=t}),this)}function E(e,t){P.call(this,e,t),this._dynamicBranches=null,this._bucketIndices={},this.types.forEach((function(e,t){if(y.isType(e,"abstract","logical"))this._dynamicBranches||(this._dynamicBranches=[]),this._dynamicBranches.push({index:t,type:e});else{var n=J(e);if(void 0!==this._bucketIndices[n])throw new Error(l("ambiguous unwrapped union: %j",this));this._bucketIndices[n]=t}}),this),Object.freeze(this)}function O(e,t){P.call(this,e,t),Object.freeze(this)}function T(e,t){if(y.call(this,e,t),!Array.isArray(e.symbols)||!e.symbols.length)throw new Error(l("invalid enum symbols: %j",e.symbols));if(this.symbols=Object.freeze(e.symbols.slice()),this._indices={},this.symbols.forEach((function(e,t){if(!r.isValidName(e))throw new Error(l("invalid %s symbol: %j",this,e));if(void 0!==this._indices[e])throw new Error(l("duplicate %s symbol: %j",this,e));this._indices[e]=t}),this),this.default=e.default,void 0!==this.default&&void 0===this._indices[this.default])throw new Error(l("invalid %s default: %j",this,this.default));this._branchConstructor=this._createBranchConstructor(),Object.freeze(this)}function k(e,t){if(y.call(this,e,t),e.size!==(0|e.size)||e.size<0)throw new Error(l("invalid %s size",this.branchName));this.size=0|e.size,this._branchConstructor=this._createBranchConstructor(),Object.freeze(this)}function A(e,t){if(y.call(this),!e.values)throw new Error(l("missing map values: %j",e));this.valuesType=y.forSchema(e.values,t),this._branchConstructor=this._createBranchConstructor(),Object.freeze(this)}function I(e,t){if(y.call(this),!e.items)throw new Error(l("missing array items: %j",e));this.itemsType=y.forSchema(e.items,t),this._branchConstructor=this._createBranchConstructor(),Object.freeze(this)}function N(e,t){var n=(t=t||{}).namespace;if(void 0!==e.namespace)t.namespace=e.namespace;else if(e.name){var i=r.impliedNamespace(e.name);void 0!==i&&(t.namespace=i)}if(y.call(this,e,t),!Array.isArray(e.fields))throw new Error(l("non-array record fields: %j",e.fields));if(r.hasDuplicates(e.fields,(function(e){return e.name})))throw new Error(l("duplicate field name: %j",e.fields));this._fieldsByName={},this.fields=Object.freeze(e.fields.map((function(e){var n=new C(e,t);return this._fieldsByName[n.name]=n,n}),this)),this._branchConstructor=this._createBranchConstructor(),this._isError="error"===e.type,this.recordConstructor=this._createConstructor(t.errorStackTraces,t.omitRecordMethods),this._read=this._createReader(),this._skip=this._createSkipper(),this._write=this._createWriter(),this._check=this._createChecker(),t.namespace=n,Object.freeze(this)}function R(e,t){this._logicalTypeName=e.logicalType,y.call(this),h=this;try{this._underlyingType=y.forSchema(e,t)}finally{h=null;var n=m.length;n&&m[n-1][0]===this&&m.pop()}y.isType(this.underlyingType,"union")?this._branchConstructor=this.underlyingType._branchConstructor:this._branchConstructor=this.underlyingType._createBranchConstructor()}function M(e){this._concreteTypeName="long",g.call(this,!0),this._noUnpack=!!e}function C(e,t){var n=e.name;if("string"!=typeof n||!r.isValidName(n))throw new Error(l("invalid field name: %s",n));this.name=n,this.type=y.forSchema(e.type,t),this.aliases=e.aliases||[],this.doc=void 0!==e.doc?""+e.doc:void 0,this._order=function(e){switch(e){case"ascending":return 1;case"descending":return-1;case"ignore":return 0;default:throw new Error(l("invalid order: %j",e))}}(void 0===e.order?"ascending":e.order);var i=e.default;if(void 0!==i){var o,s=this.type;try{o=s._copy(i,{coerce:2,wrap:2})}catch(e){var a=l("incompatible field default %j (%s)",i,e.message);throw y.isType(s,"union")&&(a+=l(", union defaults must match the first branch's type (%j)",s.types[0])),new Error(a)}L(s.typeName)&&"bytes"!==s.typeName?this.defaultValue=function(){return o}:this.defaultValue=function(){return s._copy(o)}}Object.freeze(this)}function D(e){this._readerType=e,this._read=null,this.itemsType=null,this.size=0,this.symbols=null,this.valuesType=null}function q(){this.str=void 0}function F(e,t,n,r){if(n){if(n._readerType!==e)throw new Error("invalid resolver");return n._read(t,r)}return e._read(t)}function U(e){var t={};e.name&&(t[e.name]=!0);var n,r,i=e.aliases;for(n=0,r=i.length;n=-9007199254740990&&e<=9007199254740990}function H(e){return e&&"Buffer"===e.type&&Array.isArray(e.data)}function G(e,t){throw new Error(l("invalid %j: %j",t.schema(),e))}function W(e,t){var n=r.unqualify(e);return L(n)?n:r.qualify(e,t)}function J(e){var t=e.typeName;switch(t){case"double":case"float":case"int":case"long":return"number";case"bytes":case"fixed":return"buffer";case"enum":return"string";case"map":case"error":case"record":return"object";default:return t}}function Q(e){if(null===e)return"null";var t=typeof e;if("object"===t){if(Array.isArray(e))return"array";if(s.isBuffer(e))return"buffer"}return t}y.forSchema=function(e,t){(t=t||{}).registry=t.registry||{};var n,r=function(e){switch(!0===e?e="always":!1===e?e="never":void 0===e?e="auto":"string"==typeof e&&(e=e.toLowerCase()),e){case"always":return O;case"never":return E;case"auto":return;default:throw new Error(l("invalid wrap unions option: %j",e))}}(t.wrapUnions);if(null===e)throw new Error('invalid type: null (did you mean "null"?)');if(y.isType(e))return e;if(t.typeHook&&(n=t.typeHook(e,t))){if(!y.isType(n))throw new Error(l("invalid typehook return value: %j",n));return n}if("string"==typeof e){if(e=W(e,t.namespace),n=t.registry[e])return n;if(L(e))return t.registry[e]=y.forSchema({type:e},t);throw new Error(l("undefined type name: %s",e))}if(e.logicalType&&t.logicalTypes&&!h){var i=t.logicalTypes[e.logicalType];if(i){var o=t.namespace,s={};Object.keys(t.registry).forEach((function(e){s[e]=t.registry[e]}));try{return p("instantiating logical type for %s",e.logicalType),new i(e,t)}catch(n){if(p("failed to instantiate logical type for %s",e.logicalType),t.assertLogicalTypes)throw n;h=null,t.namespace=o,t.registry=s}}}if(Array.isArray(e)){var a=h;h=null;var c=e.map((function(e){return y.forSchema(e,t)}));r||(r=function(e){var t,n,r,i,o={};for(t=0,n=e.length;ts&&(s=i,a=r);return a}(n);case"string":return function(e,t){var n,r,i,o,s={};for(n=0,r=e.length;n0){var a=s[0];s[0]=s[i],s[i]=a,n=y.forSchema(s,t)}}return{name:e,type:n,default:p[e]}}))}:{type:"map",values:y.forTypes(a,t)},y.forSchema(s,t)}(n,t)}}));return 1===p.length?p[0]:y.forSchema(p,t)},y.isType=function(){var e=arguments.length;if(!e)return!1;var t=arguments[0];if(!t||"function"!=typeof t._update||"function"!=typeof t.fingerprint)return!1;if(1===e)return!0;var n,r=t.typeName;for(n=1;n",t);var n=this.schema({exportAttrs:!0,noDeref:!0});return"object"!=typeof n||y.isType(this,"logical")||(n.type=void 0),l("<%s %j>",t,n)},y.prototype.isValid=function(e,t){var n,r,i=0|(t&&t.noUndeclaredFields),o=t&&t.errorHook;return o&&(r=[],n=function(t,n){o.call(this,r.slice(),t,n,e)}),this._check(e,i,n,r)},y.prototype.random=r.abstractFunction,y.prototype.schema=function(e){return this._attrs({exportAttrs:!(!e||!e.exportAttrs),noDeref:!(!e||!e.noDeref)})},y.prototype.toBuffer=function(e){f.pos=0,this._write(f,e);var t=r.newBuffer(f.pos);return f.isValid()?f.buf.copy(t,0,0,f.pos):this._write(new c(t),e),t},y.prototype.toJSON=function(){return this.schema({exportAttrs:!0})},y.prototype.toString=function(e){return void 0===e?JSON.stringify(this.schema({noDeref:!0})):JSON.stringify(this._copy(e,{coerce:3}))},y.prototype.wrap=function(e){var t=this._branchConstructor;return null===t?null:new t(e)},y.prototype._attrs=function(e){e.derefed=e.derefed||{};var t=this.name;if(void 0!==t){if(e.noDeref||e.derefed[t])return t;e.derefed[t]=!0}var n={};void 0!==this.name&&(n.name=t),n.type=this.typeName;var r=this._deref(n,e);return void 0!==r&&(n=r),e.exportAttrs&&(this.aliases&&this.aliases.length&&(n.aliases=this.aliases),void 0!==this.doc&&(n.doc=this.doc)),n},y.prototype._createBranchConstructor=function(){var e=this.branchName;if("null"===e)return null;var t=~e.indexOf(".")?"this['"+e+"']":"this."+e,n=new Function("return function Branch$(val) { "+t+" = val; };")();return n.type=this,n.prototype.unwrap=new Function("return "+t+";"),n.prototype.unwrapped=n.prototype.unwrap,n},y.prototype._peek=function(e){var t=e.pos,n=this._read(e);return e.pos=t,n},y.prototype._check=r.abstractFunction,y.prototype._copy=r.abstractFunction,y.prototype._deref=r.abstractFunction,y.prototype._match=r.abstractFunction,y.prototype._read=r.abstractFunction,y.prototype._skip=r.abstractFunction,y.prototype._update=r.abstractFunction,y.prototype._write=r.abstractFunction,y.prototype.getAliases=function(){return this.aliases},y.prototype.getFingerprint=y.prototype.fingerprint,y.prototype.getName=function(e){return this.name||!e?this.name:this.branchName},y.prototype.getSchema=y.prototype.schema,y.prototype.getTypeName=function(){return this.typeName},o.inherits(g,y),g.prototype._update=function(e,t){t.typeName===this.typeName&&(e._read=this._read)},g.prototype._copy=function(e){return this._check(e,void 0,G),e},g.prototype._deref=function(){return this.typeName},g.prototype.compare=r.compare,o.inherits(v,g),v.prototype._check=function(e,t,n){var r=null===e;return!r&&n&&n(e,this),r},v.prototype._read=function(){return null},v.prototype._skip=function(){},v.prototype._write=function(e,t){null!==t&&G(t,this)},v.prototype._match=function(){return 0},v.prototype.compare=v.prototype._match,v.prototype.typeName="null",v.prototype.random=v.prototype._read,o.inherits(b,g),b.prototype._check=function(e,t,n){var r="boolean"==typeof e;return!r&&n&&n(e,this),r},b.prototype._read=function(e){return e.readBoolean()},b.prototype._skip=function(e){e.skipBoolean()},b.prototype._write=function(e,t){"boolean"!=typeof t&&G(t,this),e.writeBoolean(t)},b.prototype._match=function(e,t){return e.matchBoolean(t)},b.prototype.typeName="boolean",b.prototype.random=function(){return d.nextBoolean()},o.inherits(_,g),_.prototype._check=function(e,t,n){var r=e===(0|e);return!r&&n&&n(e,this),r},_.prototype._read=function(e){return e.readInt()},_.prototype._skip=function(e){e.skipInt()},_.prototype._write=function(e,t){t!==(0|t)&&G(t,this),e.writeInt(t)},_.prototype._match=function(e,t){return e.matchInt(t)},_.prototype.typeName="int",_.prototype.random=function(){return 0|d.nextInt(1e3)},o.inherits($,g),$.prototype._check=function(e,t,n){var r="number"==typeof e&&e%1==0&&K(e);return!r&&n&&n(e,this),r},$.prototype._read=function(e){var t=e.readLong();if(!K(t))throw new Error("potential precision loss");return t},$.prototype._skip=function(e){e.skipLong()},$.prototype._write=function(e,t){("number"!=typeof t||t%1||!K(t))&&G(t,this),e.writeLong(t)},$.prototype._match=function(e,t){return e.matchLong(t)},$.prototype._update=function(e,t){switch(t.typeName){case"int":e._read=t._read;break;case"abstract:long":case"long":e._read=this._read}},$.prototype.typeName="long",$.prototype.random=function(){return d.nextInt()},$.__with=function(e,t){e=e||{};var n={toBuffer:"_toBuffer",fromBuffer:"_fromBuffer",fromJSON:"_fromJSON",toJSON:"_toJSON",isValid:"_isValid",compare:"compare"},r=new M(t);return Object.keys(n).forEach((function(t){if(void 0===e[t])throw new Error(l("missing method implementation: %s",t));r[n[t]]=e[t]})),Object.freeze(r)},o.inherits(w,g),w.prototype._check=function(e,t,n){var r="number"==typeof e;return!r&&n&&n(e,this),r},w.prototype._read=function(e){return e.readFloat()},w.prototype._skip=function(e){e.skipFloat()},w.prototype._write=function(e,t){"number"!=typeof t&&G(t,this),e.writeFloat(t)},w.prototype._match=function(e,t){return e.matchFloat(t)},w.prototype._update=function(e,t){switch(t.typeName){case"float":case"int":e._read=t._read;break;case"abstract:long":case"long":e._read=function(e){return e.readLong()}}},w.prototype.typeName="float",w.prototype.random=function(){return d.nextFloat(1e3)},o.inherits(j,g),j.prototype._check=function(e,t,n){var r="number"==typeof e;return!r&&n&&n(e,this),r},j.prototype._read=function(e){return e.readDouble()},j.prototype._skip=function(e){e.skipDouble()},j.prototype._write=function(e,t){"number"!=typeof t&&G(t,this),e.writeDouble(t)},j.prototype._match=function(e,t){return e.matchDouble(t)},j.prototype._update=function(e,t){switch(t.typeName){case"double":case"float":case"int":e._read=t._read;break;case"abstract:long":case"long":e._read=function(e){return e.readLong()}}},j.prototype.typeName="double",j.prototype.random=function(){return d.nextFloat()},o.inherits(x,g),x.prototype._check=function(e,t,n){var r="string"==typeof e;return!r&&n&&n(e,this),r},x.prototype._read=function(e){return e.readString()},x.prototype._skip=function(e){e.skipString()},x.prototype._write=function(e,t){"string"!=typeof t&&G(t,this),e.writeString(t)},x.prototype._match=function(e,t){return e.matchString(t)},x.prototype._update=function(e,t){switch(t.typeName){case"bytes":case"string":e._read=this._read}},x.prototype.typeName="string",x.prototype.random=function(){return d.nextString(d.nextInt(32))},o.inherits(S,g),S.prototype._check=function(e,t,n){var r=s.isBuffer(e);return!r&&n&&n(e,this),r},S.prototype._read=function(e){return e.readBytes()},S.prototype._skip=function(e){e.skipBytes()},S.prototype._write=function(e,t){s.isBuffer(t)||G(t,this),e.writeBytes(t)},S.prototype._match=function(e,t){return e.matchBytes(t)},S.prototype._update=x.prototype._update,S.prototype._copy=function(e,t){var n;switch(0|(t&&t.coerce)){case 3:return this._check(e,void 0,G),e.toString("binary");case 2:if("string"!=typeof e)throw new Error(l("cannot coerce to buffer: %j",e));return n=r.bufferFrom(e,"binary"),this._check(n,void 0,G),n;case 1:if(!H(e))throw new Error(l("cannot coerce to buffer: %j",e));return n=r.bufferFrom(e.data),this._check(n,void 0,G),n;default:return this._check(e,void 0,G),r.bufferFrom(e)}},S.prototype.compare=s.compare,S.prototype.typeName="bytes",S.prototype.random=function(){return d.nextBuffer(d.nextInt(32))},o.inherits(P,y),P.prototype._branchConstructor=function(){throw new Error("unions cannot be directly wrapped")},P.prototype._skip=function(e){this.types[e.readLong()]._skip(e)},P.prototype._match=function(e,t){var n=e.readLong(),r=t.readLong();return n===r?this.types[n]._match(e,t):n1)throw new Error(l("ambiguous aliasing for %s.%s (%s)",t.name,s.name,p));if(p.length)a=p[0],u={resolver:s.type.createResolver(h[a].type,n),name:"_"+s.name},y[a]?y[a].push(u):y[a]=[u],m.push(u.name);else{if(void 0===s.defaultValue())throw new Error(l("no matching field for default-less %s.%s",t.name,s.name));m.push("undefined")}}var g=-1;for(i=f.length;i&&void 0===y[f[--i].name];)g=i;var v=this._getConstructorName(),b=[v],_=[this.recordConstructor],$=" return function read"+v+"(t, b) {\n";for(i=0;i=g?" ":" ",b.push("r"+i),_.push(s.type),$+="r"+i+"._skip(t);\n";else for(o=y[a].length;o--;)$+=~g&&i>=g?" ":" ",b.push("r"+i+"f"+o),u=y[a][o],_.push(u.resolver),$+="var "+u.name+" = ",$+="r"+i+"f"+o+"._"+(o?"peek":"read")+"(t);\n";~g&&($+=" }\n"),$+=" return new "+v+"("+m.join()+");\n};",e._read=new Function(b.join(),$).apply(void 0,_)},N.prototype._match=function(e,t){var n,r,i,o,s,a=this.fields;for(n=0,r=a.length;n"},e.exports={Type:y,getTypeBucket:J,getValueBucket:Q,isPrimitive:L,builtins:function(){var e,t,n,r={LogicalType:R,UnwrappedUnionType:E,WrappedUnionType:O},i=Object.keys(u);for(e=0,t=i.length;e{"use strict";var r=n(48764),i=n(35880),o=n(89539),s=r.Buffer,a=new h(4096),c=/^[A-Za-z_][A-Za-z0-9_]*$/,p=o.format;function l(e){return"function"==typeof s.alloc?s.alloc(e):new s(e)}function u(e,t){return"function"==typeof s.from?s.from(e,t):new s(e,t)}function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}function f(e){return c.test(e)}function h(e){this._len=0|e,this._pos=0,this._slab=l(this._len)}function m(e){var t=Math.pow(2,31),n=Math.floor(e||Math.random()*(t-1));this._max=t,this._nextInt=function(){return n=(1103515245*n+12345)%t}}function y(){this._index=0,this._items=[]}function g(e,t){if(this.buf=e,this.pos=0|t,this.pos<0)throw new Error("negative offset")}function v(e,t){for(;t--;)e[t]=~e[t]}h.prototype.alloc=function(e){if(e<0)throw new Error("negative length");var t=this._len;return e>t?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,s,a,c,p,l=t>>1,u=0;u=s.index));)e[o]=s,e[u]=a,u=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,s=this.buf;do{t=128&(e=s[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=a.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 s.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=s.byteLength(e),n=this.buf;this.writeLong(t);var r,i,o,a,c=this.pos;if(this.pos+=t,!(this.pos>n.length))if(t>64&&"function"==typeof s.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&(a=e.charCodeAt(r+1)))?(o=65536+((1023&o)<<10)+(1023&a),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 s.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 s.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=s[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,s=3;n?(v(e,8),t=1):t=0;for(var a=[e.readUIntLE(0,3),e.readUIntLE(3,3),e.readUIntLE(6,2)];s&&!a[--s];);for(;o7;)r[this.pos++]=127&t|128,t>>=7,i-=7;t|=a[s]<>=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,s,a=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;n{"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,s,a,c=n.indexOf(e),p=n.indexOf(t,c+1),l=c;if(c>=0&&p>0){if(e===t)return[c,p];for(r=[],o=n.length;l>=0&&!a;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?a=[r.pop(),p]:((i=r.pop())=0?c:p;r.length&&(a=[o,s])}return a}e.exports=t,t.range=r},79742:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=a(e),s=o[0],c=o[1],p=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),l=0,u=c>0?s-4:s;for(n=0;n>16&255,p[l++]=t>>8&255,p[l++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,p[l++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,p[l++]=t>>8&255,p[l++]=255&t),p},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,p=r-i;ap?p:a+s));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,s=[],a=t;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},3644:(e,t,n)=>{var r=n(11048),i=n(5623);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),g(function(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(p)}(e),!0).map(u)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",p="\0PERIOD"+Math.random()+"\0";function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(p).join(".")}function d(e){if(!e)return[""];var t=[],n=i("{","}",e);if(!n)return e.split(",");var r=n.pre,o=n.body,s=n.post,a=r.split(",");a[a.length-1]+="{"+o+"}";var c=d(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function f(e){return"{"+e+"}"}function h(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function y(e,t){return e>=t}function g(e,t){var n=[],o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),u=c||p,v=o.body.indexOf(",")>=0;if(!u&&!v)return o.post.match(/,.*\}/)?g(e=o.pre+"{"+o.body+a+o.post):[e];if(u)s=o.body.split(/\.\./);else if(1===(s=d(o.body)).length&&1===(s=g(s[0],!1).map(f)).length)return($=o.post.length?g(o.post,!1):[""]).map((function(e){return o.pre+s[0]+e}));var b,_=o.pre,$=o.post.length?g(o.post,!1):[""];if(u){var w=l(s[0]),j=l(s[1]),x=Math.max(s[0].length,s[1].length),S=3==s.length?Math.abs(l(s[2])):1,P=m;j0){var A=new Array(k+1).join("0");T=O<0?"-"+A+T.slice(1):A+T}}b.push(T)}}else b=r(s,(function(e){return g(e,!1)}));for(var I=0;I{"use strict";var r=n(48764).Buffer,i=n(34155),o=n(69282),s=n(62292),a=n(30405),c=n(27948),p=n(71619);for(var l in p)t[l]=p[l];function u(e){if("number"!=typeof e||et.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,u.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||c.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},u.prototype.write=function(e,t,n,r,i,o,s){return this._write(!0,e,t,n,r,i,o,s)},u.prototype.writeSync=function(e,t,n,r,i,o,s){return this._write(!1,e,t,n,r,i,o,s)},u.prototype._write=function(e,n,s,a,c,p,l,u){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==t.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==s&&(s=r.alloc(0),c=0,a=0),this.strm.avail_in=c,this.strm.input=s,this.strm.next_in=a,this.strm.avail_out=u,this.strm.output=p,this.strm.next_out=l,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return i.nextTick((function(){d._process(),d._after()})),this},u.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},u.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=c.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=c.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=c.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=c.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},u.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},u.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},u.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},u.prototype.init=function(e,n,r,i,s){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(e>=8&&e<=15,"invalid windowBits"),o(n>=-1&&n<=9,"invalid compression level"),o(r>=1&&r<=9,"invalid memlevel"),o(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,s),this._setDictionary()},u.prototype.params=function(){throw new Error("deflateParams Not supported")},u.prototype.reset=function(){this._reset(),this._setDictionary()},u.prototype._init=function(e,n,r,i,o){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new s,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=c.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},u.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},u.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=a.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=c.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=u},42635:(e,t,n)=>{"use strict";var r=n(34155),i=n(48764).Buffer,o=n(42830).Transform,s=n(74505),a=n(89539),c=n(69282).ok,p=n(48764).kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+p.toString(16)+" bytes";s.Z_MIN_WINDOWBITS=8,s.Z_MAX_WINDOWBITS=15,s.Z_DEFAULT_WINDOWBITS=15,s.Z_MIN_CHUNK=64,s.Z_MAX_CHUNK=1/0,s.Z_DEFAULT_CHUNK=16384,s.Z_MIN_MEMLEVEL=1,s.Z_MAX_MEMLEVEL=9,s.Z_DEFAULT_MEMLEVEL=8,s.Z_MIN_LEVEL=-1,s.Z_MAX_LEVEL=9,s.Z_DEFAULT_LEVEL=s.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(s),d=0;d=p?s=new RangeError(l):t=i.concat(r,o),r=[],e.close(),n(s,t)}e.on("error",(function(t){e.removeListener("end",a),e.removeListener("readable",s),n(t)})),e.on("end",a),e.end(t),s()}function b(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function _(e){if(!(this instanceof _))return new _(e);O.call(this,e,s.DEFLATE)}function $(e){if(!(this instanceof $))return new $(e);O.call(this,e,s.INFLATE)}function w(e){if(!(this instanceof w))return new w(e);O.call(this,e,s.GZIP)}function j(e){if(!(this instanceof j))return new j(e);O.call(this,e,s.GUNZIP)}function x(e){if(!(this instanceof x))return new x(e);O.call(this,e,s.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);O.call(this,e,s.INFLATERAW)}function P(e){if(!(this instanceof P))return new P(e);O.call(this,e,s.UNZIP)}function E(e){return e===s.Z_NO_FLUSH||e===s.Z_PARTIAL_FLUSH||e===s.Z_SYNC_FLUSH||e===s.Z_FULL_FLUSH||e===s.Z_FINISH||e===s.Z_BLOCK}function O(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,o.call(this,e),e.flush&&!E(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!E(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||s.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:s.Z_FINISH,e.chunkSize&&(e.chunkSizet.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitst.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelt.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelt.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(n);var a=this;this._hadError=!1,this._handle.onerror=function(e,n){T(a),a._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],a.emit("error",r)};var c=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(c=e.level);var p=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(p=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,c,e.memLevel||t.Z_DEFAULT_MEMLEVEL,p,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=p,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function T(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function k(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=_,t.Inflate=$,t.Gzip=w,t.Gunzip=j,t.DeflateRaw=x,t.InflateRaw=S,t.Unzip=P,t.createDeflate=function(e){return new _(e)},t.createInflate=function(e){return new $(e)},t.createDeflateRaw=function(e){return new x(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new w(e)},t.createGunzip=function(e){return new j(e)},t.createUnzip=function(e){return new P(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new _(t),e,n)},t.deflateSync=function(e,t){return b(new _(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new w(t),e,n)},t.gzipSync=function(e,t){return b(new w(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new x(t),e,n)},t.deflateRawSync=function(e,t){return b(new x(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new P(t),e,n)},t.unzipSync=function(e,t){return b(new P(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new $(t),e,n)},t.inflateSync=function(e,t){return b(new $(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new j(t),e,n)},t.gunzipSync=function(e,t){return b(new j(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new S(t),e,n)},t.inflateRawSync=function(e,t){return b(new S(t),e)},a.inherits(O,o),O.prototype.params=function(e,n,i){if(et.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var o=this;this.flush(s.Z_SYNC_FLUSH,(function(){c(o._handle,"zlib binding closed"),o._handle.params(e,n),o._hadError||(o._level=e,o._strategy=n,i&&i())}))}else r.nextTick(i)},O.prototype.reset=function(){return c(this._handle,"zlib binding closed"),this._handle.reset()},O.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},O.prototype.flush=function(e,t){var n=this,o=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=s.Z_FULL_FLUSH),o.ended?t&&r.nextTick(t):o.ending?t&&this.once("end",t):o.needDrain?t&&this.once("drain",(function(){return n.flush(e,t)})):(this._flushFlag=e,this.write(i.alloc(0),"",t))},O.prototype.close=function(e){T(this,e),r.nextTick(k,this)},O.prototype._transform=function(e,t,n){var r,o=this._writableState,a=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||i.isBuffer(e)?this._handle?(a?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},O.prototype._processChunk=function(e,t,n){var r=e&&e.length,o=this._chunkSize-this._offset,s=0,a=this,u="function"==typeof n;if(!u){var d,f=[],h=0;this.on("error",(function(e){d=e})),c(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,s,r,this._buffer,this._offset,o)}while(!this._hadError&&v(m[0],m[1]));if(this._hadError)throw d;if(h>=p)throw T(this),new RangeError(l);var y=i.concat(f,h);return T(this),y}c(this._handle,"zlib binding closed");var g=this._handle.write(t,e,s,r,this._buffer,this._offset,o);function v(p,l){if(this&&(this.buffer=null,this.callback=null),!a._hadError){var d=o-l;if(c(d>=0,"have should not go down"),d>0){var m=a._buffer.slice(a._offset,a._offset+d);a._offset+=d,u?a.push(m):(f.push(m),h+=m.length)}if((0===l||a._offset>=a._chunkSize)&&(o=a._chunkSize,a._offset=0,a._buffer=i.allocUnsafe(a._chunkSize)),0===l){if(s+=r-p,r=p,!u)return!0;var y=a._handle.write(t,e,s,r,a._buffer,a._offset,a._chunkSize);return y.callback=v,void(y.buffer=e)}if(!u)return!1;n()}}g.buffer=e,g.callback=v},a.inherits(_,O),a.inherits($,O),a.inherits(w,O),a.inherits(j,O),a.inherits(x,O),a.inherits(S,O),a.inherits(P,O)},48764:(e,t,n)=>{"use strict";var r=n(25108);const i=n(79742),o=n(80645),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=function(e){return+e!=e&&(e=0),p.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function c(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|y(e,t);let r=c(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return p.from(r,t,n);const i=function(e){if(p.isBuffer(e)){const t=0|m(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Z(e.length)?c(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),c(e<0?0:0|m(e))}function f(e){const t=e.length<0?0:0|m(e.length),n=c(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function y(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let 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 A(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(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),Z(n=+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=p.from(t,r)),p.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){let o,s=1,a=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;s=2,a/=2,c/=2,n/=2}function p(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;oa&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(p.isBuffer(t)||(t=p.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!p.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},p.byteLength=y,p.prototype._isBuffer=!0,p.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},s&&(p.prototype[s]=p.prototype.inspect),p.prototype.compare=function(e,t,n,r,i){if(Q(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);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;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return $(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return j(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function T(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!p.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 M(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function C(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function D(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 q(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}p.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=X((function(e){B(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},p.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},p.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=X((function(e){B(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||N(e,4,this.length),o.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=X((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=X((function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},p.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},p.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=X((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=X((function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},p.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},p.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},p.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},p.prototype.copy=function(e,t,n,r){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");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("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function z(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){B(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||K(t,e.length-(n+1))}(r,i,o)}function B(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,n){if(Math.floor(e)!==e)throw B(e,n),new U.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),V("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),V("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=L(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=L(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+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 W(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},21924:(e,t,n)=>{"use strict";var r=n(40210),i=n(55559),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},55559:(e,t,n)=>{"use strict";var r=n(58612),i=n(40210),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||r.call(s,o),c=i("%Object.getOwnPropertyDescriptor%",!0),p=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){var t=a(r,s,arguments);return c&&p&&c(t,"length").configurable&&p(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var u=function(){return a(r,o,arguments)};p?p(e.exports,"apply",{value:u}):e.exports.apply=u},11048:e=>{e.exports=function(e,n){for(var r=[],i=0;i{var r=n(89539),i=n(69282);function o(){return(new Date).getTime()}var s,a=Array.prototype.slice,c={};s=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var p=[[function(){},"log"],[function(){s.log.apply(s,arguments)},"info"],[function(){s.log.apply(s,arguments)},"warn"],[function(){s.warn.apply(s,arguments)},"error"],[function(e){c[e]=o()},"time"],[function(e){var t=c[e];if(!t)throw new Error("No such label: "+e);delete c[e];var n=o()-t;s.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),s.error(e.stack)},"trace"],[function(e){s.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=a.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],l=0;l{"use strict";var r=n(31044)(),i=n(40210),o=r&&i("%Object.defineProperty%",!0),s=i("%SyntaxError%"),a=i("%TypeError%"),c=n(27296);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean`");if(arguments.length>4&&"boolean"!=typeof arguments[4])throw new a("`nonWritable`, if provided, must be a boolean`");if(arguments.length>5&&"boolean"!=typeof arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean`");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,l=!!c&&c(e,t);if(o)o(e,t,{configurable:null===p&&l?l.configurable:!p,enumerable:null===r&&l?l.enumerable:!r,value:n,writable:null===i&&l?l.writable:!i});else{if(r||i||p)throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4289:(e,t,n)=>{"use strict";var r=n(82215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=n(12296),c=n(31044)(),p=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;c?a(e,t,n,!0):a(e,t,n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a1?n-1:0),i=1;i/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),V=a(/^aria-[\-\w]+$/),L=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=a(/^(?:\w+script|data):/i),B=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),H="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 G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:W(),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 i=t.document,o=t.document,a=t.DocumentFragment,c=t.HTMLTemplateElement,p=t.Node,l=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,j=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,J=t.HTMLFormElement,Q=t.DOMParser,Z=t.trustedTypes,Y=l.prototype,X=P(Y,"cloneNode"),ee=P(Y,"nextSibling"),te=P(Y,"childNodes"),ne=P(Y,"parentNode");if("function"==typeof c){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var ie=function(e,t){if("object"!==(void 0===e?"undefined":H(e))||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return r.warn("TrustedTypes policy "+o+" could not be created."),null}}(Z,i),oe=ie?ie.createHTML(""):"",se=o,ae=se.implementation,ce=se.createNodeIterator,pe=se.createDocumentFragment,le=se.getElementsByTagName,ue=i.importNode,de={};try{de=S(o).documentMode?o.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof ne&&ae&&void 0!==ae.createHTMLDocument&&9!==de;var he=q,me=F,ye=U,ge=V,ve=z,be=B,_e=L,$e=null,we=x({},[].concat(G(E),G(O),G(T),G(A),G(N))),je=null,xe=x({},[].concat(G(R),G(M),G(C),G(D))),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}})),Pe=null,Ee=null,Oe=!0,Te=!0,ke=!1,Ae=!1,Ie=!1,Ne=!1,Re=!1,Me=!1,Ce=!1,De=!1,qe=!0,Fe=!0,Ue=!1,Ve={},Le=null,ze=x({},["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"]),Be=null,Ke=x({},["audio","video","img","source","image","track"]),He=null,Ge=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Ze=Qe,Ye=!1,Xe=void 0,et=["application/xhtml+xml","text/html"],tt=void 0,nt=null,rt=o.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},ot=function(e){nt&&nt===e||(e&&"object"===(void 0===e?"undefined":H(e))||(e={}),e=S(e),$e="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS):we,je="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR):xe,He="ADD_URI_SAFE_ATTR"in e?x(S(Ge),e.ADD_URI_SAFE_ATTR):Ge,Be="ADD_DATA_URI_TAGS"in e?x(S(Ke),e.ADD_DATA_URI_TAGS):Ke,Le="FORBID_CONTENTS"in e?x({},e.FORBID_CONTENTS):ze,Pe="FORBID_TAGS"in e?x({},e.FORBID_TAGS):{},Ee="FORBID_ATTR"in e?x({},e.FORBID_ATTR):{},Ve="USE_PROFILES"in e&&e.USE_PROFILES,Oe=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=e.SAFE_FOR_TEMPLATES||!1,Ie=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Ce=e.RETURN_DOM_FRAGMENT||!1,De=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,qe=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,Ue=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||_e,Ze=e.NAMESPACE||Qe,e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(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),Xe=Xe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Xe?function(e){return e}:y,Ae&&(Te=!1),Ce&&(Me=!0),Ve&&($e=x({},[].concat(G(N))),je=[],!0===Ve.html&&(x($e,E),x(je,R)),!0===Ve.svg&&(x($e,O),x(je,M),x(je,D)),!0===Ve.svgFilters&&(x($e,T),x(je,M),x(je,D)),!0===Ve.mathMl&&(x($e,A),x(je,C),x(je,D))),e.ADD_TAGS&&($e===we&&($e=S($e)),x($e,e.ADD_TAGS)),e.ADD_ATTR&&(je===xe&&(je=S(je)),x(je,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&x(He,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Le===ze&&(Le=S(Le)),x(Le,e.FORBID_CONTENTS)),Fe&&($e["#text"]=!0),Ie&&x($e,["html","head","body"]),$e.table&&(x($e,["tbody"]),delete Pe.tbody),s&&s(e),nt=e)},st=x({},["mi","mo","mn","ms","mtext"]),at=x({},["foreignobject","desc","title","annotation-xml"]),ct=x({},O);x(ct,T),x(ct,k);var pt=x({},A);x(pt,I);var lt=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},ut=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!je[e])if(Me||Ce)try{lt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){var t=void 0,n=void 0;if(Re)e=""+e;else{var r=g(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Xe&&(e=''+e+"");var i=ie?ie.createHTML(e):e;if(Ze===Qe)try{t=(new Q).parseFromString(i,Xe)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Ye?"":i}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(o.createTextNode(n),s.childNodes[0]||null),Ze===Qe?le.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:s},ft=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ht=function(e){return"object"===(void 0===p?"undefined":H(p))?e instanceof p:e&&"object"===(void 0===e?"undefined":H(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},mt=function(e,t,r){fe[e]&&f(fe[e],(function(e){e.call(n,t,r,nt)}))},yt=function(e){var t,r=void 0;if(mt("beforeSanitizeElements",e,null),(t=e)instanceof J&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof j)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore))return lt(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return lt(e),!0;var i=tt(e.nodeName);if(mt("uponSanitizeElement",e,{tagName:i,allowedTags:$e}),!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&$(/<[/\w]/g,e.innerHTML)&&$(/<[/\w]/g,e.textContent))return lt(e),!0;if("select"===i&&$(/