@harrylabsj/kiwi-merchant-cloud 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/a2a/client/client.d.ts +38 -0
- package/app/a2a/client/client.js +195 -0
- package/app/a2a/client/client.js.map +1 -0
- package/app/a2a/client/error.d.ts +35 -0
- package/app/a2a/client/error.js +34 -0
- package/app/a2a/client/error.js.map +1 -0
- package/app/a2a/client/index.d.ts +29 -0
- package/app/a2a/client/index.js +26 -0
- package/app/a2a/client/index.js.map +1 -0
- package/app/a2a/client/jsonrpc.d.ts +49 -0
- package/app/a2a/client/jsonrpc.js +86 -0
- package/app/a2a/client/jsonrpc.js.map +1 -0
- package/app/a2a/client/parse.d.ts +18 -0
- package/app/a2a/client/parse.js +158 -0
- package/app/a2a/client/parse.js.map +1 -0
- package/app/a2a/client/types.d.ts +113 -0
- package/app/a2a/client/types.js +26 -0
- package/app/a2a/client/types.js.map +1 -0
- package/app/a2a/client/url-policy.d.ts +51 -0
- package/app/a2a/client/url-policy.js +325 -0
- package/app/a2a/client/url-policy.js.map +1 -0
- package/app/a2a/clock.d.ts +30 -0
- package/app/a2a/clock.js +39 -0
- package/app/a2a/clock.js.map +1 -0
- package/app/a2a/negotiate.d.ts +96 -0
- package/app/a2a/negotiate.js +326 -0
- package/app/a2a/negotiate.js.map +1 -0
- package/app/a2a/node.d.ts +175 -0
- package/app/a2a/node.js +641 -0
- package/app/a2a/node.js.map +1 -0
- package/app/a2a/server/auth.d.ts +38 -0
- package/app/a2a/server/auth.js +121 -0
- package/app/a2a/server/auth.js.map +1 -0
- package/app/a2a/server/card.d.ts +25 -0
- package/app/a2a/server/card.js +135 -0
- package/app/a2a/server/card.js.map +1 -0
- package/app/a2a/server/errors.d.ts +127 -0
- package/app/a2a/server/errors.js +197 -0
- package/app/a2a/server/errors.js.map +1 -0
- package/app/a2a/server/generic-responder.d.ts +48 -0
- package/app/a2a/server/generic-responder.js +57 -0
- package/app/a2a/server/generic-responder.js.map +1 -0
- package/app/a2a/server/handler.d.ts +22 -0
- package/app/a2a/server/handler.js +57 -0
- package/app/a2a/server/handler.js.map +1 -0
- package/app/a2a/server/inbound-message.d.ts +37 -0
- package/app/a2a/server/inbound-message.js +104 -0
- package/app/a2a/server/inbound-message.js.map +1 -0
- package/app/a2a/server/index.d.ts +46 -0
- package/app/a2a/server/index.js +44 -0
- package/app/a2a/server/index.js.map +1 -0
- package/app/a2a/server/merchant-handler.d.ts +111 -0
- package/app/a2a/server/merchant-handler.js +993 -0
- package/app/a2a/server/merchant-handler.js.map +1 -0
- package/app/a2a/server/pipeline.d.ts +144 -0
- package/app/a2a/server/pipeline.js +561 -0
- package/app/a2a/server/pipeline.js.map +1 -0
- package/app/a2a/server/server.d.ts +101 -0
- package/app/a2a/server/server.js +800 -0
- package/app/a2a/server/server.js.map +1 -0
- package/app/a2a/server/task-registry.d.ts +59 -0
- package/app/a2a/server/task-registry.js +129 -0
- package/app/a2a/server/task-registry.js.map +1 -0
- package/app/a2a/server/throttle.d.ts +167 -0
- package/app/a2a/server/throttle.js +329 -0
- package/app/a2a/server/throttle.js.map +1 -0
- package/app/a2a/server/types.d.ts +234 -0
- package/app/a2a/server/types.js +17 -0
- package/app/a2a/server/types.js.map +1 -0
- package/app/a2a/server/ucp.d.ts +77 -0
- package/app/a2a/server/ucp.js +94 -0
- package/app/a2a/server/ucp.js.map +1 -0
- package/app/a2a/signing-key.d.ts +63 -0
- package/app/a2a/signing-key.js +191 -0
- package/app/a2a/signing-key.js.map +1 -0
- package/app/a2a/task/index.d.ts +24 -0
- package/app/a2a/task/index.js +22 -0
- package/app/a2a/task/index.js.map +1 -0
- package/app/a2a/task/ledger.d.ts +48 -0
- package/app/a2a/task/ledger.js +65 -0
- package/app/a2a/task/ledger.js.map +1 -0
- package/app/a2a/task/poller.d.ts +93 -0
- package/app/a2a/task/poller.js +184 -0
- package/app/a2a/task/poller.js.map +1 -0
- package/app/a2a/task/state.d.ts +72 -0
- package/app/a2a/task/state.js +119 -0
- package/app/a2a/task/state.js.map +1 -0
- package/app/a2a/ucp-agent.d.ts +49 -0
- package/app/a2a/ucp-agent.js +78 -0
- package/app/a2a/ucp-agent.js.map +1 -0
- package/app/a2a/v1/headers.d.ts +33 -0
- package/app/a2a/v1/headers.js +56 -0
- package/app/a2a/v1/headers.js.map +1 -0
- package/app/a2a/v1/methods.d.ts +52 -0
- package/app/a2a/v1/methods.js +75 -0
- package/app/a2a/v1/methods.js.map +1 -0
- package/app/a2a/v1/part.d.ts +48 -0
- package/app/a2a/v1/part.js +91 -0
- package/app/a2a/v1/part.js.map +1 -0
- package/app/a2a/v1/types.d.ts +94 -0
- package/app/a2a/v1/types.js +62 -0
- package/app/a2a/v1/types.js.map +1 -0
- package/app/agent/agent-db.d.ts +31 -0
- package/app/agent/agent-db.js +96 -0
- package/app/agent/agent-db.js.map +1 -0
- package/app/agent/buyer/buyer-tools.d.ts +82 -0
- package/app/agent/buyer/buyer-tools.js +1582 -0
- package/app/agent/buyer/buyer-tools.js.map +1 -0
- package/app/agent/buyer/ranker.d.ts +53 -0
- package/app/agent/buyer/ranker.js +153 -0
- package/app/agent/buyer/ranker.js.map +1 -0
- package/app/agent/buyer/scheduler.d.ts +67 -0
- package/app/agent/buyer/scheduler.js +329 -0
- package/app/agent/buyer/scheduler.js.map +1 -0
- package/app/agent/buyer/search-loop.d.ts +45 -0
- package/app/agent/buyer/search-loop.js +428 -0
- package/app/agent/buyer/search-loop.js.map +1 -0
- package/app/agent/buyer/task-store.d.ts +187 -0
- package/app/agent/buyer/task-store.js +656 -0
- package/app/agent/buyer/task-store.js.map +1 -0
- package/app/agent/buyer/types.d.ts +199 -0
- package/app/agent/buyer/types.js +127 -0
- package/app/agent/buyer/types.js.map +1 -0
- package/app/agent/chat-tools.d.ts +32 -0
- package/app/agent/chat-tools.js +200 -0
- package/app/agent/chat-tools.js.map +1 -0
- package/app/agent/chat-tui.d.ts +49 -0
- package/app/agent/chat-tui.js +314 -0
- package/app/agent/chat-tui.js.map +1 -0
- package/app/agent/connector/fake-connector.d.ts +50 -0
- package/app/agent/connector/fake-connector.js +138 -0
- package/app/agent/connector/fake-connector.js.map +1 -0
- package/app/agent/connector/http-connector.d.ts +49 -0
- package/app/agent/connector/http-connector.js +208 -0
- package/app/agent/connector/http-connector.js.map +1 -0
- package/app/agent/connector/types.d.ts +103 -0
- package/app/agent/connector/types.js +97 -0
- package/app/agent/connector/types.js.map +1 -0
- package/app/agent/context/fencing.d.ts +27 -0
- package/app/agent/context/fencing.js +126 -0
- package/app/agent/context/fencing.js.map +1 -0
- package/app/agent/context/grounding.d.ts +18 -0
- package/app/agent/context/grounding.js +22 -0
- package/app/agent/context/grounding.js.map +1 -0
- package/app/agent/fake-chat-model.d.ts +22 -0
- package/app/agent/fake-chat-model.js +132 -0
- package/app/agent/fake-chat-model.js.map +1 -0
- package/app/agent/host/events.d.ts +31 -0
- package/app/agent/host/events.js +62 -0
- package/app/agent/host/events.js.map +1 -0
- package/app/agent/host/tui-renderer.d.ts +17 -0
- package/app/agent/host/tui-renderer.js +125 -0
- package/app/agent/host/tui-renderer.js.map +1 -0
- package/app/agent/host/web-renderer.d.ts +76 -0
- package/app/agent/host/web-renderer.js +204 -0
- package/app/agent/host/web-renderer.js.map +1 -0
- package/app/agent/kernel-builder.d.ts +29 -0
- package/app/agent/kernel-builder.js +183 -0
- package/app/agent/kernel-builder.js.map +1 -0
- package/app/agent/kernel.d.ts +299 -0
- package/app/agent/kernel.js +1616 -0
- package/app/agent/kernel.js.map +1 -0
- package/app/agent/kiwi-tool.d.ts +33 -0
- package/app/agent/kiwi-tool.js +17 -0
- package/app/agent/kiwi-tool.js.map +1 -0
- package/app/agent/memory/schema.d.ts +32 -0
- package/app/agent/memory/schema.js +566 -0
- package/app/agent/memory/schema.js.map +1 -0
- package/app/agent/memory/store.d.ts +198 -0
- package/app/agent/memory/store.js +911 -0
- package/app/agent/memory/store.js.map +1 -0
- package/app/agent/memory/types.d.ts +139 -0
- package/app/agent/memory/types.js +119 -0
- package/app/agent/memory/types.js.map +1 -0
- package/app/agent/memory/vault.d.ts +49 -0
- package/app/agent/memory/vault.js +125 -0
- package/app/agent/memory/vault.js.map +1 -0
- package/app/agent/merchant/action-candidate.d.ts +137 -0
- package/app/agent/merchant/action-candidate.js +373 -0
- package/app/agent/merchant/action-candidate.js.map +1 -0
- package/app/agent/merchant/credential-broker.d.ts +67 -0
- package/app/agent/merchant/credential-broker.js +76 -0
- package/app/agent/merchant/credential-broker.js.map +1 -0
- package/app/agent/merchant/fake-merchant-client.d.ts +76 -0
- package/app/agent/merchant/fake-merchant-client.js +297 -0
- package/app/agent/merchant/fake-merchant-client.js.map +1 -0
- package/app/agent/merchant/intelligence/backend.d.ts +40 -0
- package/app/agent/merchant/intelligence/backend.js +2 -0
- package/app/agent/merchant/intelligence/backend.js.map +1 -0
- package/app/agent/merchant/intelligence/default-backend.d.ts +38 -0
- package/app/agent/merchant/intelligence/default-backend.js +477 -0
- package/app/agent/merchant/intelligence/default-backend.js.map +1 -0
- package/app/agent/merchant/intelligence/http-analytics-source.d.ts +55 -0
- package/app/agent/merchant/intelligence/http-analytics-source.js +193 -0
- package/app/agent/merchant/intelligence/http-analytics-source.js.map +1 -0
- package/app/agent/merchant/intelligence/types.d.ts +109 -0
- package/app/agent/merchant/intelligence/types.js +2 -0
- package/app/agent/merchant/intelligence/types.js.map +1 -0
- package/app/agent/merchant/merchant-client.d.ts +134 -0
- package/app/agent/merchant/merchant-client.js +460 -0
- package/app/agent/merchant/merchant-client.js.map +1 -0
- package/app/agent/merchant/merchant-enrichment.d.ts +10 -0
- package/app/agent/merchant/merchant-enrichment.js +38 -0
- package/app/agent/merchant/merchant-enrichment.js.map +1 -0
- package/app/agent/merchant/merchant-grounding.d.ts +5 -0
- package/app/agent/merchant/merchant-grounding.js +76 -0
- package/app/agent/merchant/merchant-grounding.js.map +1 -0
- package/app/agent/merchant/merchant-presentations.d.ts +8 -0
- package/app/agent/merchant/merchant-presentations.js +207 -0
- package/app/agent/merchant/merchant-presentations.js.map +1 -0
- package/app/agent/merchant/merchant-tools.d.ts +70 -0
- package/app/agent/merchant/merchant-tools.js +795 -0
- package/app/agent/merchant/merchant-tools.js.map +1 -0
- package/app/agent/merchant/types.d.ts +236 -0
- package/app/agent/merchant/types.js +252 -0
- package/app/agent/merchant/types.js.map +1 -0
- package/app/agent/mode.d.ts +32 -0
- package/app/agent/mode.js +34 -0
- package/app/agent/mode.js.map +1 -0
- package/app/agent/negotiation-chat.d.ts +93 -0
- package/app/agent/negotiation-chat.js +365 -0
- package/app/agent/negotiation-chat.js.map +1 -0
- package/app/agent/presentation/registry.d.ts +14 -0
- package/app/agent/presentation/registry.js +24 -0
- package/app/agent/presentation/registry.js.map +1 -0
- package/app/agent/presentation/runner.d.ts +11 -0
- package/app/agent/presentation/runner.js +17 -0
- package/app/agent/presentation/runner.js.map +1 -0
- package/app/agent/presentation/sanitize.d.ts +16 -0
- package/app/agent/presentation/sanitize.js +37 -0
- package/app/agent/presentation/sanitize.js.map +1 -0
- package/app/agent/presentation/types.d.ts +28 -0
- package/app/agent/presentation/types.js +8 -0
- package/app/agent/presentation/types.js.map +1 -0
- package/app/agent/session.d.ts +34 -0
- package/app/agent/session.js +156 -0
- package/app/agent/session.js.map +1 -0
- package/app/agent/skills/registry.d.ts +11 -0
- package/app/agent/skills/registry.js +119 -0
- package/app/agent/skills/registry.js.map +1 -0
- package/app/agent/skills/tools.d.ts +6 -0
- package/app/agent/skills/tools.js +36 -0
- package/app/agent/skills/tools.js.map +1 -0
- package/app/agent/skills/types.d.ts +9 -0
- package/app/agent/skills/types.js +2 -0
- package/app/agent/skills/types.js.map +1 -0
- package/app/agent/supplier/scheduler.d.ts +86 -0
- package/app/agent/supplier/scheduler.js +618 -0
- package/app/agent/supplier/scheduler.js.map +1 -0
- package/app/agent/supplier/store.d.ts +173 -0
- package/app/agent/supplier/store.js +387 -0
- package/app/agent/supplier/store.js.map +1 -0
- package/app/agent/system-prompt.d.ts +30 -0
- package/app/agent/system-prompt.js +94 -0
- package/app/agent/system-prompt.js.map +1 -0
- package/app/agent/write-gate.d.ts +102 -0
- package/app/agent/write-gate.js +82 -0
- package/app/agent/write-gate.js.map +1 -0
- package/app/alerts/external-delivery.d.ts +78 -0
- package/app/alerts/external-delivery.js +256 -0
- package/app/alerts/external-delivery.js.map +1 -0
- package/app/auth/app-oauth-callback.d.ts +38 -0
- package/app/auth/app-oauth-callback.js +119 -0
- package/app/auth/app-oauth-callback.js.map +1 -0
- package/app/auth/merchant-authorization.d.ts +49 -0
- package/app/auth/merchant-authorization.js +61 -0
- package/app/auth/merchant-authorization.js.map +1 -0
- package/app/auth/merchant-oauth.d.ts +255 -0
- package/app/auth/merchant-oauth.js +738 -0
- package/app/auth/merchant-oauth.js.map +1 -0
- package/app/auth/merchant-pairing.d.ts +113 -0
- package/app/auth/merchant-pairing.js +249 -0
- package/app/auth/merchant-pairing.js.map +1 -0
- package/app/auth/merchant-sessions.d.ts +77 -0
- package/app/auth/merchant-sessions.js +190 -0
- package/app/auth/merchant-sessions.js.map +1 -0
- package/app/buyer-core/a2a-knp.d.ts +71 -0
- package/app/buyer-core/a2a-knp.js +139 -0
- package/app/buyer-core/a2a-knp.js.map +1 -0
- package/app/buyer-core/a2a-negotiator.d.ts +37 -0
- package/app/buyer-core/a2a-negotiator.js +152 -0
- package/app/buyer-core/a2a-negotiator.js.map +1 -0
- package/app/buyer-core/a2a-quote-fetcher.d.ts +44 -0
- package/app/buyer-core/a2a-quote-fetcher.js +178 -0
- package/app/buyer-core/a2a-quote-fetcher.js.map +1 -0
- package/app/buyer-core/build-service.d.ts +51 -0
- package/app/buyer-core/build-service.js +96 -0
- package/app/buyer-core/build-service.js.map +1 -0
- package/app/buyer-core/errors.d.ts +31 -0
- package/app/buyer-core/errors.js +54 -0
- package/app/buyer-core/errors.js.map +1 -0
- package/app/buyer-core/merchant-index.d.ts +118 -0
- package/app/buyer-core/merchant-index.js +481 -0
- package/app/buyer-core/merchant-index.js.map +1 -0
- package/app/buyer-core/negotiator.d.ts +41 -0
- package/app/buyer-core/negotiator.js +192 -0
- package/app/buyer-core/negotiator.js.map +1 -0
- package/app/buyer-core/network-search.d.ts +92 -0
- package/app/buyer-core/network-search.js +144 -0
- package/app/buyer-core/network-search.js.map +1 -0
- package/app/buyer-core/product-summary.d.ts +71 -0
- package/app/buyer-core/product-summary.js +63 -0
- package/app/buyer-core/product-summary.js.map +1 -0
- package/app/buyer-core/quote-fetcher.d.ts +46 -0
- package/app/buyer-core/quote-fetcher.js +167 -0
- package/app/buyer-core/quote-fetcher.js.map +1 -0
- package/app/buyer-core/service.d.ts +359 -0
- package/app/buyer-core/service.js +700 -0
- package/app/buyer-core/service.js.map +1 -0
- package/app/buyer-core/store.d.ts +84 -0
- package/app/buyer-core/store.js +256 -0
- package/app/buyer-core/store.js.map +1 -0
- package/app/cli.d.ts +97 -0
- package/app/cli.js +2330 -0
- package/app/cli.js.map +1 -0
- package/app/cloud/binding/audit.d.ts +72 -0
- package/app/cloud/binding/audit.js +137 -0
- package/app/cloud/binding/audit.js.map +1 -0
- package/app/cloud/binding/enrollment-challenge.d.ts +37 -0
- package/app/cloud/binding/enrollment-challenge.js +153 -0
- package/app/cloud/binding/enrollment-challenge.js.map +1 -0
- package/app/cloud/binding/enrollment-heartbeat.d.ts +26 -0
- package/app/cloud/binding/enrollment-heartbeat.js +146 -0
- package/app/cloud/binding/enrollment-heartbeat.js.map +1 -0
- package/app/cloud/binding/enrollment-key-recovery.d.ts +27 -0
- package/app/cloud/binding/enrollment-key-recovery.js +127 -0
- package/app/cloud/binding/enrollment-key-recovery.js.map +1 -0
- package/app/cloud/binding/issuance.d.ts +76 -0
- package/app/cloud/binding/issuance.js +121 -0
- package/app/cloud/binding/issuance.js.map +1 -0
- package/app/cloud/binding/proofs.d.ts +110 -0
- package/app/cloud/binding/proofs.js +200 -0
- package/app/cloud/binding/proofs.js.map +1 -0
- package/app/cloud/binding/runtime-challenge.d.ts +48 -0
- package/app/cloud/binding/runtime-challenge.js +185 -0
- package/app/cloud/binding/runtime-challenge.js.map +1 -0
- package/app/cloud/bootstrap.d.ts +63 -0
- package/app/cloud/bootstrap.js +1161 -0
- package/app/cloud/bootstrap.js.map +1 -0
- package/app/cloud/catalog-client.d.ts +305 -0
- package/app/cloud/catalog-client.js +962 -0
- package/app/cloud/catalog-client.js.map +1 -0
- package/app/cloud/config.d.ts +103 -0
- package/app/cloud/config.js +274 -0
- package/app/cloud/config.js.map +1 -0
- package/app/cloud/http-router.d.ts +63 -0
- package/app/cloud/http-router.js +135 -0
- package/app/cloud/http-router.js.map +1 -0
- package/app/cloud/listing-publisher.d.ts +45 -0
- package/app/cloud/listing-publisher.js +244 -0
- package/app/cloud/listing-publisher.js.map +1 -0
- package/app/cloud/main.d.ts +16 -0
- package/app/cloud/main.js +64 -0
- package/app/cloud/main.js.map +1 -0
- package/app/cloud/merchant-connect.d.ts +47 -0
- package/app/cloud/merchant-connect.js +331 -0
- package/app/cloud/merchant-connect.js.map +1 -0
- package/app/cloud/merchant-identity.d.ts +14 -0
- package/app/cloud/merchant-identity.js +76 -0
- package/app/cloud/merchant-identity.js.map +1 -0
- package/app/cloud/onboarding/catalog-pipeline.d.ts +135 -0
- package/app/cloud/onboarding/catalog-pipeline.js +454 -0
- package/app/cloud/onboarding/catalog-pipeline.js.map +1 -0
- package/app/cloud/onboarding/local-fallback.d.ts +86 -0
- package/app/cloud/onboarding/local-fallback.js +98 -0
- package/app/cloud/onboarding/local-fallback.js.map +1 -0
- package/app/cloud/onboarding/steps.d.ts +95 -0
- package/app/cloud/onboarding/steps.js +175 -0
- package/app/cloud/onboarding/steps.js.map +1 -0
- package/app/cloud/onboarding/store.d.ts +136 -0
- package/app/cloud/onboarding/store.js +472 -0
- package/app/cloud/onboarding/store.js.map +1 -0
- package/app/cloud/onboarding/types.d.ts +132 -0
- package/app/cloud/onboarding/types.js +152 -0
- package/app/cloud/onboarding/types.js.map +1 -0
- package/app/cloud/product-import-tabular.d.ts +100 -0
- package/app/cloud/product-import-tabular.js +1073 -0
- package/app/cloud/product-import-tabular.js.map +1 -0
- package/app/cloud/product-source.d.ts +104 -0
- package/app/cloud/product-source.js +276 -0
- package/app/cloud/product-source.js.map +1 -0
- package/app/cloud/readiness.d.ts +49 -0
- package/app/cloud/readiness.js +54 -0
- package/app/cloud/readiness.js.map +1 -0
- package/app/cloud-sample/merchant.yaml +27 -0
- package/app/cloud-sample/products.json +22 -0
- package/app/commerce/data-source.d.ts +107 -0
- package/app/commerce/data-source.js +25 -0
- package/app/commerce/data-source.js.map +1 -0
- package/app/commerce/fake-client.d.ts +167 -0
- package/app/commerce/fake-client.js +549 -0
- package/app/commerce/fake-client.js.map +1 -0
- package/app/commerce/http-client.d.ts +73 -0
- package/app/commerce/http-client.js +288 -0
- package/app/commerce/http-client.js.map +1 -0
- package/app/commerce/shopping-cli-source.d.ts +57 -0
- package/app/commerce/shopping-cli-source.js +234 -0
- package/app/commerce/shopping-cli-source.js.map +1 -0
- package/app/commerce/types.d.ts +146 -0
- package/app/commerce/types.js +31 -0
- package/app/commerce/types.js.map +1 -0
- package/app/config/profile.d.ts +225 -0
- package/app/config/profile.js +654 -0
- package/app/config/profile.js.map +1 -0
- package/app/config/provider-kind.d.ts +26 -0
- package/app/config/provider-kind.js +19 -0
- package/app/config/provider-kind.js.map +1 -0
- package/app/contracts/cloud-contracts.d.ts +23 -0
- package/app/contracts/cloud-contracts.js +90 -0
- package/app/contracts/cloud-contracts.js.map +1 -0
- package/app/contracts/negotiation-schema.d.ts +28 -0
- package/app/contracts/negotiation-schema.js +101 -0
- package/app/contracts/negotiation-schema.js.map +1 -0
- package/app/contracts/northbound-schema.d.ts +27 -0
- package/app/contracts/northbound-schema.js +102 -0
- package/app/contracts/northbound-schema.js.map +1 -0
- package/app/contracts/schemas.d.ts +31 -0
- package/app/contracts/schemas.js +122 -0
- package/app/contracts/schemas.js.map +1 -0
- package/app/counterparty/a2a-direct/index.d.ts +57 -0
- package/app/counterparty/a2a-direct/index.js +378 -0
- package/app/counterparty/a2a-direct/index.js.map +1 -0
- package/app/counterparty/channel.d.ts +200 -0
- package/app/counterparty/channel.js +61 -0
- package/app/counterparty/channel.js.map +1 -0
- package/app/counterparty/index.d.ts +28 -0
- package/app/counterparty/index.js +24 -0
- package/app/counterparty/index.js.map +1 -0
- package/app/counterparty/platform-api/index.d.ts +41 -0
- package/app/counterparty/platform-api/index.js +65 -0
- package/app/counterparty/platform-api/index.js.map +1 -0
- package/app/counterparty/registry.d.ts +53 -0
- package/app/counterparty/registry.js +73 -0
- package/app/counterparty/registry.js.map +1 -0
- package/app/counterparty/shopping-cli-hosted/index.d.ts +39 -0
- package/app/counterparty/shopping-cli-hosted/index.js +377 -0
- package/app/counterparty/shopping-cli-hosted/index.js.map +1 -0
- package/app/demo/demo-runner.d.ts +81 -0
- package/app/demo/demo-runner.js +445 -0
- package/app/demo/demo-runner.js.map +1 -0
- package/app/discovery/agent-card/error.d.ts +28 -0
- package/app/discovery/agent-card/error.js +31 -0
- package/app/discovery/agent-card/error.js.map +1 -0
- package/app/discovery/agent-card/extensions.d.ts +20 -0
- package/app/discovery/agent-card/extensions.js +59 -0
- package/app/discovery/agent-card/extensions.js.map +1 -0
- package/app/discovery/agent-card/index.d.ts +29 -0
- package/app/discovery/agent-card/index.js +38 -0
- package/app/discovery/agent-card/index.js.map +1 -0
- package/app/discovery/agent-card/secrets.d.ts +30 -0
- package/app/discovery/agent-card/secrets.js +240 -0
- package/app/discovery/agent-card/secrets.js.map +1 -0
- package/app/discovery/agent-card/types.d.ts +113 -0
- package/app/discovery/agent-card/types.js +37 -0
- package/app/discovery/agent-card/types.js.map +1 -0
- package/app/discovery/agent-card/validate.d.ts +31 -0
- package/app/discovery/agent-card/validate.js +217 -0
- package/app/discovery/agent-card/validate.js.map +1 -0
- package/app/discovery/capability/error.d.ts +23 -0
- package/app/discovery/capability/error.js +28 -0
- package/app/discovery/capability/error.js.map +1 -0
- package/app/discovery/capability/index.d.ts +21 -0
- package/app/discovery/capability/index.js +21 -0
- package/app/discovery/capability/index.js.map +1 -0
- package/app/discovery/capability/intersect.d.ts +56 -0
- package/app/discovery/capability/intersect.js +137 -0
- package/app/discovery/capability/intersect.js.map +1 -0
- package/app/discovery/catalog-source/buyer-follows.d.ts +82 -0
- package/app/discovery/catalog-source/buyer-follows.js +228 -0
- package/app/discovery/catalog-source/buyer-follows.js.map +1 -0
- package/app/discovery/catalog-source/cloud-card.d.ts +184 -0
- package/app/discovery/catalog-source/cloud-card.js +385 -0
- package/app/discovery/catalog-source/cloud-card.js.map +1 -0
- package/app/discovery/catalog-source/cloud-hosting.d.ts +71 -0
- package/app/discovery/catalog-source/cloud-hosting.js +70 -0
- package/app/discovery/catalog-source/cloud-hosting.js.map +1 -0
- package/app/discovery/catalog-source/connector-identity.d.ts +75 -0
- package/app/discovery/catalog-source/connector-identity.js +175 -0
- package/app/discovery/catalog-source/connector-identity.js.map +1 -0
- package/app/discovery/catalog-source/errors.d.ts +42 -0
- package/app/discovery/catalog-source/errors.js +56 -0
- package/app/discovery/catalog-source/errors.js.map +1 -0
- package/app/discovery/catalog-source/index.d.ts +32 -0
- package/app/discovery/catalog-source/index.js +31 -0
- package/app/discovery/catalog-source/index.js.map +1 -0
- package/app/discovery/catalog-source/kiwi-record.d.ts +190 -0
- package/app/discovery/catalog-source/kiwi-record.js +72 -0
- package/app/discovery/catalog-source/kiwi-record.js.map +1 -0
- package/app/discovery/catalog-source/kiwi-schema.d.ts +33 -0
- package/app/discovery/catalog-source/kiwi-schema.js +106 -0
- package/app/discovery/catalog-source/kiwi-schema.js.map +1 -0
- package/app/discovery/catalog-source/kiwi-source.d.ts +38 -0
- package/app/discovery/catalog-source/kiwi-source.js +335 -0
- package/app/discovery/catalog-source/kiwi-source.js.map +1 -0
- package/app/discovery/catalog-source/merchant-publications.d.ts +65 -0
- package/app/discovery/catalog-source/merchant-publications.js +212 -0
- package/app/discovery/catalog-source/merchant-publications.js.map +1 -0
- package/app/discovery/catalog-source/register.d.ts +82 -0
- package/app/discovery/catalog-source/register.js +159 -0
- package/app/discovery/catalog-source/register.js.map +1 -0
- package/app/discovery/catalog-source/schema.d.ts +21 -0
- package/app/discovery/catalog-source/schema.js +63 -0
- package/app/discovery/catalog-source/schema.js.map +1 -0
- package/app/discovery/catalog-source/source.d.ts +47 -0
- package/app/discovery/catalog-source/source.js +202 -0
- package/app/discovery/catalog-source/source.js.map +1 -0
- package/app/discovery/catalog-source/types.d.ts +122 -0
- package/app/discovery/catalog-source/types.js +30 -0
- package/app/discovery/catalog-source/types.js.map +1 -0
- package/app/discovery/index.d.ts +25 -0
- package/app/discovery/index.js +25 -0
- package/app/discovery/index.js.map +1 -0
- package/app/discovery/merchant-subscriptions.d.ts +45 -0
- package/app/discovery/merchant-subscriptions.js +319 -0
- package/app/discovery/merchant-subscriptions.js.map +1 -0
- package/app/discovery/resolve.d.ts +230 -0
- package/app/discovery/resolve.js +487 -0
- package/app/discovery/resolve.js.map +1 -0
- package/app/discovery/ucp/error.d.ts +25 -0
- package/app/discovery/ucp/error.js +27 -0
- package/app/discovery/ucp/error.js.map +1 -0
- package/app/discovery/ucp/index.d.ts +33 -0
- package/app/discovery/ucp/index.js +28 -0
- package/app/discovery/ucp/index.js.map +1 -0
- package/app/discovery/ucp/intersect.d.ts +148 -0
- package/app/discovery/ucp/intersect.js +312 -0
- package/app/discovery/ucp/intersect.js.map +1 -0
- package/app/discovery/ucp/resolver.d.ts +69 -0
- package/app/discovery/ucp/resolver.js +243 -0
- package/app/discovery/ucp/resolver.js.map +1 -0
- package/app/discovery/ucp/types.d.ts +97 -0
- package/app/discovery/ucp/types.js +103 -0
- package/app/discovery/ucp/types.js.map +1 -0
- package/app/discovery/ucp/validate.d.ts +38 -0
- package/app/discovery/ucp/validate.js +232 -0
- package/app/discovery/ucp/validate.js.map +1 -0
- package/app/discovery/ucp/vendor.d.ts +60 -0
- package/app/discovery/ucp/vendor.js +61 -0
- package/app/discovery/ucp/vendor.js.map +1 -0
- package/app/doctor.d.ts +26 -0
- package/app/doctor.js +113 -0
- package/app/doctor.js.map +1 -0
- package/app/exit-codes.d.ts +26 -0
- package/app/exit-codes.js +27 -0
- package/app/exit-codes.js.map +1 -0
- package/app/fanout/disclosure.d.ts +138 -0
- package/app/fanout/disclosure.js +188 -0
- package/app/fanout/disclosure.js.map +1 -0
- package/app/fanout/index.d.ts +32 -0
- package/app/fanout/index.js +30 -0
- package/app/fanout/index.js.map +1 -0
- package/app/fanout/orchestrator.d.ts +155 -0
- package/app/fanout/orchestrator.js +442 -0
- package/app/fanout/orchestrator.js.map +1 -0
- package/app/fanout/policy.d.ts +128 -0
- package/app/fanout/policy.js +130 -0
- package/app/fanout/policy.js.map +1 -0
- package/app/fs/atomic-write.d.ts +18 -0
- package/app/fs/atomic-write.js +29 -0
- package/app/fs/atomic-write.js.map +1 -0
- package/app/handoff/acp-commerce.d.ts +58 -0
- package/app/handoff/acp-commerce.js +69 -0
- package/app/handoff/acp-commerce.js.map +1 -0
- package/app/handoff/authorization.d.ts +127 -0
- package/app/handoff/authorization.js +107 -0
- package/app/handoff/authorization.js.map +1 -0
- package/app/handoff/candidate.d.ts +94 -0
- package/app/handoff/candidate.js +172 -0
- package/app/handoff/candidate.js.map +1 -0
- package/app/handoff/channel.d.ts +88 -0
- package/app/handoff/channel.js +189 -0
- package/app/handoff/channel.js.map +1 -0
- package/app/handoff/completion.d.ts +44 -0
- package/app/handoff/completion.js +136 -0
- package/app/handoff/completion.js.map +1 -0
- package/app/handoff/delivery.d.ts +61 -0
- package/app/handoff/delivery.js +190 -0
- package/app/handoff/delivery.js.map +1 -0
- package/app/handoff/destination.d.ts +39 -0
- package/app/handoff/destination.js +110 -0
- package/app/handoff/destination.js.map +1 -0
- package/app/handoff/errors.d.ts +34 -0
- package/app/handoff/errors.js +48 -0
- package/app/handoff/errors.js.map +1 -0
- package/app/handoff/idempotency.d.ts +60 -0
- package/app/handoff/idempotency.js +178 -0
- package/app/handoff/idempotency.js.map +1 -0
- package/app/handoff/index.d.ts +46 -0
- package/app/handoff/index.js +48 -0
- package/app/handoff/index.js.map +1 -0
- package/app/handoff/ledger.d.ts +104 -0
- package/app/handoff/ledger.js +282 -0
- package/app/handoff/ledger.js.map +1 -0
- package/app/handoff/lifecycle.d.ts +29 -0
- package/app/handoff/lifecycle.js +102 -0
- package/app/handoff/lifecycle.js.map +1 -0
- package/app/handoff/metrics.d.ts +56 -0
- package/app/handoff/metrics.js +78 -0
- package/app/handoff/metrics.js.map +1 -0
- package/app/handoff/operator-approval.d.ts +143 -0
- package/app/handoff/operator-approval.js +287 -0
- package/app/handoff/operator-approval.js.map +1 -0
- package/app/handoff/order-record.d.ts +104 -0
- package/app/handoff/order-record.js +257 -0
- package/app/handoff/order-record.js.map +1 -0
- package/app/handoff/package.d.ts +102 -0
- package/app/handoff/package.js +132 -0
- package/app/handoff/package.js.map +1 -0
- package/app/handoff/transaction.d.ts +115 -0
- package/app/handoff/transaction.js +314 -0
- package/app/handoff/transaction.js.map +1 -0
- package/app/handoff/ucp-checkout/cart-channel.d.ts +111 -0
- package/app/handoff/ucp-checkout/cart-channel.js +370 -0
- package/app/handoff/ucp-checkout/cart-channel.js.map +1 -0
- package/app/handoff/ucp-checkout/cart-parse.d.ts +22 -0
- package/app/handoff/ucp-checkout/cart-parse.js +102 -0
- package/app/handoff/ucp-checkout/cart-parse.js.map +1 -0
- package/app/handoff/ucp-checkout/cart-types.d.ts +93 -0
- package/app/handoff/ucp-checkout/cart-types.js +38 -0
- package/app/handoff/ucp-checkout/cart-types.js.map +1 -0
- package/app/handoff/ucp-checkout/channel.d.ts +159 -0
- package/app/handoff/ucp-checkout/channel.js +641 -0
- package/app/handoff/ucp-checkout/channel.js.map +1 -0
- package/app/handoff/ucp-checkout/client.d.ts +88 -0
- package/app/handoff/ucp-checkout/client.js +228 -0
- package/app/handoff/ucp-checkout/client.js.map +1 -0
- package/app/handoff/ucp-checkout/endpoint.d.ts +36 -0
- package/app/handoff/ucp-checkout/endpoint.js +145 -0
- package/app/handoff/ucp-checkout/endpoint.js.map +1 -0
- package/app/handoff/ucp-checkout/index.d.ts +35 -0
- package/app/handoff/ucp-checkout/index.js +36 -0
- package/app/handoff/ucp-checkout/index.js.map +1 -0
- package/app/handoff/ucp-checkout/parse.d.ts +71 -0
- package/app/handoff/ucp-checkout/parse.js +349 -0
- package/app/handoff/ucp-checkout/parse.js.map +1 -0
- package/app/handoff/ucp-checkout/totals.d.ts +41 -0
- package/app/handoff/ucp-checkout/totals.js +36 -0
- package/app/handoff/ucp-checkout/totals.js.map +1 -0
- package/app/handoff/ucp-checkout/types.d.ts +149 -0
- package/app/handoff/ucp-checkout/types.js +58 -0
- package/app/handoff/ucp-checkout/types.js.map +1 -0
- package/app/handoff/url-safety.d.ts +44 -0
- package/app/handoff/url-safety.js +121 -0
- package/app/handoff/url-safety.js.map +1 -0
- package/app/http/cli.d.ts +16 -0
- package/app/http/cli.js +123 -0
- package/app/http/cli.js.map +1 -0
- package/app/http/merchant-engagement-api.d.ts +10 -0
- package/app/http/merchant-engagement-api.js +138 -0
- package/app/http/merchant-engagement-api.js.map +1 -0
- package/app/http/merchant-feed-api.d.ts +7 -0
- package/app/http/merchant-feed-api.js +129 -0
- package/app/http/merchant-feed-api.js.map +1 -0
- package/app/http/merchant-follow-api.d.ts +15 -0
- package/app/http/merchant-follow-api.js +192 -0
- package/app/http/merchant-follow-api.js.map +1 -0
- package/app/http/merchant-management/api.d.ts +258 -0
- package/app/http/merchant-management/api.js +3022 -0
- package/app/http/merchant-management/api.js.map +1 -0
- package/app/http/merchant-management/draft-store.d.ts +51 -0
- package/app/http/merchant-management/draft-store.js +95 -0
- package/app/http/merchant-management/draft-store.js.map +1 -0
- package/app/http/merchant-management/event-projection.d.ts +41 -0
- package/app/http/merchant-management/event-projection.js +190 -0
- package/app/http/merchant-management/event-projection.js.map +1 -0
- package/app/http/merchant-management/operation-store.d.ts +97 -0
- package/app/http/merchant-management/operation-store.js +252 -0
- package/app/http/merchant-management/operation-store.js.map +1 -0
- package/app/http/merchant-management/page.d.ts +29 -0
- package/app/http/merchant-management/page.js +641 -0
- package/app/http/merchant-management/page.js.map +1 -0
- package/app/http/merchant-management/problem-client.d.ts +19 -0
- package/app/http/merchant-management/problem-client.js +55 -0
- package/app/http/merchant-management/problem-client.js.map +1 -0
- package/app/http/merchant-management/problem.d.ts +74 -0
- package/app/http/merchant-management/problem.js +112 -0
- package/app/http/merchant-management/problem.js.map +1 -0
- package/app/http/merchant-management/reconciliation-worker.d.ts +95 -0
- package/app/http/merchant-management/reconciliation-worker.js +397 -0
- package/app/http/merchant-management/reconciliation-worker.js.map +1 -0
- package/app/http/merchant-management/service-state.d.ts +86 -0
- package/app/http/merchant-management/service-state.js +217 -0
- package/app/http/merchant-management/service-state.js.map +1 -0
- package/app/http/merchant-management/trusted-page.d.ts +3 -0
- package/app/http/merchant-management/trusted-page.js +73 -0
- package/app/http/merchant-management/trusted-page.js.map +1 -0
- package/app/http/merchant-management/webauthn-confirmation.d.ts +148 -0
- package/app/http/merchant-management/webauthn-confirmation.js +517 -0
- package/app/http/merchant-management/webauthn-confirmation.js.map +1 -0
- package/app/http/merchant-privacy-api.d.ts +9 -0
- package/app/http/merchant-privacy-api.js +96 -0
- package/app/http/merchant-privacy-api.js.map +1 -0
- package/app/http/merchant-server.d.ts +65 -0
- package/app/http/merchant-server.js +346 -0
- package/app/http/merchant-server.js.map +1 -0
- package/app/http/server.d.ts +39 -0
- package/app/http/server.js +300 -0
- package/app/http/server.js.map +1 -0
- package/app/i18n.d.ts +24 -0
- package/app/i18n.js +27 -0
- package/app/i18n.js.map +1 -0
- package/app/mcp/cli.d.ts +72 -0
- package/app/mcp/cli.js +153 -0
- package/app/mcp/cli.js.map +1 -0
- package/app/mcp/merchant-auth.d.ts +78 -0
- package/app/mcp/merchant-auth.js +146 -0
- package/app/mcp/merchant-auth.js.map +1 -0
- package/app/mcp/merchant-dirs.d.ts +26 -0
- package/app/mcp/merchant-dirs.js +44 -0
- package/app/mcp/merchant-dirs.js.map +1 -0
- package/app/mcp/merchant-resources.d.ts +38 -0
- package/app/mcp/merchant-resources.js +146 -0
- package/app/mcp/merchant-resources.js.map +1 -0
- package/app/mcp/merchant-rfq-resources.d.ts +37 -0
- package/app/mcp/merchant-rfq-resources.js +132 -0
- package/app/mcp/merchant-rfq-resources.js.map +1 -0
- package/app/mcp/merchant-rfq-tools.d.ts +61 -0
- package/app/mcp/merchant-rfq-tools.js +584 -0
- package/app/mcp/merchant-rfq-tools.js.map +1 -0
- package/app/mcp/merchant-runtime-assembly.d.ts +74 -0
- package/app/mcp/merchant-runtime-assembly.js +476 -0
- package/app/mcp/merchant-runtime-assembly.js.map +1 -0
- package/app/mcp/merchant-server.d.ts +171 -0
- package/app/mcp/merchant-server.js +852 -0
- package/app/mcp/merchant-server.js.map +1 -0
- package/app/mcp/merchant-tools.d.ts +103 -0
- package/app/mcp/merchant-tools.js +517 -0
- package/app/mcp/merchant-tools.js.map +1 -0
- package/app/mcp/server.d.ts +41 -0
- package/app/mcp/server.js +142 -0
- package/app/mcp/server.js.map +1 -0
- package/app/mcp/tools.d.ts +30 -0
- package/app/mcp/tools.js +426 -0
- package/app/mcp/tools.js.map +1 -0
- package/app/mcp/types.d.ts +107 -0
- package/app/mcp/types.js +56 -0
- package/app/mcp/types.js.map +1 -0
- package/app/merchant/application/actor.d.ts +85 -0
- package/app/merchant/application/actor.js +162 -0
- package/app/merchant/application/actor.js.map +1 -0
- package/app/merchant/application/money.d.ts +35 -0
- package/app/merchant/application/money.js +124 -0
- package/app/merchant/application/money.js.map +1 -0
- package/app/merchant/application/service.d.ts +228 -0
- package/app/merchant/application/service.js +262 -0
- package/app/merchant/application/service.js.map +1 -0
- package/app/merchant/clock-safety.d.ts +50 -0
- package/app/merchant/clock-safety.js +153 -0
- package/app/merchant/clock-safety.js.map +1 -0
- package/app/merchant/decision-backend.d.ts +82 -0
- package/app/merchant/decision-backend.js +272 -0
- package/app/merchant/decision-backend.js.map +1 -0
- package/app/merchant/engagement-store.d.ts +32 -0
- package/app/merchant/engagement-store.js +119 -0
- package/app/merchant/engagement-store.js.map +1 -0
- package/app/merchant/exact-product-executors.d.ts +11 -0
- package/app/merchant/exact-product-executors.js +132 -0
- package/app/merchant/exact-product-executors.js.map +1 -0
- package/app/merchant/feed-executors.d.ts +17 -0
- package/app/merchant/feed-executors.js +151 -0
- package/app/merchant/feed-executors.js.map +1 -0
- package/app/merchant/feed-store.d.ts +141 -0
- package/app/merchant/feed-store.js +496 -0
- package/app/merchant/feed-store.js.map +1 -0
- package/app/merchant/follow-store.d.ts +66 -0
- package/app/merchant/follow-store.js +295 -0
- package/app/merchant/follow-store.js.map +1 -0
- package/app/merchant/grant-executors.d.ts +11 -0
- package/app/merchant/grant-executors.js +136 -0
- package/app/merchant/grant-executors.js.map +1 -0
- package/app/merchant/grant-store.d.ts +125 -0
- package/app/merchant/grant-store.js +313 -0
- package/app/merchant/grant-store.js.map +1 -0
- package/app/merchant/inventory-executors.d.ts +47 -0
- package/app/merchant/inventory-executors.js +91 -0
- package/app/merchant/inventory-executors.js.map +1 -0
- package/app/merchant/listing-executors.d.ts +51 -0
- package/app/merchant/listing-executors.js +100 -0
- package/app/merchant/listing-executors.js.map +1 -0
- package/app/merchant/negotiation-observer.d.ts +92 -0
- package/app/merchant/negotiation-observer.js +278 -0
- package/app/merchant/negotiation-observer.js.map +1 -0
- package/app/merchant/operation-receipts.d.ts +57 -0
- package/app/merchant/operation-receipts.js +138 -0
- package/app/merchant/operation-receipts.js.map +1 -0
- package/app/merchant/operations-report.d.ts +85 -0
- package/app/merchant/operations-report.js +227 -0
- package/app/merchant/operations-report.js.map +1 -0
- package/app/merchant/ops.d.ts +69 -0
- package/app/merchant/ops.js +87 -0
- package/app/merchant/ops.js.map +1 -0
- package/app/merchant/promotion-broadcast-recovery.d.ts +22 -0
- package/app/merchant/promotion-broadcast-recovery.js +74 -0
- package/app/merchant/promotion-broadcast-recovery.js.map +1 -0
- package/app/merchant/promotion-broadcast-workflow.d.ts +42 -0
- package/app/merchant/promotion-broadcast-workflow.js +171 -0
- package/app/merchant/promotion-broadcast-workflow.js.map +1 -0
- package/app/merchant/promotion-executors.d.ts +18 -0
- package/app/merchant/promotion-executors.js +133 -0
- package/app/merchant/promotion-executors.js.map +1 -0
- package/app/merchant/promotion-store.d.ts +114 -0
- package/app/merchant/promotion-store.js +325 -0
- package/app/merchant/promotion-store.js.map +1 -0
- package/app/merchant/promotion-time.d.ts +19 -0
- package/app/merchant/promotion-time.js +162 -0
- package/app/merchant/promotion-time.js.map +1 -0
- package/app/merchant/quote-calculator.d.ts +32 -0
- package/app/merchant/quote-calculator.js +70 -0
- package/app/merchant/quote-calculator.js.map +1 -0
- package/app/merchant/service-control-executors.d.ts +15 -0
- package/app/merchant/service-control-executors.js +52 -0
- package/app/merchant/service-control-executors.js.map +1 -0
- package/app/merchant/stats-store.d.ts +86 -0
- package/app/merchant/stats-store.js +176 -0
- package/app/merchant/stats-store.js.map +1 -0
- package/app/merchant/ucp-profile.d.ts +39 -0
- package/app/merchant/ucp-profile.js +55 -0
- package/app/merchant/ucp-profile.js.map +1 -0
- package/app/merchant/workbench-service.d.ts +190 -0
- package/app/merchant/workbench-service.js +427 -0
- package/app/merchant/workbench-service.js.map +1 -0
- package/app/merchant-admin/pending-page.d.ts +139 -0
- package/app/merchant-admin/pending-page.js +89 -0
- package/app/merchant-admin/pending-page.js.map +1 -0
- package/app/merchant-admin/rfq-page.d.ts +105 -0
- package/app/merchant-admin/rfq-page.js +176 -0
- package/app/merchant-admin/rfq-page.js.map +1 -0
- package/app/merchant-core/commands.d.ts +126 -0
- package/app/merchant-core/commands.js +268 -0
- package/app/merchant-core/commands.js.map +1 -0
- package/app/merchant-core/executor.d.ts +93 -0
- package/app/merchant-core/executor.js +227 -0
- package/app/merchant-core/executor.js.map +1 -0
- package/app/merchant-core/negotiation-adapters.d.ts +55 -0
- package/app/merchant-core/negotiation-adapters.js +55 -0
- package/app/merchant-core/negotiation-adapters.js.map +1 -0
- package/app/merchant-core/network-checks.d.ts +65 -0
- package/app/merchant-core/network-checks.js +111 -0
- package/app/merchant-core/network-checks.js.map +1 -0
- package/app/merchant-core/operations.d.ts +64 -0
- package/app/merchant-core/operations.js +136 -0
- package/app/merchant-core/operations.js.map +1 -0
- package/app/merchant-core/policy-runtime.d.ts +70 -0
- package/app/merchant-core/policy-runtime.js +181 -0
- package/app/merchant-core/policy-runtime.js.map +1 -0
- package/app/merchant-core/product-import.d.ts +67 -0
- package/app/merchant-core/product-import.js +160 -0
- package/app/merchant-core/product-import.js.map +1 -0
- package/app/merchant-core/rfq/artifacts.d.ts +78 -0
- package/app/merchant-core/rfq/artifacts.js +219 -0
- package/app/merchant-core/rfq/artifacts.js.map +1 -0
- package/app/merchant-core/rfq/data-source-adapter.d.ts +49 -0
- package/app/merchant-core/rfq/data-source-adapter.js +128 -0
- package/app/merchant-core/rfq/data-source-adapter.js.map +1 -0
- package/app/merchant-core/rfq/delivery.d.ts +43 -0
- package/app/merchant-core/rfq/delivery.js +57 -0
- package/app/merchant-core/rfq/delivery.js.map +1 -0
- package/app/merchant-core/rfq/fact-resolver.d.ts +76 -0
- package/app/merchant-core/rfq/fact-resolver.js +220 -0
- package/app/merchant-core/rfq/fact-resolver.js.map +1 -0
- package/app/merchant-core/rfq/handoff.d.ts +54 -0
- package/app/merchant-core/rfq/handoff.js +71 -0
- package/app/merchant-core/rfq/handoff.js.map +1 -0
- package/app/merchant-core/rfq/policy.d.ts +77 -0
- package/app/merchant-core/rfq/policy.js +104 -0
- package/app/merchant-core/rfq/policy.js.map +1 -0
- package/app/merchant-core/rfq/pricing.d.ts +48 -0
- package/app/merchant-core/rfq/pricing.js +150 -0
- package/app/merchant-core/rfq/pricing.js.map +1 -0
- package/app/merchant-core/rfq/quote-revisions.d.ts +52 -0
- package/app/merchant-core/rfq/quote-revisions.js +126 -0
- package/app/merchant-core/rfq/quote-revisions.js.map +1 -0
- package/app/merchant-core/rfq/release-coordinator.d.ts +99 -0
- package/app/merchant-core/rfq/release-coordinator.js +355 -0
- package/app/merchant-core/rfq/release-coordinator.js.map +1 -0
- package/app/merchant-core/rfq/repository.d.ts +398 -0
- package/app/merchant-core/rfq/repository.js +855 -0
- package/app/merchant-core/rfq/repository.js.map +1 -0
- package/app/merchant-core/rfq/service.d.ts +398 -0
- package/app/merchant-core/rfq/service.js +1036 -0
- package/app/merchant-core/rfq/service.js.map +1 -0
- package/app/merchant-core/rfq/source-records.d.ts +97 -0
- package/app/merchant-core/rfq/source-records.js +349 -0
- package/app/merchant-core/rfq/source-records.js.map +1 -0
- package/app/merchant-core/rfq/types.d.ts +197 -0
- package/app/merchant-core/rfq/types.js +110 -0
- package/app/merchant-core/rfq/types.js.map +1 -0
- package/app/merchant-core/service.d.ts +320 -0
- package/app/merchant-core/service.js +597 -0
- package/app/merchant-core/service.js.map +1 -0
- package/app/merchant-core/storage/clock-skew-alerts.d.ts +21 -0
- package/app/merchant-core/storage/clock-skew-alerts.js +67 -0
- package/app/merchant-core/storage/clock-skew-alerts.js.map +1 -0
- package/app/merchant-core/storage/leased-job.d.ts +42 -0
- package/app/merchant-core/storage/leased-job.js +38 -0
- package/app/merchant-core/storage/leased-job.js.map +1 -0
- package/app/merchant-core/storage/operation-lifecycle.d.ts +78 -0
- package/app/merchant-core/storage/operation-lifecycle.js +111 -0
- package/app/merchant-core/storage/operation-lifecycle.js.map +1 -0
- package/app/merchant-core/storage/redact.d.ts +29 -0
- package/app/merchant-core/storage/redact.js +34 -0
- package/app/merchant-core/storage/redact.js.map +1 -0
- package/app/merchant-core/storage/schema.d.ts +24 -0
- package/app/merchant-core/storage/schema.js +22 -0
- package/app/merchant-core/storage/schema.js.map +1 -0
- package/app/merchant-core/storage/transaction.d.ts +47 -0
- package/app/merchant-core/storage/transaction.js +28 -0
- package/app/merchant-core/storage/transaction.js.map +1 -0
- package/app/merchant-gateway/catalog-publications.d.ts +124 -0
- package/app/merchant-gateway/catalog-publications.js +281 -0
- package/app/merchant-gateway/catalog-publications.js.map +1 -0
- package/app/merchant-gateway/catalog-tools.d.ts +46 -0
- package/app/merchant-gateway/catalog-tools.js +335 -0
- package/app/merchant-gateway/catalog-tools.js.map +1 -0
- package/app/merchant-gateway/cli.d.ts +75 -0
- package/app/merchant-gateway/cli.js +461 -0
- package/app/merchant-gateway/cli.js.map +1 -0
- package/app/merchant-gateway/credential-vault.d.ts +44 -0
- package/app/merchant-gateway/credential-vault.js +111 -0
- package/app/merchant-gateway/credential-vault.js.map +1 -0
- package/app/merchant-gateway/entry-server.d.ts +117 -0
- package/app/merchant-gateway/entry-server.js +757 -0
- package/app/merchant-gateway/entry-server.js.map +1 -0
- package/app/merchant-gateway/instance-registration.d.ts +144 -0
- package/app/merchant-gateway/instance-registration.js +391 -0
- package/app/merchant-gateway/instance-registration.js.map +1 -0
- package/app/merchant-gateway/instance-tools.d.ts +58 -0
- package/app/merchant-gateway/instance-tools.js +186 -0
- package/app/merchant-gateway/instance-tools.js.map +1 -0
- package/app/merchant-gateway/mcp-proxy.d.ts +25 -0
- package/app/merchant-gateway/mcp-proxy.js +192 -0
- package/app/merchant-gateway/mcp-proxy.js.map +1 -0
- package/app/merchant-gateway/pinned-fetch.d.ts +54 -0
- package/app/merchant-gateway/pinned-fetch.js +231 -0
- package/app/merchant-gateway/pinned-fetch.js.map +1 -0
- package/app/merchant-gateway/tenant-registry.d.ts +82 -0
- package/app/merchant-gateway/tenant-registry.js +190 -0
- package/app/merchant-gateway/tenant-registry.js.map +1 -0
- package/app/merchant-gateway/tool-bundle.d.ts +26 -0
- package/app/merchant-gateway/tool-bundle.js +56 -0
- package/app/merchant-gateway/tool-bundle.js.map +1 -0
- package/app/merchant-runtime/backup.d.ts +48 -0
- package/app/merchant-runtime/backup.js +226 -0
- package/app/merchant-runtime/backup.js.map +1 -0
- package/app/merchant-runtime/health.d.ts +99 -0
- package/app/merchant-runtime/health.js +206 -0
- package/app/merchant-runtime/health.js.map +1 -0
- package/app/merchant-runtime/jobs.d.ts +64 -0
- package/app/merchant-runtime/jobs.js +107 -0
- package/app/merchant-runtime/jobs.js.map +1 -0
- package/app/merchant-runtime/manager.d.ts +94 -0
- package/app/merchant-runtime/manager.js +305 -0
- package/app/merchant-runtime/manager.js.map +1 -0
- package/app/merchant-runtime/services.d.ts +30 -0
- package/app/merchant-runtime/services.js +51 -0
- package/app/merchant-runtime/services.js.map +1 -0
- package/app/negotiation/action-candidate.d.ts +97 -0
- package/app/negotiation/action-candidate.js +160 -0
- package/app/negotiation/action-candidate.js.map +1 -0
- package/app/negotiation/condition/evaluator.d.ts +36 -0
- package/app/negotiation/condition/evaluator.js +123 -0
- package/app/negotiation/condition/evaluator.js.map +1 -0
- package/app/negotiation/context-map/index.d.ts +23 -0
- package/app/negotiation/context-map/index.js +22 -0
- package/app/negotiation/context-map/index.js.map +1 -0
- package/app/negotiation/context-map/store.d.ts +51 -0
- package/app/negotiation/context-map/store.js +186 -0
- package/app/negotiation/context-map/store.js.map +1 -0
- package/app/negotiation/context-map/types.d.ts +29 -0
- package/app/negotiation/context-map/types.js +57 -0
- package/app/negotiation/context-map/types.js.map +1 -0
- package/app/negotiation/domain/common.d.ts +95 -0
- package/app/negotiation/domain/common.js +216 -0
- package/app/negotiation/domain/common.js.map +1 -0
- package/app/negotiation/domain/envelope.d.ts +55 -0
- package/app/negotiation/domain/envelope.js +110 -0
- package/app/negotiation/domain/envelope.js.map +1 -0
- package/app/negotiation/domain/identifiers.d.ts +65 -0
- package/app/negotiation/domain/identifiers.js +130 -0
- package/app/negotiation/domain/identifiers.js.map +1 -0
- package/app/negotiation/domain/objects.d.ts +156 -0
- package/app/negotiation/domain/objects.js +343 -0
- package/app/negotiation/domain/objects.js.map +1 -0
- package/app/negotiation/idempotency/index.d.ts +26 -0
- package/app/negotiation/idempotency/index.js +25 -0
- package/app/negotiation/idempotency/index.js.map +1 -0
- package/app/negotiation/idempotency/store.d.ts +75 -0
- package/app/negotiation/idempotency/store.js +260 -0
- package/app/negotiation/idempotency/store.js.map +1 -0
- package/app/negotiation/idempotency/types.d.ts +118 -0
- package/app/negotiation/idempotency/types.js +49 -0
- package/app/negotiation/idempotency/types.js.map +1 -0
- package/app/negotiation/jcs.d.ts +21 -0
- package/app/negotiation/jcs.js +117 -0
- package/app/negotiation/jcs.js.map +1 -0
- package/app/negotiation/lease/store.d.ts +21 -0
- package/app/negotiation/lease/store.js +175 -0
- package/app/negotiation/lease/store.js.map +1 -0
- package/app/negotiation/ledger/event.d.ts +148 -0
- package/app/negotiation/ledger/event.js +207 -0
- package/app/negotiation/ledger/event.js.map +1 -0
- package/app/negotiation/ledger/index.d.ts +28 -0
- package/app/negotiation/ledger/index.js +26 -0
- package/app/negotiation/ledger/index.js.map +1 -0
- package/app/negotiation/ledger/payload-segments.d.ts +51 -0
- package/app/negotiation/ledger/payload-segments.js +247 -0
- package/app/negotiation/ledger/payload-segments.js.map +1 -0
- package/app/negotiation/ledger/store.d.ts +131 -0
- package/app/negotiation/ledger/store.js +500 -0
- package/app/negotiation/ledger/store.js.map +1 -0
- package/app/negotiation/prompt.d.ts +34 -0
- package/app/negotiation/prompt.js +113 -0
- package/app/negotiation/prompt.js.map +1 -0
- package/app/negotiation/recovery/index.d.ts +26 -0
- package/app/negotiation/recovery/index.js +24 -0
- package/app/negotiation/recovery/index.js.map +1 -0
- package/app/negotiation/recovery/outbound.d.ts +49 -0
- package/app/negotiation/recovery/outbound.js +34 -0
- package/app/negotiation/recovery/outbound.js.map +1 -0
- package/app/negotiation/recovery/recover.d.ts +59 -0
- package/app/negotiation/recovery/recover.js +510 -0
- package/app/negotiation/recovery/recover.js.map +1 -0
- package/app/negotiation/recovery/types.d.ts +85 -0
- package/app/negotiation/recovery/types.js +17 -0
- package/app/negotiation/recovery/types.js.map +1 -0
- package/app/negotiation/state/phase.d.ts +70 -0
- package/app/negotiation/state/phase.js +220 -0
- package/app/negotiation/state/phase.js.map +1 -0
- package/app/negotiation/types.d.ts +139 -0
- package/app/negotiation/types.js +24 -0
- package/app/negotiation/types.js.map +1 -0
- package/app/net/safe-http.d.ts +54 -0
- package/app/net/safe-http.js +124 -0
- package/app/net/safe-http.js.map +1 -0
- package/app/net/url.d.ts +26 -0
- package/app/net/url.js +32 -0
- package/app/net/url.js.map +1 -0
- package/app/operator/controller.d.ts +184 -0
- package/app/operator/controller.js +797 -0
- package/app/operator/controller.js.map +1 -0
- package/app/operator/runner.d.ts +139 -0
- package/app/operator/runner.js +267 -0
- package/app/operator/runner.js.map +1 -0
- package/app/operator/store.d.ts +39 -0
- package/app/operator/store.js +169 -0
- package/app/operator/store.js.map +1 -0
- package/app/operator/strategy.d.ts +54 -0
- package/app/operator/strategy.js +249 -0
- package/app/operator/strategy.js.map +1 -0
- package/app/operator/tui.d.ts +27 -0
- package/app/operator/tui.js +395 -0
- package/app/operator/tui.js.map +1 -0
- package/app/operator/types.d.ts +224 -0
- package/app/operator/types.js +17 -0
- package/app/operator/types.js.map +1 -0
- package/app/privacy/ledger-payload-deletion.d.ts +10 -0
- package/app/privacy/ledger-payload-deletion.js +31 -0
- package/app/privacy/ledger-payload-deletion.js.map +1 -0
- package/app/privacy/local-backup-deletion.d.ts +13 -0
- package/app/privacy/local-backup-deletion.js +115 -0
- package/app/privacy/local-backup-deletion.js.map +1 -0
- package/app/privacy/workbench-retention.d.ts +105 -0
- package/app/privacy/workbench-retention.js +501 -0
- package/app/privacy/workbench-retention.js.map +1 -0
- package/app/product-buyer.d.ts +79 -0
- package/app/product-buyer.js +165 -0
- package/app/product-buyer.js.map +1 -0
- package/app/product-catalog.d.ts +43 -0
- package/app/product-catalog.js +60 -0
- package/app/product-catalog.js.map +1 -0
- package/app/product-cli.d.ts +70 -0
- package/app/product-cli.js +259 -0
- package/app/product-cli.js.map +1 -0
- package/app/product-compat.d.ts +58 -0
- package/app/product-compat.js +74 -0
- package/app/product-compat.js.map +1 -0
- package/app/product-init.d.ts +102 -0
- package/app/product-init.js +294 -0
- package/app/product-init.js.map +1 -0
- package/app/product-merchant.d.ts +43 -0
- package/app/product-merchant.js +75 -0
- package/app/product-merchant.js.map +1 -0
- package/app/product-publish.d.ts +89 -0
- package/app/product-publish.js +538 -0
- package/app/product-publish.js.map +1 -0
- package/app/product-setup-public.d.ts +51 -0
- package/app/product-setup-public.js +165 -0
- package/app/product-setup-public.js.map +1 -0
- package/app/product-supplier.d.ts +148 -0
- package/app/product-supplier.js +452 -0
- package/app/product-supplier.js.map +1 -0
- package/app/protocol/legacy-shopping-negotiation/adapter.d.ts +42 -0
- package/app/protocol/legacy-shopping-negotiation/adapter.js +561 -0
- package/app/protocol/legacy-shopping-negotiation/adapter.js.map +1 -0
- package/app/protocol/legacy-shopping-negotiation/mapping.d.ts +78 -0
- package/app/protocol/legacy-shopping-negotiation/mapping.js +321 -0
- package/app/protocol/legacy-shopping-negotiation/mapping.js.map +1 -0
- package/app/protocol/legacy-shopping-negotiation/money.d.ts +49 -0
- package/app/protocol/legacy-shopping-negotiation/money.js +70 -0
- package/app/protocol/legacy-shopping-negotiation/money.js.map +1 -0
- package/app/protocol/legacy-shopping-negotiation/types.d.ts +107 -0
- package/app/protocol/legacy-shopping-negotiation/types.js +34 -0
- package/app/protocol/legacy-shopping-negotiation/types.js.map +1 -0
- package/app/runtime/buyer-policy.d.ts +58 -0
- package/app/runtime/buyer-policy.js +89 -0
- package/app/runtime/buyer-policy.js.map +1 -0
- package/app/runtime/fake-model.d.ts +77 -0
- package/app/runtime/fake-model.js +313 -0
- package/app/runtime/fake-model.js.map +1 -0
- package/app/runtime/foreground.d.ts +56 -0
- package/app/runtime/foreground.js +97 -0
- package/app/runtime/foreground.js.map +1 -0
- package/app/runtime/heartbeat.d.ts +36 -0
- package/app/runtime/heartbeat.js +49 -0
- package/app/runtime/heartbeat.js.map +1 -0
- package/app/runtime/merchant-turn.d.ts +35 -0
- package/app/runtime/merchant-turn.js +20 -0
- package/app/runtime/merchant-turn.js.map +1 -0
- package/app/runtime/model.d.ts +40 -0
- package/app/runtime/model.js +86 -0
- package/app/runtime/model.js.map +1 -0
- package/app/runtime/negotiation-turn.d.ts +101 -0
- package/app/runtime/negotiation-turn.js +317 -0
- package/app/runtime/negotiation-turn.js.map +1 -0
- package/app/runtime/tools.d.ts +64 -0
- package/app/runtime/tools.js +236 -0
- package/app/runtime/tools.js.map +1 -0
- package/app/supervisor/init.d.ts +31 -0
- package/app/supervisor/init.js +222 -0
- package/app/supervisor/init.js.map +1 -0
- package/app/supervisor/logs.d.ts +28 -0
- package/app/supervisor/logs.js +101 -0
- package/app/supervisor/logs.js.map +1 -0
- package/app/supervisor/manage.d.ts +76 -0
- package/app/supervisor/manage.js +510 -0
- package/app/supervisor/manage.js.map +1 -0
- package/app/supervisor/manifest.d.ts +69 -0
- package/app/supervisor/manifest.js +209 -0
- package/app/supervisor/manifest.js.map +1 -0
- package/app/supervisor/stack-config.d.ts +84 -0
- package/app/supervisor/stack-config.js +270 -0
- package/app/supervisor/stack-config.js.map +1 -0
- package/app/supervisor/wrapper.d.ts +17 -0
- package/app/supervisor/wrapper.js +138 -0
- package/app/supervisor/wrapper.js.map +1 -0
- package/app/trust/binding/claims.d.ts +92 -0
- package/app/trust/binding/claims.js +175 -0
- package/app/trust/binding/claims.js.map +1 -0
- package/app/trust/binding/thumbprint.d.ts +35 -0
- package/app/trust/binding/thumbprint.js +88 -0
- package/app/trust/binding/thumbprint.js.map +1 -0
- package/app/trust/binding/verify.d.ts +84 -0
- package/app/trust/binding/verify.js +121 -0
- package/app/trust/binding/verify.js.map +1 -0
- package/app/trust/identity/auth-verifier.d.ts +115 -0
- package/app/trust/identity/auth-verifier.js +216 -0
- package/app/trust/identity/auth-verifier.js.map +1 -0
- package/app/trust/identity/identity-binding.d.ts +63 -0
- package/app/trust/identity/identity-binding.js +59 -0
- package/app/trust/identity/identity-binding.js.map +1 -0
- package/app/trust/identity/index.d.ts +38 -0
- package/app/trust/identity/index.js +31 -0
- package/app/trust/identity/index.js.map +1 -0
- package/app/trust/identity/jwk.d.ts +11 -0
- package/app/trust/identity/jwk.js +2 -0
- package/app/trust/identity/jwk.js.map +1 -0
- package/app/trust/identity/jws.d.ts +86 -0
- package/app/trust/identity/jws.js +207 -0
- package/app/trust/identity/jws.js.map +1 -0
- package/app/trust/identity/keys.d.ts +72 -0
- package/app/trust/identity/keys.js +118 -0
- package/app/trust/identity/keys.js.map +1 -0
- package/app/trust/identity/message-signature.d.ts +92 -0
- package/app/trust/identity/message-signature.js +320 -0
- package/app/trust/identity/message-signature.js.map +1 -0
- package/app/trust/identity/nonce.d.ts +45 -0
- package/app/trust/identity/nonce.js +50 -0
- package/app/trust/identity/nonce.js.map +1 -0
- package/app/trust/identity/signature-base.d.ts +84 -0
- package/app/trust/identity/signature-base.js +261 -0
- package/app/trust/identity/signature-base.js.map +1 -0
- package/app/trust/identity/trust-policy.d.ts +92 -0
- package/app/trust/identity/trust-policy.js +95 -0
- package/app/trust/identity/trust-policy.js.map +1 -0
- package/app/trust/index.d.ts +21 -0
- package/app/trust/index.js +22 -0
- package/app/trust/index.js.map +1 -0
- package/app/trust/records/evaluator.d.ts +76 -0
- package/app/trust/records/evaluator.js +122 -0
- package/app/trust/records/evaluator.js.map +1 -0
- package/app/trust/records/index.d.ts +28 -0
- package/app/trust/records/index.js +26 -0
- package/app/trust/records/index.js.map +1 -0
- package/app/trust/records/store.d.ts +75 -0
- package/app/trust/records/store.js +339 -0
- package/app/trust/records/store.js.map +1 -0
- package/app/trust/records/types.d.ts +159 -0
- package/app/trust/records/types.js +40 -0
- package/app/trust/records/types.js.map +1 -0
- package/app/tui/banner.d.ts +46 -0
- package/app/tui/banner.js +99 -0
- package/app/tui/banner.js.map +1 -0
- package/app/tui/styles.d.ts +70 -0
- package/app/tui/styles.js +197 -0
- package/app/tui/styles.js.map +1 -0
- package/app/tui/theme.d.ts +63 -0
- package/app/tui/theme.js +136 -0
- package/app/tui/theme.js.map +1 -0
- package/app/weixin/channel.d.ts +92 -0
- package/app/weixin/channel.js +386 -0
- package/app/weixin/channel.js.map +1 -0
- package/app/weixin/cli-weixin.d.ts +29 -0
- package/app/weixin/cli-weixin.js +130 -0
- package/app/weixin/cli-weixin.js.map +1 -0
- package/app/weixin/credentials.d.ts +33 -0
- package/app/weixin/credentials.js +118 -0
- package/app/weixin/credentials.js.map +1 -0
- package/app/weixin/ilink-client.d.ts +53 -0
- package/app/weixin/ilink-client.js +333 -0
- package/app/weixin/ilink-client.js.map +1 -0
- package/app/weixin/login.d.ts +37 -0
- package/app/weixin/login.js +96 -0
- package/app/weixin/login.js.map +1 -0
- package/app/weixin/qr.d.ts +26 -0
- package/app/weixin/qr.js +525 -0
- package/app/weixin/qr.js.map +1 -0
- package/app/weixin/types.d.ts +114 -0
- package/app/weixin/types.js +48 -0
- package/app/weixin/types.js.map +1 -0
- package/build-manifest.json +19910 -0
- package/contracts/candidate-agent-dto-1.0.schema.json +172 -0
- package/contracts/card-publication/0.1.2/request.schema.json +78 -0
- package/contracts/commerce-intent/1.0/schema.json +124 -0
- package/contracts/conformance/python-service/run.py +134 -0
- package/contracts/delegation-policy/1.0/schema.json +143 -0
- package/contracts/effective-authorization/1.0/schema.json +167 -0
- package/contracts/interop/kiwi-buyer-message-send.json +43 -0
- package/contracts/interop/knp-data-part-examples.json +243 -0
- package/contracts/kiwi-catalog/1.0/agent-record.schema.json +78 -0
- package/contracts/kiwi-catalog/1.0/listing-record.schema.json +98 -0
- package/contracts/kiwi-catalog/1.0/listing-search-result.schema.json +60 -0
- package/contracts/kiwi-contracts.lock.json +7 -0
- package/contracts/manifest.json +211 -0
- package/contracts/merchant-management/1.0/README.md +109 -0
- package/contracts/merchant-management/1.0/approval-decision.schema.json +16 -0
- package/contracts/merchant-management/1.0/approval-preview.schema.json +26 -0
- package/contracts/merchant-management/1.0/connector-delivery-manifest.schema.json +78 -0
- package/contracts/merchant-management/1.0/management-error.schema.json +30 -0
- package/contracts/merchant-management/1.0/operation-receipt.schema.json +28 -0
- package/contracts/merchant-management/1.0/runtime-management-descriptor.schema.json +33 -0
- package/contracts/merchant-management/1.0/runtime-status.schema.json +42 -0
- package/contracts/merchant-rfq/0.1.0/delivery-record.schema.json +206 -0
- package/contracts/merchant-rfq/0.1.0/fact-snapshot.schema.json +118 -0
- package/contracts/merchant-rfq/0.1.0/handoff-record.schema.json +251 -0
- package/contracts/merchant-rfq/0.1.0/pricing-input.schema.json +139 -0
- package/contracts/merchant-rfq/0.1.0/quote-revision.schema.json +153 -0
- package/contracts/merchant-rfq/0.1.0/release-request.schema.json +121 -0
- package/contracts/merchant-rfq/0.1.0/rfq-case.schema.json +357 -0
- package/contracts/merchant-rfq/0.1.0/source-record.schema.json +162 -0
- package/contracts/merchant-workbench/1.0/README.md +6 -0
- package/contracts/merchant-workbench/1.0/money.schema.json +19 -0
- package/contracts/merchant-workbench/1.0/problem.schema.json +73 -0
- package/contracts/negotiation/1.0/schema.json +501 -0
- package/contracts/persistent-task/1.0/schema.json +191 -0
- package/contracts/runtime-binding/0.1.2/binding-request.schema.json +73 -0
- package/contracts/runtime-binding/0.1.2/claims.schema.json +100 -0
- package/contracts/runtime-binding/0.1.2/document.schema.json +163 -0
- package/contracts/shopping.negotiation/0.1/capabilities.schema.json +47 -0
- package/contracts/shopping.negotiation/0.1/decision.schema.json +120 -0
- package/contracts/shopping.negotiation/0.1/policy-result.schema.json +52 -0
- package/contracts/shopping.negotiation/0.1/snapshot.schema.json +172 -0
- package/contracts/vectors/binding-thumbprint.json +15 -0
- package/contracts/vectors/candidate-agent.invalid-private-field.json +7 -0
- package/contracts/vectors/candidate-agent.valid.json +26 -0
- package/contracts/vectors/commerce-intent.invalid-no-items.json +7 -0
- package/contracts/vectors/commerce-intent.valid.json +32 -0
- package/contracts/vectors/delegation-policy.invalid-payment-auto.json +15 -0
- package/contracts/vectors/delegation-policy.valid.json +25 -0
- package/contracts/vectors/effective-authorization.invalid-deny-wins.json +20 -0
- package/contracts/vectors/effective-authorization.valid.json +23 -0
- package/contracts/vectors/persistent-task.invalid-no-idempotency.json +7 -0
- package/contracts/vectors/persistent-task.valid.json +45 -0
- package/index.js +6 -0
- package/node_modules/@hexagon/base64/dist/base64.cjs +198 -0
- package/node_modules/@hexagon/base64/dist/base64.min.js +1 -0
- package/node_modules/@hexagon/base64/dist/base64.min.mjs +1 -0
- package/node_modules/@hexagon/base64/package.json +73 -0
- package/node_modules/@hexagon/base64/src/base64.js +190 -0
- package/node_modules/@hexagon/base64/src/base64.single.js +3 -0
- package/node_modules/@hono/node-server/dist/conninfo.cjs +22 -0
- package/node_modules/@hono/node-server/dist/conninfo.d.cts +11 -0
- package/node_modules/@hono/node-server/dist/conninfo.d.mts +11 -0
- package/node_modules/@hono/node-server/dist/conninfo.mjs +20 -0
- package/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs +5 -0
- package/node_modules/@hono/node-server/dist/constants-BXAKTxRC.cjs +11 -0
- package/node_modules/@hono/node-server/dist/early-hints.cjs +35 -0
- package/node_modules/@hono/node-server/dist/early-hints.d.cts +16 -0
- package/node_modules/@hono/node-server/dist/early-hints.d.mts +16 -0
- package/node_modules/@hono/node-server/dist/early-hints.mjs +33 -0
- package/node_modules/@hono/node-server/dist/index.cjs +1318 -0
- package/node_modules/@hono/node-server/dist/index.d.cts +101 -0
- package/node_modules/@hono/node-server/dist/index.d.mts +101 -0
- package/node_modules/@hono/node-server/dist/index.mjs +1313 -0
- package/node_modules/@hono/node-server/dist/serve-static.cjs +151 -0
- package/node_modules/@hono/node-server/dist/serve-static.d.cts +18 -0
- package/node_modules/@hono/node-server/dist/serve-static.d.mts +18 -0
- package/node_modules/@hono/node-server/dist/serve-static.mjs +150 -0
- package/node_modules/@hono/node-server/dist/utils/response.cjs +8 -0
- package/node_modules/@hono/node-server/dist/utils/response.d.cts +4 -0
- package/node_modules/@hono/node-server/dist/utils/response.d.mts +4 -0
- package/node_modules/@hono/node-server/dist/utils/response.mjs +7 -0
- package/node_modules/@hono/node-server/dist/utils/stream.cjs +65 -0
- package/node_modules/@hono/node-server/dist/utils/stream.d.cts +6 -0
- package/node_modules/@hono/node-server/dist/utils/stream.d.mts +6 -0
- package/node_modules/@hono/node-server/dist/utils/stream.mjs +64 -0
- package/node_modules/@hono/node-server/package.json +127 -0
- package/node_modules/@levischuck/tiny-cbor/esm/cbor/cbor.js +440 -0
- package/node_modules/@levischuck/tiny-cbor/esm/cbor/cbor_internal.js +111 -0
- package/node_modules/@levischuck/tiny-cbor/esm/index.js +1 -0
- package/node_modules/@levischuck/tiny-cbor/esm/package.json +3 -0
- package/node_modules/@levischuck/tiny-cbor/package.json +25 -0
- package/node_modules/@levischuck/tiny-cbor/script/cbor/cbor.js +447 -0
- package/node_modules/@levischuck/tiny-cbor/script/cbor/cbor_internal.js +116 -0
- package/node_modules/@levischuck/tiny-cbor/script/index.js +8 -0
- package/node_modules/@levischuck/tiny-cbor/script/package.json +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +320 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +1044 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +618 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js +252 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js +211 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +202 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +484 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js +58 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js +188 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js +68 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js +39 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js +36 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +250 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js +251 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js +28 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js +202 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js +201 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js +21 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js +136 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js +21 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js +75 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js +71 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js +162 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js +128 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js +48 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js +58 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +433 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +922 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js +80 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/requestBody.js +64 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +172 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js +17 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +88 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js +165 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +965 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +263 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js +79 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js +48 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js +234 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js +64 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js +25 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +1112 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js +23 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +46 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js +97 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js +43 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js +243 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js +27 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js +2105 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js +94 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js +69 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js +30 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +290 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +1019 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +613 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js +245 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js +206 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +194 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +479 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js +54 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +184 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js +20 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js +246 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +180 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js +171 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js +15 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js +71 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js +59 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js +107 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js +18 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js +72 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js +158 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js +118 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js +52 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +429 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +917 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js +76 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.js +58 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +165 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +81 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js +161 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +961 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +228 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +44 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +208 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js +22 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1107 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +40 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +39 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js +24 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/package.json +165 -0
- package/node_modules/@peculiar/asn1-android/build/cjs/attestation.js +39 -0
- package/node_modules/@peculiar/asn1-android/build/cjs/index.js +6 -0
- package/node_modules/@peculiar/asn1-android/build/cjs/key_description.js +519 -0
- package/node_modules/@peculiar/asn1-android/build/cjs/nonstandard.js +107 -0
- package/node_modules/@peculiar/asn1-android/build/es2015/attestation.js +34 -0
- package/node_modules/@peculiar/asn1-android/build/es2015/index.js +3 -0
- package/node_modules/@peculiar/asn1-android/build/es2015/key_description.js +512 -0
- package/node_modules/@peculiar/asn1-android/build/es2015/nonstandard.js +103 -0
- package/node_modules/@peculiar/asn1-android/package.json +54 -0
- package/node_modules/@peculiar/asn1-asym-key/build/cjs/index.js +84 -0
- package/node_modules/@peculiar/asn1-asym-key/build/es2015/index.js +77 -0
- package/node_modules/@peculiar/asn1-asym-key/package.json +55 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/attribute.js +22 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/attributes/counter_signature.js +13 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/attributes/index.js +8 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/attributes/message_digest.js +8 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/attributes/signing_time.js +13 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/certificate_choices.js +64 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/content_info.js +22 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/encapsulated_content_info.js +40 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/encrypted_content_info.js +56 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/enveloped_data.js +60 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/index.js +24 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/issuer_and_serial_number.js +23 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/kek_recipient_info.js +53 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/key_agree_recipient_info.js +167 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/key_trans_recipient_info.js +51 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/object_identifiers.js +10 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/originator_info.js +31 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/other_key_attribute.js +22 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/password_recipient_info.js +32 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/recipient_info.js +75 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/recipient_infos.js +20 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/revocation_info_choice.js +54 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/signed_data.js +64 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/signer_identifier.js +28 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/signer_info.js +70 -0
- package/node_modules/@peculiar/asn1-cms/build/cjs/types.js +51 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/attribute.js +18 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/attributes/counter_signature.js +10 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/attributes/index.js +4 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/attributes/message_digest.js +4 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/attributes/signing_time.js +10 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/certificate_choices.js +60 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/content_info.js +18 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/encapsulated_content_info.js +36 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/encrypted_content_info.js +52 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/enveloped_data.js +56 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/index.js +21 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/issuer_and_serial_number.js +19 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/kek_recipient_info.js +48 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/key_agree_recipient_info.js +160 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/key_trans_recipient_info.js +47 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/object_identifiers.js +7 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/originator_info.js +27 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/other_key_attribute.js +18 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/password_recipient_info.js +28 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/recipient_info.js +71 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/recipient_infos.js +17 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/revocation_info_choice.js +50 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/signed_data.js +60 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/signer_identifier.js +25 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/signer_info.js +66 -0
- package/node_modules/@peculiar/asn1-cms/build/es2015/types.js +48 -0
- package/node_modules/@peculiar/asn1-cms/package.json +55 -0
- package/node_modules/@peculiar/asn1-csr/build/cjs/attributes.js +20 -0
- package/node_modules/@peculiar/asn1-csr/build/cjs/certification_request.js +29 -0
- package/node_modules/@peculiar/asn1-csr/build/cjs/certification_request_info.js +34 -0
- package/node_modules/@peculiar/asn1-csr/build/cjs/index.js +6 -0
- package/node_modules/@peculiar/asn1-csr/build/es2015/attributes.js +17 -0
- package/node_modules/@peculiar/asn1-csr/build/es2015/certification_request.js +25 -0
- package/node_modules/@peculiar/asn1-csr/build/es2015/certification_request_info.js +30 -0
- package/node_modules/@peculiar/asn1-csr/build/es2015/index.js +3 -0
- package/node_modules/@peculiar/asn1-csr/package.json +55 -0
- package/node_modules/@peculiar/asn1-ecc/build/cjs/algorithms.js +14 -0
- package/node_modules/@peculiar/asn1-ecc/build/cjs/ec_parameters.js +27 -0
- package/node_modules/@peculiar/asn1-ecc/build/cjs/ec_private_key.js +36 -0
- package/node_modules/@peculiar/asn1-ecc/build/cjs/ec_signature_value.js +25 -0
- package/node_modules/@peculiar/asn1-ecc/build/cjs/index.js +9 -0
- package/node_modules/@peculiar/asn1-ecc/build/cjs/object_identifiers.js +26 -0
- package/node_modules/@peculiar/asn1-ecc/build/cjs/rfc3279.js +95 -0
- package/node_modules/@peculiar/asn1-ecc/build/es2015/algorithms.js +10 -0
- package/node_modules/@peculiar/asn1-ecc/build/es2015/ec_parameters.js +24 -0
- package/node_modules/@peculiar/asn1-ecc/build/es2015/ec_private_key.js +32 -0
- package/node_modules/@peculiar/asn1-ecc/build/es2015/ec_signature_value.js +21 -0
- package/node_modules/@peculiar/asn1-ecc/build/es2015/index.js +6 -0
- package/node_modules/@peculiar/asn1-ecc/build/es2015/object_identifiers.js +23 -0
- package/node_modules/@peculiar/asn1-ecc/build/es2015/rfc3279.js +90 -0
- package/node_modules/@peculiar/asn1-ecc/package.json +56 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/attribute.js +36 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/authenticated_safe.js +20 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/cert_bag.js +26 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/crl_bag.js +25 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/index.js +9 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/key_bag.js +12 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/pkcs8_shrouded_key_bag.js +12 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/secret_bag.js +22 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/types.js +11 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/index.js +10 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/mac_data.js +27 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/object_identifiers.js +14 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/pfx.js +28 -0
- package/node_modules/@peculiar/asn1-pfx/build/cjs/safe_bag.js +45 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/attribute.js +32 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/authenticated_safe.js +17 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/cert_bag.js +22 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/crl_bag.js +21 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/index.js +6 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/key_bag.js +9 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/pkcs8_shrouded_key_bag.js +9 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/secret_bag.js +18 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/types.js +8 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/index.js +7 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/mac_data.js +23 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/object_identifiers.js +11 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/pfx.js +24 -0
- package/node_modules/@peculiar/asn1-pfx/build/es2015/safe_bag.js +41 -0
- package/node_modules/@peculiar/asn1-pfx/package.json +57 -0
- package/node_modules/@peculiar/asn1-pkcs8/build/cjs/encrypted_private_key_info.js +23 -0
- package/node_modules/@peculiar/asn1-pkcs8/build/cjs/index.js +5 -0
- package/node_modules/@peculiar/asn1-pkcs8/build/cjs/private_key_info.js +54 -0
- package/node_modules/@peculiar/asn1-pkcs8/build/es2015/encrypted_private_key_info.js +18 -0
- package/node_modules/@peculiar/asn1-pkcs8/build/es2015/index.js +2 -0
- package/node_modules/@peculiar/asn1-pkcs8/build/es2015/private_key_info.js +49 -0
- package/node_modules/@peculiar/asn1-pkcs8/package.json +53 -0
- package/node_modules/@peculiar/asn1-pkcs9/build/cjs/index.js +301 -0
- package/node_modules/@peculiar/asn1-pkcs9/build/es2015/index.js +293 -0
- package/node_modules/@peculiar/asn1-pkcs9/package.json +57 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/algorithms.js +40 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/index.js +9 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/object_identifiers.js +28 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/other_prime_info.js +46 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/index.js +6 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsaes_oaep.js +45 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsassa_pkcs1_v1_5.js +20 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsassa_pss.js +53 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/rsa_private_key.js +79 -0
- package/node_modules/@peculiar/asn1-rsa/build/cjs/rsa_public_key.js +25 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/algorithms.js +36 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/index.js +6 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/object_identifiers.js +25 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/other_prime_info.js +42 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/index.js +3 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsaes_oaep.js +41 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pkcs1_v1_5.js +16 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pss.js +49 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/rsa_private_key.js +75 -0
- package/node_modules/@peculiar/asn1-rsa/build/es2015/rsa_public_key.js +21 -0
- package/node_modules/@peculiar/asn1-rsa/package.json +54 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/convert.js +25 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/converters.js +148 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/decorators.js +52 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/enums.js +40 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/errors/index.js +4 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/errors/schema_validation.js +7 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/helper.js +44 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/index.js +22 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/objects.js +17 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/parser.js +313 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/schema.js +165 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/serializer.js +150 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/storage.js +5 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/types/bit_string.js +71 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/types/index.js +5 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/types/octet_string.js +45 -0
- package/node_modules/@peculiar/asn1-schema/build/cjs/types.js +2 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/convert.js +20 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/converters.js +143 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/decorators.js +43 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/enums.js +37 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js +1 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/errors/schema_validation.js +3 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/helper.js +39 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/index.js +9 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/objects.js +13 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/parser.js +308 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/schema.js +160 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/serializer.js +145 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/storage.js +2 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/types/bit_string.js +66 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/types/index.js +2 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/types/octet_string.js +40 -0
- package/node_modules/@peculiar/asn1-schema/build/es2015/types.js +1 -0
- package/node_modules/@peculiar/asn1-schema/package.json +64 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/algorithm_identifier.js +28 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/attribute.js +22 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/certificate.js +29 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/certificate_list.js +29 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extension.js +41 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/authority_information_access.js +36 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/authority_key_identifier.js +48 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/basic_constraints.js +27 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/certificate_issuer.js +19 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/certificate_policies.js +136 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_delta_indicator.js +14 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_distribution_points.js +132 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_freshest.js +22 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_issuing_distribution_point.js +68 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_number.js +20 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_reason.js +39 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/entrust_version_info.js +46 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/extended_key_usage.js +28 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/index.js +28 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/inhibit_any_policy.js +23 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/invalidity_date.js +22 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/issuer_alternative_name.js +19 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/key_usage.js +56 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/name_constraints.js +74 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/policy_constraints.js +33 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/policy_mappings.js +35 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/private_key_usage_period.js +31 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_alternative_name.js +19 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_directory_attributes.js +22 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_info_access.js +22 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_key_identifier.js +9 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/general_name.js +132 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/general_names.js +20 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/index.js +19 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/ip_converter.js +177 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/name.js +110 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/object_identifiers.js +16 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/subject_public_key_info.js +20 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/tbs_cert_list.js +83 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/tbs_certificate.js +78 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/time.js +43 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/types.js +9 -0
- package/node_modules/@peculiar/asn1-x509/build/cjs/validity.js +23 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js +24 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/attribute.js +18 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/certificate.js +25 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js +25 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extension.js +37 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_information_access.js +32 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js +43 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/basic_constraints.js +23 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js +16 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_policies.js +129 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js +11 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_distribution_points.js +127 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js +19 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js +64 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_number.js +17 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_reason.js +36 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js +41 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/extended_key_usage.js +25 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js +25 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/inhibit_any_policy.js +20 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/invalidity_date.js +19 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/issuer_alternative_name.js +16 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/key_usage.js +52 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/name_constraints.js +69 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js +29 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_mappings.js +31 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/private_key_usage_period.js +27 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js +16 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js +19 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_info_access.js +19 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js +5 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/general_name.js +127 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/general_names.js +17 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/index.js +16 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js +173 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/name.js +106 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/object_identifiers.js +13 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js +16 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js +78 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js +74 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/time.js +40 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/types.js +6 -0
- package/node_modules/@peculiar/asn1-x509/build/es2015/validity.js +19 -0
- package/node_modules/@peculiar/asn1-x509/package.json +54 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/aa_clear_attrs.js +27 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/aa_controls.js +44 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_cert_issuer.js +31 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_cert_validity_period.js +19 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_spec.js +19 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attribute_certificate.js +25 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attribute_certificate_info.js +67 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/class_list.js +16 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/clearance.js +31 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/holder.js +41 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/ietf_attr_syntax.js +46 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/index.js +23 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/issuer_serial.js +30 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/object_digest_info.js +37 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/object_identifiers.js +17 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/proxy_info.js +20 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/role_syntax.js +29 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/security_category.js +27 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/svce_auth_info.js +27 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/target.js +79 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/cjs/v2_form.js +39 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_clear_attrs.js +23 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_controls.js +40 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_issuer.js +28 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_validity_period.js +15 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_spec.js +16 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attribute_certificate.js +21 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attribute_certificate_info.js +63 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/class_list.js +12 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/clearance.js +27 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/holder.js +37 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/ietf_attr_syntax.js +41 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/index.js +20 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/issuer_serial.js +26 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/object_digest_info.js +33 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/object_identifiers.js +14 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/proxy_info.js +17 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/role_syntax.js +25 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/security_category.js +23 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/svce_auth_info.js +23 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/target.js +75 -0
- package/node_modules/@peculiar/asn1-x509-attr/build/es2015/v2_form.js +35 -0
- package/node_modules/@peculiar/asn1-x509-attr/package.json +54 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/build/cjs/composite_keys.js +49 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/build/cjs/composite_signatures.js +34 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/build/cjs/index.js +6 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/build/cjs/object_identifiers.js +19 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/build/es2015/composite_keys.js +44 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/build/es2015/composite_signatures.js +31 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/build/es2015/index.js +3 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/build/es2015/object_identifiers.js +16 -0
- package/node_modules/@peculiar/asn1-x509-post-quantum/package.json +56 -0
- package/node_modules/@peculiar/utils/build/cjs/bytes/buffer-source.js +115 -0
- package/node_modules/@peculiar/utils/build/cjs/bytes/concat.js +41 -0
- package/node_modules/@peculiar/utils/build/cjs/bytes/equal.js +17 -0
- package/node_modules/@peculiar/utils/build/cjs/bytes/index.js +31 -0
- package/node_modules/@peculiar/utils/build/cjs/bytes/sequence.js +161 -0
- package/node_modules/@peculiar/utils/build/cjs/bytes/types.js +2 -0
- package/node_modules/@peculiar/utils/build/cjs/converters/convert.js +74 -0
- package/node_modules/@peculiar/utils/build/cjs/converters/defaults.js +72 -0
- package/node_modules/@peculiar/utils/build/cjs/converters/index.js +18 -0
- package/node_modules/@peculiar/utils/build/cjs/converters/registry.js +188 -0
- package/node_modules/@peculiar/utils/build/cjs/converters/types.js +2 -0
- package/node_modules/@peculiar/utils/build/cjs/encoding/base64.js +48 -0
- package/node_modules/@peculiar/utils/build/cjs/encoding/base64url.js +26 -0
- package/node_modules/@peculiar/utils/build/cjs/encoding/binary.js +26 -0
- package/node_modules/@peculiar/utils/build/cjs/encoding/hex.js +229 -0
- package/node_modules/@peculiar/utils/build/cjs/encoding/index.js +10 -0
- package/node_modules/@peculiar/utils/build/cjs/encoding/utf16.js +24 -0
- package/node_modules/@peculiar/utils/build/cjs/encoding/utf8.js +13 -0
- package/node_modules/@peculiar/utils/build/cjs/index.js +10 -0
- package/node_modules/@peculiar/utils/build/cjs/legacy/buffer-source-converter.js +37 -0
- package/node_modules/@peculiar/utils/build/cjs/legacy/convert.js +72 -0
- package/node_modules/@peculiar/utils/build/cjs/legacy/functions.js +23 -0
- package/node_modules/@peculiar/utils/build/cjs/legacy/index.js +11 -0
- package/node_modules/@peculiar/utils/build/cjs/package.json +3 -0
- package/node_modules/@peculiar/utils/build/cjs/pem/index.js +14 -0
- package/node_modules/@peculiar/utils/build/cjs/pem/pem.js +140 -0
- package/node_modules/@peculiar/utils/build/cjs/pem/types.js +2 -0
- package/node_modules/@peculiar/utils/build/esm/bytes/buffer-source.js +101 -0
- package/node_modules/@peculiar/utils/build/esm/bytes/concat.js +37 -0
- package/node_modules/@peculiar/utils/build/esm/bytes/equal.js +14 -0
- package/node_modules/@peculiar/utils/build/esm/bytes/index.js +4 -0
- package/node_modules/@peculiar/utils/build/esm/bytes/sequence.js +150 -0
- package/node_modules/@peculiar/utils/build/esm/bytes/types.js +1 -0
- package/node_modules/@peculiar/utils/build/esm/converters/convert.js +71 -0
- package/node_modules/@peculiar/utils/build/esm/converters/defaults.js +68 -0
- package/node_modules/@peculiar/utils/build/esm/converters/index.js +3 -0
- package/node_modules/@peculiar/utils/build/esm/converters/registry.js +185 -0
- package/node_modules/@peculiar/utils/build/esm/converters/types.js +1 -0
- package/node_modules/@peculiar/utils/build/esm/encoding/base64.js +40 -0
- package/node_modules/@peculiar/utils/build/esm/encoding/base64url.js +19 -0
- package/node_modules/@peculiar/utils/build/esm/encoding/binary.js +20 -0
- package/node_modules/@peculiar/utils/build/esm/encoding/hex.js +220 -0
- package/node_modules/@peculiar/utils/build/esm/encoding/index.js +6 -0
- package/node_modules/@peculiar/utils/build/esm/encoding/utf16.js +19 -0
- package/node_modules/@peculiar/utils/build/esm/encoding/utf8.js +8 -0
- package/node_modules/@peculiar/utils/build/esm/index.js +6 -0
- package/node_modules/@peculiar/utils/build/esm/legacy/buffer-source-converter.js +33 -0
- package/node_modules/@peculiar/utils/build/esm/legacy/convert.js +68 -0
- package/node_modules/@peculiar/utils/build/esm/legacy/functions.js +18 -0
- package/node_modules/@peculiar/utils/build/esm/legacy/index.js +3 -0
- package/node_modules/@peculiar/utils/build/esm/pem/index.js +1 -0
- package/node_modules/@peculiar/utils/build/esm/pem/pem.js +129 -0
- package/node_modules/@peculiar/utils/build/esm/pem/types.js +1 -0
- package/node_modules/@peculiar/utils/package.json +111 -0
- package/node_modules/@peculiar/x509/build/x509.cjs.js +3629 -0
- package/node_modules/@peculiar/x509/build/x509.es.js +3552 -0
- package/node_modules/@peculiar/x509/build/x509.js +85 -0
- package/node_modules/@peculiar/x509/package.json +101 -0
- package/node_modules/@simplewebauthn/server/esm/authentication/generateAuthenticationOptions.js +41 -0
- package/node_modules/@simplewebauthn/server/esm/authentication/verifyAuthenticationResponse.js +221 -0
- package/node_modules/@simplewebauthn/server/esm/errors/index.js +24 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/convertAAGUIDToString.js +17 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/convertCOSEtoPKCS.js +21 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/convertCertBufferToPEM.js +31 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/convertPEMToBytes.js +11 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/convertX509PublicKeyToCOSE.js +89 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/cose.js +105 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/decodeAttestationObject.js +16 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/decodeAuthenticatorExtensions.js +34 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/decodeClientDataJSON.js +16 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/decodeCredentialPublicKey.js +11 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/fetch.js +14 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/generateChallenge.js +24 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/generateUserID.js +20 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/getCertificateInfo.js +77 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/index.js +19 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/isCertRevoked.js +117 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/index.js +11 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoBase64URL.js +72 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCBOR.js +35 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/digest.js +14 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/getRandomValues.js +11 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/getWebCrypto.js +61 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/importJWKKey.js +10 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/index.js +7 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoHashAlgName.js +23 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.js +34 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.js +16 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/structs.js +1 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/unwrapEC2Signature.js +73 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verify.js +36 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyAKP.js +48 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyEC2.js +70 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyOKP.js +48 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyRSA.js +88 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoUint8Array.js +79 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/logging.js +30 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/mapJWSAlgToCOSEAlg.js +31 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/mapX509SignatureAlgToCOSEAlg.js +44 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/matchExpectedRPID.js +41 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/parseAuthenticatorData.js +106 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/parseBackupFlags.js +25 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/toHash.js +12 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/validateCertificatePath.js +194 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/validateExtFIDOGenCEAAGUID.js +34 -0
- package/node_modules/@simplewebauthn/server/esm/helpers/verifySignature.js +35 -0
- package/node_modules/@simplewebauthn/server/esm/index.js +9 -0
- package/node_modules/@simplewebauthn/server/esm/metadata/mdsTypes.js +17 -0
- package/node_modules/@simplewebauthn/server/esm/metadata/parseJWT.js +12 -0
- package/node_modules/@simplewebauthn/server/esm/metadata/verifyAttestationWithMetadata.js +153 -0
- package/node_modules/@simplewebauthn/server/esm/metadata/verifyJWT.js +42 -0
- package/node_modules/@simplewebauthn/server/esm/metadata/verifyMDSBlob.js +59 -0
- package/node_modules/@simplewebauthn/server/esm/package.json +3 -0
- package/node_modules/@simplewebauthn/server/esm/registration/generateRegistrationOptions.js +163 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/constants.js +136 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/isValidTPMManufacturerID.js +6 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/parseCertInfo.js +58 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/parsePubArea.js +94 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/verifyAttestationTPM.js +332 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationAndroidKey.js +120 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationAndroidSafetyNet.js +113 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationApple.js +58 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationFIDOU2F.js +48 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationPacked.js +113 -0
- package/node_modules/@simplewebauthn/server/esm/registration/verifyRegistrationResponse.js +224 -0
- package/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/android-key.js +171 -0
- package/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/android-safetynet.js +32 -0
- package/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/apple.js +25 -0
- package/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/mds.js +74 -0
- package/node_modules/@simplewebauthn/server/esm/services/metadataService.js +274 -0
- package/node_modules/@simplewebauthn/server/esm/services/settingsService.js +86 -0
- package/node_modules/@simplewebauthn/server/esm/types/dom.js +1 -0
- package/node_modules/@simplewebauthn/server/esm/types/index.js +1 -0
- package/node_modules/@simplewebauthn/server/package.json +67 -0
- package/node_modules/@simplewebauthn/server/script/authentication/generateAuthenticationOptions.js +44 -0
- package/node_modules/@simplewebauthn/server/script/authentication/verifyAuthenticationResponse.js +224 -0
- package/node_modules/@simplewebauthn/server/script/errors/index.js +29 -0
- package/node_modules/@simplewebauthn/server/script/helpers/convertAAGUIDToString.js +20 -0
- package/node_modules/@simplewebauthn/server/script/helpers/convertCOSEtoPKCS.js +24 -0
- package/node_modules/@simplewebauthn/server/script/helpers/convertCertBufferToPEM.js +34 -0
- package/node_modules/@simplewebauthn/server/script/helpers/convertPEMToBytes.js +14 -0
- package/node_modules/@simplewebauthn/server/script/helpers/convertX509PublicKeyToCOSE.js +92 -0
- package/node_modules/@simplewebauthn/server/script/helpers/cose.js +116 -0
- package/node_modules/@simplewebauthn/server/script/helpers/decodeAttestationObject.js +20 -0
- package/node_modules/@simplewebauthn/server/script/helpers/decodeAuthenticatorExtensions.js +37 -0
- package/node_modules/@simplewebauthn/server/script/helpers/decodeClientDataJSON.js +20 -0
- package/node_modules/@simplewebauthn/server/script/helpers/decodeCredentialPublicKey.js +15 -0
- package/node_modules/@simplewebauthn/server/script/helpers/fetch.js +18 -0
- package/node_modules/@simplewebauthn/server/script/helpers/generateChallenge.js +28 -0
- package/node_modules/@simplewebauthn/server/script/helpers/generateUserID.js +24 -0
- package/node_modules/@simplewebauthn/server/script/helpers/getCertificateInfo.js +80 -0
- package/node_modules/@simplewebauthn/server/script/helpers/index.js +49 -0
- package/node_modules/@simplewebauthn/server/script/helpers/isCertRevoked.js +120 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/index.js +37 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoBase64URL.js +85 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCBOR.js +62 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/digest.js +17 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/getRandomValues.js +14 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/getWebCrypto.js +66 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/importJWKKey.js +13 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/index.js +13 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoHashAlgName.js +26 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.js +37 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.js +19 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/structs.js +2 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/unwrapEC2Signature.js +76 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verify.js +39 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verifyAKP.js +51 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verifyEC2.js +73 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verifyOKP.js +51 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verifyRSA.js +91 -0
- package/node_modules/@simplewebauthn/server/script/helpers/iso/isoUint8Array.js +89 -0
- package/node_modules/@simplewebauthn/server/script/helpers/logging.js +34 -0
- package/node_modules/@simplewebauthn/server/script/helpers/mapJWSAlgToCOSEAlg.js +34 -0
- package/node_modules/@simplewebauthn/server/script/helpers/mapX509SignatureAlgToCOSEAlg.js +47 -0
- package/node_modules/@simplewebauthn/server/script/helpers/matchExpectedRPID.js +44 -0
- package/node_modules/@simplewebauthn/server/script/helpers/parseAuthenticatorData.js +110 -0
- package/node_modules/@simplewebauthn/server/script/helpers/parseBackupFlags.js +30 -0
- package/node_modules/@simplewebauthn/server/script/helpers/toHash.js +15 -0
- package/node_modules/@simplewebauthn/server/script/helpers/validateCertificatePath.js +197 -0
- package/node_modules/@simplewebauthn/server/script/helpers/validateExtFIDOGenCEAAGUID.js +37 -0
- package/node_modules/@simplewebauthn/server/script/helpers/verifySignature.js +39 -0
- package/node_modules/@simplewebauthn/server/script/index.js +25 -0
- package/node_modules/@simplewebauthn/server/script/metadata/mdsTypes.js +18 -0
- package/node_modules/@simplewebauthn/server/script/metadata/parseJWT.js +15 -0
- package/node_modules/@simplewebauthn/server/script/metadata/verifyAttestationWithMetadata.js +157 -0
- package/node_modules/@simplewebauthn/server/script/metadata/verifyJWT.js +45 -0
- package/node_modules/@simplewebauthn/server/script/metadata/verifyMDSBlob.js +62 -0
- package/node_modules/@simplewebauthn/server/script/package.json +3 -0
- package/node_modules/@simplewebauthn/server/script/registration/generateRegistrationOptions.js +167 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/constants.js +139 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/isValidTPMManufacturerID.js +9 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/parseCertInfo.js +61 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/parsePubArea.js +97 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/verifyAttestationTPM.js +335 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationAndroidKey.js +123 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationAndroidSafetyNet.js +116 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationApple.js +61 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationFIDOU2F.js +51 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationPacked.js +116 -0
- package/node_modules/@simplewebauthn/server/script/registration/verifyRegistrationResponse.js +227 -0
- package/node_modules/@simplewebauthn/server/script/services/defaultRootCerts/android-key.js +174 -0
- package/node_modules/@simplewebauthn/server/script/services/defaultRootCerts/android-safetynet.js +35 -0
- package/node_modules/@simplewebauthn/server/script/services/defaultRootCerts/apple.js +28 -0
- package/node_modules/@simplewebauthn/server/script/services/defaultRootCerts/mds.js +77 -0
- package/node_modules/@simplewebauthn/server/script/services/metadataService.js +278 -0
- package/node_modules/@simplewebauthn/server/script/services/settingsService.js +89 -0
- package/node_modules/@simplewebauthn/server/script/types/dom.js +2 -0
- package/node_modules/@simplewebauthn/server/script/types/index.js +2 -0
- package/node_modules/accepts/index.js +238 -0
- package/node_modules/accepts/package.json +47 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/asn1js/build/index.es.js +3198 -0
- package/node_modules/asn1js/build/index.js +3266 -0
- package/node_modules/asn1js/package.json +86 -0
- package/node_modules/body-parser/index.js +55 -0
- package/node_modules/body-parser/lib/read.js +247 -0
- package/node_modules/body-parser/lib/types/json.js +186 -0
- package/node_modules/body-parser/lib/types/raw.js +42 -0
- package/node_modules/body-parser/lib/types/text.js +36 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +138 -0
- package/node_modules/body-parser/lib/utils.js +100 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
- package/node_modules/body-parser/package.json +65 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/content-disposition/index.js +536 -0
- package/node_modules/content-disposition/package.json +40 -0
- package/node_modules/content-type/index.js +225 -0
- package/node_modules/content-type/package.json +42 -0
- package/node_modules/cookie/index.js +335 -0
- package/node_modules/cookie/package.json +44 -0
- package/node_modules/cookie-signature/index.js +47 -0
- package/node_modules/cookie-signature/package.json +24 -0
- package/node_modules/cors/lib/index.js +238 -0
- package/node_modules/cors/package.json +42 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/ee-first/index.js +95 -0
- package/node_modules/ee-first/package.json +29 -0
- package/node_modules/encodeurl/index.js +60 -0
- package/node_modules/encodeurl/package.json +40 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +79 -0
- package/node_modules/es-object-atoms/tsconfig.json +7 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/etag/index.js +131 -0
- package/node_modules/etag/package.json +47 -0
- package/node_modules/eventsource/dist/index.cjs +273 -0
- package/node_modules/eventsource/dist/index.d.cts +332 -0
- package/node_modules/eventsource/dist/index.js +273 -0
- package/node_modules/eventsource/package.json +130 -0
- package/node_modules/eventsource/src/EventSource.ts +596 -0
- package/node_modules/eventsource/src/errors.ts +141 -0
- package/node_modules/eventsource/src/index.ts +3 -0
- package/node_modules/eventsource/src/types.ts +152 -0
- package/node_modules/eventsource-parser/dist/index.cjs +177 -0
- package/node_modules/eventsource-parser/dist/index.d.cts +169 -0
- package/node_modules/eventsource-parser/dist/index.js +177 -0
- package/node_modules/eventsource-parser/dist/stream.cjs +29 -0
- package/node_modules/eventsource-parser/dist/stream.d.cts +134 -0
- package/node_modules/eventsource-parser/dist/stream.js +30 -0
- package/node_modules/eventsource-parser/package.json +92 -0
- package/node_modules/eventsource-parser/src/errors.ts +44 -0
- package/node_modules/eventsource-parser/src/index.ts +8 -0
- package/node_modules/eventsource-parser/src/parse.ts +439 -0
- package/node_modules/eventsource-parser/src/stream.ts +107 -0
- package/node_modules/eventsource-parser/src/types.ts +122 -0
- package/node_modules/eventsource-parser/stream.js +2 -0
- package/node_modules/express/index.js +11 -0
- package/node_modules/express/lib/application.js +631 -0
- package/node_modules/express/lib/express.js +81 -0
- package/node_modules/express/lib/request.js +514 -0
- package/node_modules/express/lib/response.js +1053 -0
- package/node_modules/express/lib/utils.js +271 -0
- package/node_modules/express/lib/view.js +205 -0
- package/node_modules/express/package.json +99 -0
- package/node_modules/express-rate-limit/dist/index.cjs +1088 -0
- package/node_modules/express-rate-limit/dist/index.d.cts +699 -0
- package/node_modules/express-rate-limit/dist/index.d.mts +699 -0
- package/node_modules/express-rate-limit/dist/index.mjs +1044 -0
- package/node_modules/express-rate-limit/package.json +116 -0
- package/node_modules/express-rate-limit/tsconfig.json +8 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +631 -0
- package/node_modules/fast-uri/lib/schemes.js +272 -0
- package/node_modules/fast-uri/lib/utils.js +747 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/finalhandler/index.js +293 -0
- package/node_modules/finalhandler/package.json +47 -0
- package/node_modules/forwarded/index.js +90 -0
- package/node_modules/forwarded/package.json +45 -0
- package/node_modules/fresh/index.js +136 -0
- package/node_modules/fresh/package.json +46 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/hono/dist/_virtual/_rolldown/runtime.js +13 -0
- package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +43 -0
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +342 -0
- package/node_modules/hono/dist/adapter/aws-lambda/index.js +3 -0
- package/node_modules/hono/dist/adapter/aws-lambda/types.js +1 -0
- package/node_modules/hono/dist/adapter/bun/conninfo.js +22 -0
- package/node_modules/hono/dist/adapter/bun/index.js +6 -0
- package/node_modules/hono/dist/adapter/bun/serve-static.js +30 -0
- package/node_modules/hono/dist/adapter/bun/server.js +11 -0
- package/node_modules/hono/dist/adapter/bun/ssg.js +27 -0
- package/node_modules/hono/dist/adapter/bun/websocket.js +66 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +24 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +64 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +3 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +7 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +4 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +7 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +28 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +22 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +33 -0
- package/node_modules/hono/dist/adapter/deno/conninfo.js +17 -0
- package/node_modules/hono/dist/adapter/deno/deno.d.js +1 -0
- package/node_modules/hono/dist/adapter/deno/index.js +5 -0
- package/node_modules/hono/dist/adapter/deno/serve-static.js +35 -0
- package/node_modules/hono/dist/adapter/deno/ssg.js +29 -0
- package/node_modules/hono/dist/adapter/deno/websocket.js +32 -0
- package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +7 -0
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +111 -0
- package/node_modules/hono/dist/adapter/lambda-edge/index.js +3 -0
- package/node_modules/hono/dist/adapter/netlify/conninfo.js +24 -0
- package/node_modules/hono/dist/adapter/netlify/handler.js +11 -0
- package/node_modules/hono/dist/adapter/netlify/index.js +3 -0
- package/node_modules/hono/dist/adapter/netlify/mod.js +3 -0
- package/node_modules/hono/dist/adapter/service-worker/handler.js +16 -0
- package/node_modules/hono/dist/adapter/service-worker/index.js +25 -0
- package/node_modules/hono/dist/adapter/service-worker/types.js +1 -0
- package/node_modules/hono/dist/adapter/vercel/conninfo.js +7 -0
- package/node_modules/hono/dist/adapter/vercel/handler.js +9 -0
- package/node_modules/hono/dist/adapter/vercel/index.js +3 -0
- package/node_modules/hono/dist/cjs/_virtual/_rolldown/runtime.js +33 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +44 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +352 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +7 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +0 -0
- package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +23 -0
- package/node_modules/hono/dist/cjs/adapter/bun/index.js +14 -0
- package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/bun/server.js +12 -0
- package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +29 -0
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +70 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +25 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +67 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +7 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +8 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +7 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +8 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +29 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +23 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +34 -0
- package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +18 -0
- package/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +0 -0
- package/node_modules/hono/dist/cjs/adapter/deno/index.js +10 -0
- package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +36 -0
- package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +33 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +8 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +116 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +5 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +25 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +12 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/index.js +5 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +5 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +17 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +27 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +0 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +8 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +10 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/index.js +5 -0
- package/node_modules/hono/dist/cjs/client/client.js +145 -0
- package/node_modules/hono/dist/cjs/client/fetch-result-please.js +67 -0
- package/node_modules/hono/dist/cjs/client/index.js +7 -0
- package/node_modules/hono/dist/cjs/client/types.js +0 -0
- package/node_modules/hono/dist/cjs/client/utils.js +70 -0
- package/node_modules/hono/dist/cjs/compose.js +51 -0
- package/node_modules/hono/dist/cjs/context.js +383 -0
- package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +54 -0
- package/node_modules/hono/dist/cjs/helper/accepts/index.js +3 -0
- package/node_modules/hono/dist/cjs/helper/adapter/index.js +41 -0
- package/node_modules/hono/dist/cjs/helper/conninfo/index.js +0 -0
- package/node_modules/hono/dist/cjs/helper/conninfo/types.js +0 -0
- package/node_modules/hono/dist/cjs/helper/cookie/index.js +89 -0
- package/node_modules/hono/dist/cjs/helper/css/common.js +194 -0
- package/node_modules/hono/dist/cjs/helper/css/index.js +142 -0
- package/node_modules/hono/dist/cjs/helper/dev/index.js +53 -0
- package/node_modules/hono/dist/cjs/helper/factory/index.js +33 -0
- package/node_modules/hono/dist/cjs/helper/html/index.js +34 -0
- package/node_modules/hono/dist/cjs/helper/proxy/index.js +122 -0
- package/node_modules/hono/dist/cjs/helper/route/index.js +128 -0
- package/node_modules/hono/dist/cjs/helper/ssg/index.js +19 -0
- package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +65 -0
- package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +68 -0
- package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +220 -0
- package/node_modules/hono/dist/cjs/helper/ssg/utils.js +70 -0
- package/node_modules/hono/dist/cjs/helper/streaming/index.js +8 -0
- package/node_modules/hono/dist/cjs/helper/streaming/sse.js +59 -0
- package/node_modules/hono/dist/cjs/helper/streaming/stream.js +26 -0
- package/node_modules/hono/dist/cjs/helper/streaming/text.js +12 -0
- package/node_modules/hono/dist/cjs/helper/streaming/utils.js +16 -0
- package/node_modules/hono/dist/cjs/helper/testing/index.js +18 -0
- package/node_modules/hono/dist/cjs/helper/websocket/index.js +56 -0
- package/node_modules/hono/dist/cjs/hono-base.js +349 -0
- package/node_modules/hono/dist/cjs/hono.js +29 -0
- package/node_modules/hono/dist/cjs/http-exception.js +56 -0
- package/node_modules/hono/dist/cjs/index.js +22 -0
- package/node_modules/hono/dist/cjs/jsx/base.js +266 -0
- package/node_modules/hono/dist/cjs/jsx/children.js +19 -0
- package/node_modules/hono/dist/cjs/jsx/components.js +147 -0
- package/node_modules/hono/dist/cjs/jsx/constants.js +15 -0
- package/node_modules/hono/dist/cjs/jsx/context.js +170 -0
- package/node_modules/hono/dist/cjs/jsx/dom/client.js +56 -0
- package/node_modules/hono/dist/cjs/jsx/dom/components.js +26 -0
- package/node_modules/hono/dist/cjs/jsx/dom/context.js +43 -0
- package/node_modules/hono/dist/cjs/jsx/dom/css.js +153 -0
- package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +65 -0
- package/node_modules/hono/dist/cjs/jsx/dom/index.js +122 -0
- package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +306 -0
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +17 -0
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +5 -0
- package/node_modules/hono/dist/cjs/jsx/dom/render.js +525 -0
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +44 -0
- package/node_modules/hono/dist/cjs/jsx/dom/utils.js +9 -0
- package/node_modules/hono/dist/cjs/jsx/hooks/index.js +280 -0
- package/node_modules/hono/dist/cjs/jsx/index.js +89 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +27 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +138 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +0 -0
- package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +16 -0
- package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +37 -0
- package/node_modules/hono/dist/cjs/jsx/streaming.js +135 -0
- package/node_modules/hono/dist/cjs/jsx/types.js +0 -0
- package/node_modules/hono/dist/cjs/jsx/utils.js +116 -0
- package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +100 -0
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +97 -0
- package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +69 -0
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +173 -0
- package/node_modules/hono/dist/cjs/middleware/combine/index.js +139 -0
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +82 -0
- package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +55 -0
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +109 -0
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +106 -0
- package/node_modules/hono/dist/cjs/middleware/etag/digest.js +62 -0
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +79 -0
- package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +168 -0
- package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +104 -0
- package/node_modules/hono/dist/cjs/middleware/jwk/index.js +3 -0
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +122 -0
- package/node_modules/hono/dist/cjs/middleware/jwt/index.js +9 -0
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +124 -0
- package/node_modules/hono/dist/cjs/middleware/language/index.js +7 -0
- package/node_modules/hono/dist/cjs/middleware/language/language.js +208 -0
- package/node_modules/hono/dist/cjs/middleware/logger/index.js +51 -0
- package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +84 -0
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +105 -0
- package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +25 -0
- package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +41 -0
- package/node_modules/hono/dist/cjs/middleware/request-id/index.js +3 -0
- package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +35 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +4 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +0 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +166 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +61 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +17 -0
- package/node_modules/hono/dist/cjs/middleware/timeout/index.js +42 -0
- package/node_modules/hono/dist/cjs/middleware/timing/index.js +7 -0
- package/node_modules/hono/dist/cjs/middleware/timing/timing.js +189 -0
- package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +89 -0
- package/node_modules/hono/dist/cjs/package.json +3 -0
- package/node_modules/hono/dist/cjs/preset/quick.js +19 -0
- package/node_modules/hono/dist/cjs/preset/tiny.js +16 -0
- package/node_modules/hono/dist/cjs/request/constants.js +5 -0
- package/node_modules/hono/dist/cjs/request.js +337 -0
- package/node_modules/hono/dist/cjs/router/linear-router/index.js +3 -0
- package/node_modules/hono/dist/cjs/router/linear-router/router.js +97 -0
- package/node_modules/hono/dist/cjs/router/pattern-router/index.js +3 -0
- package/node_modules/hono/dist/cjs/router/pattern-router/router.js +42 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +7 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +21 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +96 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +97 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +102 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +74 -0
- package/node_modules/hono/dist/cjs/router/smart-router/index.js +3 -0
- package/node_modules/hono/dist/cjs/router/smart-router/router.js +50 -0
- package/node_modules/hono/dist/cjs/router/trie-router/index.js +3 -0
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +135 -0
- package/node_modules/hono/dist/cjs/router/trie-router/router.js +16 -0
- package/node_modules/hono/dist/cjs/router/utils.js +5 -0
- package/node_modules/hono/dist/cjs/router.js +40 -0
- package/node_modules/hono/dist/cjs/types.js +5 -0
- package/node_modules/hono/dist/cjs/utils/accept.js +194 -0
- package/node_modules/hono/dist/cjs/utils/basic-auth.js +21 -0
- package/node_modules/hono/dist/cjs/utils/body.js +97 -0
- package/node_modules/hono/dist/cjs/utils/buffer.js +55 -0
- package/node_modules/hono/dist/cjs/utils/color.js +39 -0
- package/node_modules/hono/dist/cjs/utils/compress.js +12 -0
- package/node_modules/hono/dist/cjs/utils/concurrent.js +31 -0
- package/node_modules/hono/dist/cjs/utils/constants.js +8 -0
- package/node_modules/hono/dist/cjs/utils/cookie.js +129 -0
- package/node_modules/hono/dist/cjs/utils/crypto.js +38 -0
- package/node_modules/hono/dist/cjs/utils/encode.js +37 -0
- package/node_modules/hono/dist/cjs/utils/filepath.js +27 -0
- package/node_modules/hono/dist/cjs/utils/handler.js +14 -0
- package/node_modules/hono/dist/cjs/utils/headers.js +0 -0
- package/node_modules/hono/dist/cjs/utils/html.js +109 -0
- package/node_modules/hono/dist/cjs/utils/http-status.js +0 -0
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +247 -0
- package/node_modules/hono/dist/cjs/utils/jwt/index.js +15 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +25 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jws.js +135 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +136 -0
- package/node_modules/hono/dist/cjs/utils/jwt/types.js +124 -0
- package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +11 -0
- package/node_modules/hono/dist/cjs/utils/mime.js +80 -0
- package/node_modules/hono/dist/cjs/utils/stream.js +89 -0
- package/node_modules/hono/dist/cjs/utils/types.js +0 -0
- package/node_modules/hono/dist/cjs/utils/url.js +215 -0
- package/node_modules/hono/dist/cjs/validator/index.js +3 -0
- package/node_modules/hono/dist/cjs/validator/utils.js +0 -0
- package/node_modules/hono/dist/cjs/validator/validator.js +65 -0
- package/node_modules/hono/dist/client/client.js +144 -0
- package/node_modules/hono/dist/client/fetch-result-please.js +65 -0
- package/node_modules/hono/dist/client/index.js +4 -0
- package/node_modules/hono/dist/client/types.js +1 -0
- package/node_modules/hono/dist/client/utils.js +62 -0
- package/node_modules/hono/dist/compose.js +50 -0
- package/node_modules/hono/dist/context.js +381 -0
- package/node_modules/hono/dist/helper/accepts/accepts.js +52 -0
- package/node_modules/hono/dist/helper/accepts/index.js +2 -0
- package/node_modules/hono/dist/helper/adapter/index.js +37 -0
- package/node_modules/hono/dist/helper/conninfo/index.js +1 -0
- package/node_modules/hono/dist/helper/conninfo/types.js +1 -0
- package/node_modules/hono/dist/helper/cookie/index.js +82 -0
- package/node_modules/hono/dist/helper/css/common.js +178 -0
- package/node_modules/hono/dist/helper/css/index.js +135 -0
- package/node_modules/hono/dist/helper/dev/index.js +50 -0
- package/node_modules/hono/dist/helper/factory/index.js +30 -0
- package/node_modules/hono/dist/helper/html/index.js +32 -0
- package/node_modules/hono/dist/helper/proxy/index.js +121 -0
- package/node_modules/hono/dist/helper/route/index.js +124 -0
- package/node_modules/hono/dist/helper/ssg/index.js +4 -0
- package/node_modules/hono/dist/helper/ssg/middleware.js +58 -0
- package/node_modules/hono/dist/helper/ssg/plugins.js +66 -0
- package/node_modules/hono/dist/helper/ssg/ssg.js +212 -0
- package/node_modules/hono/dist/helper/ssg/utils.js +65 -0
- package/node_modules/hono/dist/helper/streaming/index.js +4 -0
- package/node_modules/hono/dist/helper/streaming/sse.js +57 -0
- package/node_modules/hono/dist/helper/streaming/stream.js +25 -0
- package/node_modules/hono/dist/helper/streaming/text.js +11 -0
- package/node_modules/hono/dist/helper/streaming/utils.js +10 -0
- package/node_modules/hono/dist/helper/testing/index.js +17 -0
- package/node_modules/hono/dist/helper/websocket/index.js +53 -0
- package/node_modules/hono/dist/hono-base.js +348 -0
- package/node_modules/hono/dist/hono.js +28 -0
- package/node_modules/hono/dist/http-exception.js +55 -0
- package/node_modules/hono/dist/index.js +20 -0
- package/node_modules/hono/dist/jsx/base.js +251 -0
- package/node_modules/hono/dist/jsx/children.js +17 -0
- package/node_modules/hono/dist/jsx/components.js +145 -0
- package/node_modules/hono/dist/jsx/constants.js +9 -0
- package/node_modules/hono/dist/jsx/context.js +165 -0
- package/node_modules/hono/dist/jsx/dom/client.js +50 -0
- package/node_modules/hono/dist/jsx/dom/components.js +24 -0
- package/node_modules/hono/dist/jsx/dom/context.js +41 -0
- package/node_modules/hono/dist/jsx/dom/css.js +145 -0
- package/node_modules/hono/dist/jsx/dom/hooks/index.js +60 -0
- package/node_modules/hono/dist/jsx/dom/index.js +79 -0
- package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +290 -0
- package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +15 -0
- package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +2 -0
- package/node_modules/hono/dist/jsx/dom/render.js +516 -0
- package/node_modules/hono/dist/jsx/dom/server.js +37 -0
- package/node_modules/hono/dist/jsx/dom/utils.js +8 -0
- package/node_modules/hono/dist/jsx/hooks/index.js +259 -0
- package/node_modules/hono/dist/jsx/index.js +50 -0
- package/node_modules/hono/dist/jsx/intrinsic-element/common.js +22 -0
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +124 -0
- package/node_modules/hono/dist/jsx/intrinsic-elements.js +1 -0
- package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +14 -0
- package/node_modules/hono/dist/jsx/jsx-runtime.js +31 -0
- package/node_modules/hono/dist/jsx/streaming.js +132 -0
- package/node_modules/hono/dist/jsx/types.js +1 -0
- package/node_modules/hono/dist/jsx/utils.js +112 -0
- package/node_modules/hono/dist/middleware/basic-auth/index.js +99 -0
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +96 -0
- package/node_modules/hono/dist/middleware/body-limit/index.js +68 -0
- package/node_modules/hono/dist/middleware/cache/index.js +172 -0
- package/node_modules/hono/dist/middleware/combine/index.js +136 -0
- package/node_modules/hono/dist/middleware/compress/index.js +80 -0
- package/node_modules/hono/dist/middleware/context-storage/index.js +53 -0
- package/node_modules/hono/dist/middleware/cors/index.js +108 -0
- package/node_modules/hono/dist/middleware/csrf/index.js +105 -0
- package/node_modules/hono/dist/middleware/etag/digest.js +61 -0
- package/node_modules/hono/dist/middleware/etag/index.js +77 -0
- package/node_modules/hono/dist/middleware/ip-restriction/index.js +167 -0
- package/node_modules/hono/dist/middleware/jsx-renderer/index.js +101 -0
- package/node_modules/hono/dist/middleware/jwk/index.js +2 -0
- package/node_modules/hono/dist/middleware/jwk/jwk.js +121 -0
- package/node_modules/hono/dist/middleware/jwt/index.js +3 -0
- package/node_modules/hono/dist/middleware/jwt/jwt.js +119 -0
- package/node_modules/hono/dist/middleware/language/index.js +2 -0
- package/node_modules/hono/dist/middleware/language/language.js +198 -0
- package/node_modules/hono/dist/middleware/logger/index.js +50 -0
- package/node_modules/hono/dist/middleware/method-not-allowed/index.js +83 -0
- package/node_modules/hono/dist/middleware/method-override/index.js +104 -0
- package/node_modules/hono/dist/middleware/powered-by/index.js +24 -0
- package/node_modules/hono/dist/middleware/pretty-json/index.js +40 -0
- package/node_modules/hono/dist/middleware/request-id/index.js +2 -0
- package/node_modules/hono/dist/middleware/request-id/request-id.js +34 -0
- package/node_modules/hono/dist/middleware/secure-headers/index.js +2 -0
- package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +1 -0
- package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +164 -0
- package/node_modules/hono/dist/middleware/serve-static/index.js +60 -0
- package/node_modules/hono/dist/middleware/serve-static/path.js +16 -0
- package/node_modules/hono/dist/middleware/timeout/index.js +42 -0
- package/node_modules/hono/dist/middleware/timing/index.js +2 -0
- package/node_modules/hono/dist/middleware/timing/timing.js +184 -0
- package/node_modules/hono/dist/middleware/trailing-slash/index.js +87 -0
- package/node_modules/hono/dist/preset/quick.js +18 -0
- package/node_modules/hono/dist/preset/tiny.js +15 -0
- package/node_modules/hono/dist/request/constants.js +4 -0
- package/node_modules/hono/dist/request.js +335 -0
- package/node_modules/hono/dist/router/linear-router/index.js +2 -0
- package/node_modules/hono/dist/router/linear-router/router.js +96 -0
- package/node_modules/hono/dist/router/pattern-router/index.js +2 -0
- package/node_modules/hono/dist/router/pattern-router/router.js +41 -0
- package/node_modules/hono/dist/router/reg-exp-router/index.js +3 -0
- package/node_modules/hono/dist/router/reg-exp-router/matcher.js +19 -0
- package/node_modules/hono/dist/router/reg-exp-router/node.js +91 -0
- package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +94 -0
- package/node_modules/hono/dist/router/reg-exp-router/router.js +101 -0
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +73 -0
- package/node_modules/hono/dist/router/smart-router/index.js +2 -0
- package/node_modules/hono/dist/router/smart-router/router.js +49 -0
- package/node_modules/hono/dist/router/trie-router/index.js +2 -0
- package/node_modules/hono/dist/router/trie-router/node.js +134 -0
- package/node_modules/hono/dist/router/trie-router/router.js +15 -0
- package/node_modules/hono/dist/router/utils.js +4 -0
- package/node_modules/hono/dist/router.js +35 -0
- package/node_modules/hono/dist/types/package.json +3 -0
- package/node_modules/hono/dist/types.js +4 -0
- package/node_modules/hono/dist/utils/accept.js +193 -0
- package/node_modules/hono/dist/utils/basic-auth.js +20 -0
- package/node_modules/hono/dist/utils/body.js +96 -0
- package/node_modules/hono/dist/utils/buffer.js +51 -0
- package/node_modules/hono/dist/utils/color.js +37 -0
- package/node_modules/hono/dist/utils/compress.js +11 -0
- package/node_modules/hono/dist/utils/concurrent.js +30 -0
- package/node_modules/hono/dist/utils/constants.js +7 -0
- package/node_modules/hono/dist/utils/cookie.js +125 -0
- package/node_modules/hono/dist/utils/crypto.js +34 -0
- package/node_modules/hono/dist/utils/encode.js +33 -0
- package/node_modules/hono/dist/utils/filepath.js +25 -0
- package/node_modules/hono/dist/utils/handler.js +12 -0
- package/node_modules/hono/dist/utils/headers.js +1 -0
- package/node_modules/hono/dist/utils/html.js +103 -0
- package/node_modules/hono/dist/utils/http-status.js +1 -0
- package/node_modules/hono/dist/utils/ipaddr.js +238 -0
- package/node_modules/hono/dist/utils/jwt/index.js +14 -0
- package/node_modules/hono/dist/utils/jwt/jwa.js +24 -0
- package/node_modules/hono/dist/utils/jwt/jws.js +133 -0
- package/node_modules/hono/dist/utils/jwt/jwt.js +130 -0
- package/node_modules/hono/dist/utils/jwt/types.js +108 -0
- package/node_modules/hono/dist/utils/jwt/utf8.js +9 -0
- package/node_modules/hono/dist/utils/mime.js +77 -0
- package/node_modules/hono/dist/utils/stream.js +88 -0
- package/node_modules/hono/dist/utils/types.js +1 -0
- package/node_modules/hono/dist/utils/url.js +201 -0
- package/node_modules/hono/dist/validator/index.js +2 -0
- package/node_modules/hono/dist/validator/utils.js +1 -0
- package/node_modules/hono/dist/validator/validator.js +64 -0
- package/node_modules/hono/package.json +706 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +314 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ip-address/dist/address-error.js +12 -0
- package/node_modules/ip-address/dist/common.js +154 -0
- package/node_modules/ip-address/dist/ip-address.js +35 -0
- package/node_modules/ip-address/dist/ipv4.js +595 -0
- package/node_modules/ip-address/dist/ipv6.js +1458 -0
- package/node_modules/ip-address/dist/v4/constants.js +51 -0
- package/node_modules/ip-address/dist/v6/constants.js +128 -0
- package/node_modules/ip-address/dist/v6/helpers.js +54 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/node_modules/ip-address/package.json +90 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/node_modules/ipaddr.js/package.json +35 -0
- package/node_modules/is-promise/index.js +6 -0
- package/node_modules/is-promise/index.mjs +3 -0
- package/node_modules/is-promise/package.json +30 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/jose/dist/webapi/index.js +70 -0
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +7 -0
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +26 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +15 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +35 -0
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +40 -0
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +105 -0
- package/node_modules/jose/dist/webapi/jwk/embedded.js +30 -0
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +55 -0
- package/node_modules/jose/dist/webapi/jwks/local.js +59 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +101 -0
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +20 -0
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +8 -0
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +23 -0
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +12 -0
- package/node_modules/jose/dist/webapi/jws/general/sign.js +58 -0
- package/node_modules/jose/dist/webapi/jws/general/verify.js +48 -0
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -0
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +45 -0
- package/node_modules/jose/dist/webapi/jwt/sign.js +19 -0
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +34 -0
- package/node_modules/jose/dist/webapi/jwt/verify.js +13 -0
- package/node_modules/jose/dist/webapi/key/export.js +35 -0
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +35 -0
- package/node_modules/jose/dist/webapi/key/generate_secret.js +36 -0
- package/node_modules/jose/dist/webapi/key/import.js +53 -0
- package/node_modules/jose/dist/webapi/lib/asn1.js +138 -0
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +75 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +90 -0
- package/node_modules/jose/dist/webapi/lib/deflate.js +40 -0
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +116 -0
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +187 -0
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +75 -0
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +74 -0
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +46 -0
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +86 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +146 -0
- package/node_modules/jose/dist/webapi/lib/key.js +155 -0
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +15 -0
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +9 -0
- package/node_modules/jose/dist/webapi/lib/key_management.js +196 -0
- package/node_modules/jose/dist/webapi/lib/validate.js +122 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +16 -0
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +33 -0
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +19 -0
- package/node_modules/jose/dist/webapi/util/errors.js +109 -0
- package/node_modules/jose/package.json +134 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/json-schema-typed/draft_07.js +328 -0
- package/node_modules/json-schema-typed/draft_2019_09.js +349 -0
- package/node_modules/json-schema-typed/draft_2020_12.js +352 -0
- package/node_modules/json-schema-typed/package.json +44 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/media-typer/index.js +135 -0
- package/node_modules/media-typer/package.json +37 -0
- package/node_modules/merge-descriptors/index.js +26 -0
- package/node_modules/merge-descriptors/package.json +50 -0
- package/node_modules/mime-db/db.json +9342 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +56 -0
- package/node_modules/mime-types/index.js +211 -0
- package/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/mime-types/package.json +49 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/accept.js +54 -0
- package/node_modules/negotiator/lib/charset.js +145 -0
- package/node_modules/negotiator/lib/encoding.js +184 -0
- package/node_modules/negotiator/lib/language.js +158 -0
- package/node_modules/negotiator/lib/mediaType.js +176 -0
- package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/negotiator/node_modules/content-type/package.json +52 -0
- package/node_modules/negotiator/package.json +49 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/package.json +42 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +544 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +105 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/on-finished/index.js +234 -0
- package/node_modules/on-finished/package.json +39 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/parseurl/index.js +158 -0
- package/node_modules/parseurl/package.json +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-to-regexp/dist/index.js +431 -0
- package/node_modules/path-to-regexp/package.json +64 -0
- package/node_modules/pkce-challenge/dist/index.browser.js +75 -0
- package/node_modules/pkce-challenge/dist/index.node.cjs +83 -0
- package/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.js +78 -0
- package/node_modules/pkce-challenge/package.json +59 -0
- package/node_modules/proxy-addr/index.js +359 -0
- package/node_modules/proxy-addr/package.json +51 -0
- package/node_modules/pvtsutils/build/index.es.js +393 -0
- package/node_modules/pvtsutils/build/index.js +399 -0
- package/node_modules/pvtsutils/package.json +76 -0
- package/node_modules/pvutils/build/utils.es.js +340 -0
- package/node_modules/pvutils/build/utils.js +361 -0
- package/node_modules/pvutils/package.json +63 -0
- package/node_modules/qs/.editorconfig +46 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/dist/qs.js +141 -0
- package/node_modules/qs/eslint.config.mjs +57 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +413 -0
- package/node_modules/qs/lib/stringify.js +378 -0
- package/node_modules/qs/lib/utils.js +388 -0
- package/node_modules/qs/package.json +95 -0
- package/node_modules/range-parser/index.js +181 -0
- package/node_modules/range-parser/package.json +48 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/package.json +46 -0
- package/node_modules/reflect-metadata/CopyrightNotice.txt +15 -0
- package/node_modules/reflect-metadata/Reflect.js +1415 -0
- package/node_modules/reflect-metadata/ReflectLite.js +1137 -0
- package/node_modules/reflect-metadata/ReflectNoConflict.js +1111 -0
- package/node_modules/reflect-metadata/package.json +68 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/router/index.js +748 -0
- package/node_modules/router/lib/layer.js +247 -0
- package/node_modules/router/lib/route.js +242 -0
- package/node_modules/router/package.json +44 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/send/index.js +997 -0
- package/node_modules/send/package.json +63 -0
- package/node_modules/serve-static/index.js +208 -0
- package/node_modules/serve-static/package.json +44 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +12 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/index.js +46 -0
- package/node_modules/side-channel/package.json +85 -0
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/index.js +111 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/modules/index.js +70 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +402 -0
- package/node_modules/tslib/tslib.es6.mjs +401 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +484 -0
- package/node_modules/tsyringe/dist/cjs/decorators/auto-injectable.js +46 -0
- package/node_modules/tsyringe/dist/cjs/decorators/index.js +20 -0
- package/node_modules/tsyringe/dist/cjs/decorators/inject-all-with-transform.js +13 -0
- package/node_modules/tsyringe/dist/cjs/decorators/inject-all.js +12 -0
- package/node_modules/tsyringe/dist/cjs/decorators/inject-with-transform.js +10 -0
- package/node_modules/tsyringe/dist/cjs/decorators/inject.js +12 -0
- package/node_modules/tsyringe/dist/cjs/decorators/injectable.js +21 -0
- package/node_modules/tsyringe/dist/cjs/decorators/registry.js +14 -0
- package/node_modules/tsyringe/dist/cjs/decorators/scoped.js +13 -0
- package/node_modules/tsyringe/dist/cjs/decorators/singleton.js +11 -0
- package/node_modules/tsyringe/dist/cjs/dependency-container.js +341 -0
- package/node_modules/tsyringe/dist/cjs/error-helpers.js +19 -0
- package/node_modules/tsyringe/dist/cjs/factories/factory-function.js +2 -0
- package/node_modules/tsyringe/dist/cjs/factories/index.js +8 -0
- package/node_modules/tsyringe/dist/cjs/factories/instance-caching-factory.js +12 -0
- package/node_modules/tsyringe/dist/cjs/factories/instance-per-container-caching-factory.js +14 -0
- package/node_modules/tsyringe/dist/cjs/factories/predicate-aware-class-factory.js +19 -0
- package/node_modules/tsyringe/dist/cjs/index.js +15 -0
- package/node_modules/tsyringe/dist/cjs/interceptors.js +17 -0
- package/node_modules/tsyringe/dist/cjs/lazy-helpers.js +54 -0
- package/node_modules/tsyringe/dist/cjs/providers/class-provider.js +7 -0
- package/node_modules/tsyringe/dist/cjs/providers/factory-provider.js +7 -0
- package/node_modules/tsyringe/dist/cjs/providers/index.js +12 -0
- package/node_modules/tsyringe/dist/cjs/providers/injection-token.js +24 -0
- package/node_modules/tsyringe/dist/cjs/providers/provider.js +14 -0
- package/node_modules/tsyringe/dist/cjs/providers/token-provider.js +7 -0
- package/node_modules/tsyringe/dist/cjs/providers/value-provider.js +7 -0
- package/node_modules/tsyringe/dist/cjs/reflection-helpers.js +27 -0
- package/node_modules/tsyringe/dist/cjs/registry-base.js +39 -0
- package/node_modules/tsyringe/dist/cjs/registry.js +6 -0
- package/node_modules/tsyringe/dist/cjs/resolution-context.js +8 -0
- package/node_modules/tsyringe/dist/cjs/types/constructor.js +2 -0
- package/node_modules/tsyringe/dist/cjs/types/dependency-container.js +2 -0
- package/node_modules/tsyringe/dist/cjs/types/dictionary.js +2 -0
- package/node_modules/tsyringe/dist/cjs/types/disposable.js +13 -0
- package/node_modules/tsyringe/dist/cjs/types/frequency.js +2 -0
- package/node_modules/tsyringe/dist/cjs/types/index.js +4 -0
- package/node_modules/tsyringe/dist/cjs/types/interceptor-options.js +2 -0
- package/node_modules/tsyringe/dist/cjs/types/lifecycle.js +10 -0
- package/node_modules/tsyringe/dist/cjs/types/registration-options.js +2 -0
- package/node_modules/tsyringe/dist/cjs/types/transform.js +2 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/auto-injectable.js +44 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/index.js +9 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/inject-all-with-transform.js +11 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/inject-all.js +10 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/inject-with-transform.js +8 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/inject.js +10 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/injectable.js +19 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/registry.js +12 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/scoped.js +10 -0
- package/node_modules/tsyringe/dist/esm2015/decorators/singleton.js +9 -0
- package/node_modules/tsyringe/dist/esm2015/dependency-container.js +338 -0
- package/node_modules/tsyringe/dist/esm2015/error-helpers.js +15 -0
- package/node_modules/tsyringe/dist/esm2015/factories/factory-function.js +0 -0
- package/node_modules/tsyringe/dist/esm2015/factories/index.js +3 -0
- package/node_modules/tsyringe/dist/esm2015/factories/instance-caching-factory.js +9 -0
- package/node_modules/tsyringe/dist/esm2015/factories/instance-per-container-caching-factory.js +11 -0
- package/node_modules/tsyringe/dist/esm2015/factories/predicate-aware-class-factory.js +16 -0
- package/node_modules/tsyringe/dist/esm2015/index.js +9 -0
- package/node_modules/tsyringe/dist/esm2015/interceptors.js +11 -0
- package/node_modules/tsyringe/dist/esm2015/lazy-helpers.js +49 -0
- package/node_modules/tsyringe/dist/esm2015/providers/class-provider.js +3 -0
- package/node_modules/tsyringe/dist/esm2015/providers/factory-provider.js +3 -0
- package/node_modules/tsyringe/dist/esm2015/providers/index.js +5 -0
- package/node_modules/tsyringe/dist/esm2015/providers/injection-token.js +17 -0
- package/node_modules/tsyringe/dist/esm2015/providers/provider.js +10 -0
- package/node_modules/tsyringe/dist/esm2015/providers/token-provider.js +3 -0
- package/node_modules/tsyringe/dist/esm2015/providers/value-provider.js +3 -0
- package/node_modules/tsyringe/dist/esm2015/reflection-helpers.js +22 -0
- package/node_modules/tsyringe/dist/esm2015/registry-base.js +36 -0
- package/node_modules/tsyringe/dist/esm2015/registry.js +3 -0
- package/node_modules/tsyringe/dist/esm2015/resolution-context.js +5 -0
- package/node_modules/tsyringe/dist/esm2015/types/constructor.js +0 -0
- package/node_modules/tsyringe/dist/esm2015/types/dependency-container.js +0 -0
- package/node_modules/tsyringe/dist/esm2015/types/dictionary.js +0 -0
- package/node_modules/tsyringe/dist/esm2015/types/disposable.js +9 -0
- package/node_modules/tsyringe/dist/esm2015/types/frequency.js +0 -0
- package/node_modules/tsyringe/dist/esm2015/types/index.js +1 -0
- package/node_modules/tsyringe/dist/esm2015/types/interceptor-options.js +0 -0
- package/node_modules/tsyringe/dist/esm2015/types/lifecycle.js +8 -0
- package/node_modules/tsyringe/dist/esm2015/types/registration-options.js +0 -0
- package/node_modules/tsyringe/dist/esm2015/types/transform.js +0 -0
- package/node_modules/tsyringe/dist/esm5/decorators/auto-injectable.js +48 -0
- package/node_modules/tsyringe/dist/esm5/decorators/index.js +9 -0
- package/node_modules/tsyringe/dist/esm5/decorators/inject-all-with-transform.js +15 -0
- package/node_modules/tsyringe/dist/esm5/decorators/inject-all.js +10 -0
- package/node_modules/tsyringe/dist/esm5/decorators/inject-with-transform.js +12 -0
- package/node_modules/tsyringe/dist/esm5/decorators/inject.js +10 -0
- package/node_modules/tsyringe/dist/esm5/decorators/injectable.js +19 -0
- package/node_modules/tsyringe/dist/esm5/decorators/registry.js +13 -0
- package/node_modules/tsyringe/dist/esm5/decorators/scoped.js +10 -0
- package/node_modules/tsyringe/dist/esm5/decorators/singleton.js +9 -0
- package/node_modules/tsyringe/dist/esm5/dependency-container.js +410 -0
- package/node_modules/tsyringe/dist/esm5/error-helpers.js +17 -0
- package/node_modules/tsyringe/dist/esm5/factories/factory-function.js +0 -0
- package/node_modules/tsyringe/dist/esm5/factories/index.js +3 -0
- package/node_modules/tsyringe/dist/esm5/factories/instance-caching-factory.js +9 -0
- package/node_modules/tsyringe/dist/esm5/factories/instance-per-container-caching-factory.js +11 -0
- package/node_modules/tsyringe/dist/esm5/factories/predicate-aware-class-factory.js +17 -0
- package/node_modules/tsyringe/dist/esm5/index.js +9 -0
- package/node_modules/tsyringe/dist/esm5/interceptors.js +26 -0
- package/node_modules/tsyringe/dist/esm5/lazy-helpers.js +57 -0
- package/node_modules/tsyringe/dist/esm5/providers/class-provider.js +3 -0
- package/node_modules/tsyringe/dist/esm5/providers/factory-provider.js +3 -0
- package/node_modules/tsyringe/dist/esm5/providers/index.js +5 -0
- package/node_modules/tsyringe/dist/esm5/providers/injection-token.js +17 -0
- package/node_modules/tsyringe/dist/esm5/providers/provider.js +10 -0
- package/node_modules/tsyringe/dist/esm5/providers/token-provider.js +3 -0
- package/node_modules/tsyringe/dist/esm5/providers/value-provider.js +3 -0
- package/node_modules/tsyringe/dist/esm5/reflection-helpers.js +22 -0
- package/node_modules/tsyringe/dist/esm5/registry-base.js +38 -0
- package/node_modules/tsyringe/dist/esm5/registry.js +10 -0
- package/node_modules/tsyringe/dist/esm5/resolution-context.js +7 -0
- package/node_modules/tsyringe/dist/esm5/types/constructor.js +0 -0
- package/node_modules/tsyringe/dist/esm5/types/dependency-container.js +0 -0
- package/node_modules/tsyringe/dist/esm5/types/dictionary.js +0 -0
- package/node_modules/tsyringe/dist/esm5/types/disposable.js +9 -0
- package/node_modules/tsyringe/dist/esm5/types/frequency.js +0 -0
- package/node_modules/tsyringe/dist/esm5/types/index.js +1 -0
- package/node_modules/tsyringe/dist/esm5/types/interceptor-options.js +0 -0
- package/node_modules/tsyringe/dist/esm5/types/lifecycle.js +8 -0
- package/node_modules/tsyringe/dist/esm5/types/registration-options.js +0 -0
- package/node_modules/tsyringe/dist/esm5/types/transform.js +0 -0
- package/node_modules/tsyringe/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tsyringe/node_modules/tslib/modules/index.js +51 -0
- package/node_modules/tsyringe/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tsyringe/node_modules/tslib/package.json +37 -0
- package/node_modules/tsyringe/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tsyringe/node_modules/tslib/tslib.es6.js +218 -0
- package/node_modules/tsyringe/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tsyringe/node_modules/tslib/tslib.js +284 -0
- package/node_modules/tsyringe/package.json +63 -0
- package/node_modules/type-is/index.js +240 -0
- package/node_modules/type-is/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/type-is/node_modules/content-type/package.json +52 -0
- package/node_modules/type-is/package.json +51 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/node_modules/vary/index.js +149 -0
- package/node_modules/vary/package.json +43 -0
- package/node_modules/which/bin/node-which +52 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.js +224 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.js +118 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.js +980 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +52 -0
- package/node_modules/zod/index.d.cts +3 -0
- package/node_modules/zod/index.js +7 -0
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +147 -0
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/node_modules/zod/src/v4/core/compile.ts +2313 -0
- package/node_modules/zod/src/v4/core/core.ts +230 -0
- package/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/node_modules/zod/src/v4/core/index.ts +19 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/node_modules/zod/src/v4/core/util.ts +1280 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +167 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.js +143 -0
- package/node_modules/zod/v3/errors.cjs +36 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +41 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +52 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3798 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.js +3697 -0
- package/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/node_modules/zod/v4/classic/errors.js +57 -0
- package/node_modules/zod/v4/classic/external.cjs +97 -0
- package/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/node_modules/zod/v4/classic/external.js +17 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +52 -0
- package/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/node_modules/zod/v4/classic/iso.js +15 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/node_modules/zod/v4/classic/parse.js +16 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/node_modules/zod/v4/core/api.cjs +1269 -0
- package/node_modules/zod/v4/core/api.d.cts +335 -0
- package/node_modules/zod/v4/core/api.js +1107 -0
- package/node_modules/zod/v4/core/checks.cjs +561 -0
- package/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/node_modules/zod/v4/core/checks.js +516 -0
- package/node_modules/zod/v4/core/compile.cjs +1908 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.js +1858 -0
- package/node_modules/zod/v4/core/core.cjs +167 -0
- package/node_modules/zod/v4/core/core.d.cts +82 -0
- package/node_modules/zod/v4/core/core.js +141 -0
- package/node_modules/zod/v4/core/doc.cjs +61 -0
- package/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/node_modules/zod/v4/core/doc.js +38 -0
- package/node_modules/zod/v4/core/errors.cjs +317 -0
- package/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/node_modules/zod/v4/core/errors.js +267 -0
- package/node_modules/zod/v4/core/index.cjs +70 -0
- package/node_modules/zod/v4/core/index.d.cts +19 -0
- package/node_modules/zod/v4/core/index.js +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +233 -0
- package/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/node_modules/zod/v4/core/parse.js +175 -0
- package/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/node_modules/zod/v4/core/regexes.js +156 -0
- package/node_modules/zod/v4/core/registries.cjs +75 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2669 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
- package/node_modules/zod/v4/core/schemas.js +2606 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/node_modules/zod/v4/core/util.cjs +949 -0
- package/node_modules/zod/v4/core/util.d.cts +278 -0
- package/node_modules/zod/v4/core/util.js +859 -0
- package/node_modules/zod/v4/core/versions.cjs +27 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +51 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.js +4 -0
- package/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.js +111 -0
- package/node_modules/zod/v4/locales/az.cjs +137 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.js +110 -0
- package/node_modules/zod/v4/locales/be.cjs +195 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.js +168 -0
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.js +112 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.js +116 -0
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +140 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.js +113 -0
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +152 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.js +125 -0
- package/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.js +114 -0
- package/node_modules/zod/v4/locales/es.cjs +163 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.js +136 -0
- package/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.js +119 -0
- package/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.js +117 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.js +129 -0
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +248 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.js +221 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.js +113 -0
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +138 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.js +111 -0
- package/node_modules/zod/v4/locales/index.cjs +152 -0
- package/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/node_modules/zod/v4/locales/index.js +63 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +140 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.js +113 -0
- package/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.js +112 -0
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.js +116 -0
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.js +114 -0
- package/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.js +112 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.js +115 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +140 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.js +113 -0
- package/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.js +114 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.js +114 -0
- package/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.js +119 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.js +142 -0
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.js +168 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.js +114 -0
- package/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.js +115 -0
- package/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.js +115 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +142 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.js +115 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.js +110 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.js +115 -0
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.js +113 -0
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +95 -0
- package/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/node_modules/zod/v4/mini/external.js +16 -0
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +51 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +51 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
- package/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
- package/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
- package/node_modules/zod-to-json-schema/createIndex.ts +32 -0
- package/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
- package/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
- package/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
- package/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
- package/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
- package/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
- package/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
- package/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
- package/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
- package/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
- package/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
- package/node_modules/zod-to-json-schema/package.json +85 -0
- package/node_modules/zod-to-json-schema/postcjs.ts +3 -0
- package/node_modules/zod-to-json-schema/postesm.ts +3 -0
- package/package.json +45 -0
- package/prepare.mjs +220 -0
- package/runtime-package.json +23 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}
|
|
2
|
+
/*!
|
|
3
|
+
* MIT License
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Peculiar Ventures. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
*/var x509=function(e,t){"use strict";
|
|
26
|
+
/*!
|
|
27
|
+
* MIT License
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) 2017-2024 Peculiar Ventures, LLC
|
|
30
|
+
*
|
|
31
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
32
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
33
|
+
* in the Software without restriction, including without limitation the rights
|
|
34
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
35
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
36
|
+
* furnished to do so, subject to the following conditions:
|
|
37
|
+
*
|
|
38
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
39
|
+
* copies or substantial portions of the Software.
|
|
40
|
+
*
|
|
41
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
42
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
43
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
44
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
45
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
46
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
47
|
+
* SOFTWARE.
|
|
48
|
+
*
|
|
49
|
+
*/class r{static isArrayBuffer(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}static toArrayBuffer(e){return this.isArrayBuffer(e)?e:e.byteLength===e.buffer.byteLength||0===e.byteOffset&&e.byteLength===e.buffer.byteLength?e.buffer:this.toUint8Array(e.buffer).slice(e.byteOffset,e.byteOffset+e.byteLength).buffer}static toUint8Array(e){return this.toView(e,Uint8Array)}static toView(e,t){if(e.constructor===t)return e;if(this.isArrayBuffer(e))return new t(e);if(this.isArrayBufferView(e))return new t(e.buffer,e.byteOffset,e.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(e){return this.isArrayBufferView(e)||this.isArrayBuffer(e)}static isArrayBufferView(e){return ArrayBuffer.isView(e)||e&&this.isArrayBuffer(e.buffer)}static isEqual(e,t){const i=r.toUint8Array(e),n=r.toUint8Array(t);if(i.length!==n.byteLength)return!1;for(let e=0;e<i.length;e++)if(i[e]!==n[e])return!1;return!0}static concat(...e){let t;t=!Array.isArray(e[0])||e[1]instanceof Function?Array.isArray(e[0])&&e[1]instanceof Function?e[0]:e[e.length-1]instanceof Function?e.slice(0,e.length-1):e:e[0];let r=0;for(const e of t)r+=e.byteLength;const i=new Uint8Array(r);let n=0;for(const e of t){const t=this.toUint8Array(e);i.set(t,n),n+=t.length}return e[e.length-1]instanceof Function?this.toView(i,e[e.length-1]):i.buffer}}const i="string",n=/^[0-9a-f\s]+$/i,s=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,o=/^[a-zA-Z0-9-_]+$/;class a{static fromString(e){const t=unescape(encodeURIComponent(e)),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}static toString(e){const t=r.toUint8Array(e);let i="";for(let e=0;e<t.length;e++)i+=String.fromCharCode(t[e]);return decodeURIComponent(escape(i))}}class c{static toString(e,t=!1){const i=r.toArrayBuffer(e),n=new DataView(i);let s="";for(let e=0;e<i.byteLength;e+=2){const r=n.getUint16(e,t);s+=String.fromCharCode(r)}return s}static fromString(e,t=!1){const r=new ArrayBuffer(2*e.length),i=new DataView(r);for(let r=0;r<e.length;r++)i.setUint16(2*r,e.charCodeAt(r),t);return r}}class l{static isHex(e){return typeof e===i&&n.test(e)}static isBase64(e){return typeof e===i&&s.test(e)}static isBase64Url(e){return typeof e===i&&o.test(e)}static ToString(e,t="utf8"){const i=r.toUint8Array(e);switch(t.toLowerCase()){case"utf8":return this.ToUtf8String(i);case"binary":return this.ToBinary(i);case"hex":return this.ToHex(i);case"base64":return this.ToBase64(i);case"base64url":return this.ToBase64Url(i);case"utf16le":return c.toString(i,!0);case"utf16":case"utf16be":return c.toString(i);default:throw new Error(`Unknown type of encoding '${t}'`)}}static FromString(e,t="utf8"){if(!e)return new ArrayBuffer(0);switch(t.toLowerCase()){case"utf8":return this.FromUtf8String(e);case"binary":return this.FromBinary(e);case"hex":return this.FromHex(e);case"base64":return this.FromBase64(e);case"base64url":return this.FromBase64Url(e);case"utf16le":return c.fromString(e,!0);case"utf16":case"utf16be":return c.fromString(e);default:throw new Error(`Unknown type of encoding '${t}'`)}}static ToBase64(e){const t=r.toUint8Array(e);if("undefined"!=typeof btoa){const e=this.ToString(t,"binary");return btoa(e)}return Buffer.from(t).toString("base64")}static FromBase64(e){const t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!l.isBase64(t))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return"undefined"!=typeof atob?this.FromBinary(atob(t)):new Uint8Array(Buffer.from(t,"base64")).buffer}static FromBase64Url(e){const t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!l.isBase64Url(t))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(t.replace(/\-/g,"+").replace(/\_/g,"/")))}static ToBase64Url(e){return this.ToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}static FromUtf8String(e,t=l.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.FromBinary(e);case"utf8":return a.fromString(e);case"utf16":case"utf16be":return c.fromString(e);case"utf16le":case"usc2":return c.fromString(e,!0);default:throw new Error(`Unknown type of encoding '${t}'`)}}static ToUtf8String(e,t=l.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.ToBinary(e);case"utf8":return a.toString(e);case"utf16":case"utf16be":return c.toString(e);case"utf16le":case"usc2":return c.toString(e,!0);default:throw new Error(`Unknown type of encoding '${t}'`)}}static FromBinary(e){const t=e.length,r=new Uint8Array(t);for(let i=0;i<t;i++)r[i]=e.charCodeAt(i);return r.buffer}static ToBinary(e){const t=r.toUint8Array(e);let i="";for(let e=0;e<t.length;e++)i+=String.fromCharCode(t[e]);return i}static ToHex(e){const t=r.toUint8Array(e);let i="";const n=t.length;for(let e=0;e<n;e++){const r=t[e];r<16&&(i+="0"),i+=r.toString(16)}return i}static FromHex(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!l.isHex(t))throw new TypeError("Argument 'hexString' is not HEX encoded");t.length%2&&(t=`0${t}`);const r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2){const i=t.slice(e,e+2);r[e/2]=parseInt(i,16)}return r.buffer}static ToUtf16String(e,t=!1){return c.toString(e,t)}static FromUtf16String(e,t=!1){return c.fromString(e,t)}static Base64Padding(e){const t=4-e.length%4;if(t<4)for(let r=0;r<t;r++)e+="=";return e}static formatString(e){return(null==e?void 0:e.replace(/[\n\r\t ]/g,""))||""}}function u(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;const r=new Uint8Array(e),i=new Uint8Array(t);for(let t=0;t<e.byteLength;t++)if(r[t]!==i[t])return!1;return!0}
|
|
50
|
+
/*!
|
|
51
|
+
Copyright (c) Peculiar Ventures, LLC
|
|
52
|
+
*/function p(e,t){let r=0;if(1===e.length)return e[0];for(let i=e.length-1;i>=0;i--)r+=e[e.length-1-i]*Math.pow(2,t*i);return r}function h(e,t,r=-1){const i=r;let n=e,s=0,o=Math.pow(2,t);for(let r=1;r<8;r++){if(e<o){let e;if(i<0)e=new ArrayBuffer(r),s=r;else{if(i<r)return new ArrayBuffer(0);e=new ArrayBuffer(i),s=i}const o=new Uint8Array(e);for(let e=r-1;e>=0;e--){const r=Math.pow(2,e*t);o[s-e-1]=Math.floor(n/r),n-=o[s-e-1]*r}return e}o*=Math.pow(2,t)}return new ArrayBuffer(0)}function f(...e){let t=0,r=0;for(const r of e)t+=r.length;const i=new ArrayBuffer(t),n=new Uint8Array(i);for(const t of e)n.set(t,r),r+=t.length;return n}function d(){const e=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){const t=255===e[0]&&128&e[1],r=0===e[0]&&!(128&e[1]);(t||r)&&this.warnings.push("Needlessly long format")}const t=new ArrayBuffer(this.valueHex.byteLength),r=new Uint8Array(t);for(let e=0;e<this.valueHex.byteLength;e++)r[e]=0;r[0]=128&e[0];const i=p(r,8),n=new ArrayBuffer(this.valueHex.byteLength),s=new Uint8Array(n);for(let t=0;t<this.valueHex.byteLength;t++)s[t]=e[t];s[0]&=127;return p(s,8)-i}function y(e,t){const r=e.toString(10);if(t<r.length)return"";const i=t-r.length,n=new Array(i);for(let e=0;e<i;e++)n[e]="0";return n.join("").concat(r)}
|
|
53
|
+
/*!
|
|
54
|
+
* Copyright (c) 2014, GMO GlobalSign
|
|
55
|
+
* Copyright (c) 2015-2022, Peculiar Ventures
|
|
56
|
+
* All rights reserved.
|
|
57
|
+
*
|
|
58
|
+
* Author 2014-2019, Yury Strozhevsky
|
|
59
|
+
*
|
|
60
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
61
|
+
* are permitted provided that the following conditions are met:
|
|
62
|
+
*
|
|
63
|
+
* * Redistributions of source code must retain the above copyright notice, this
|
|
64
|
+
* list of conditions and the following disclaimer.
|
|
65
|
+
*
|
|
66
|
+
* * Redistributions in binary form must reproduce the above copyright notice, this
|
|
67
|
+
* list of conditions and the following disclaimer in the documentation and/or
|
|
68
|
+
* other materials provided with the distribution.
|
|
69
|
+
*
|
|
70
|
+
* * Neither the name of the copyright holder nor the names of its
|
|
71
|
+
* contributors may be used to endorse or promote products derived from
|
|
72
|
+
* this software without specific prior written permission.
|
|
73
|
+
*
|
|
74
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
75
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
76
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
77
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
78
|
+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
79
|
+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
80
|
+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
81
|
+
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
82
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
83
|
+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
84
|
+
*
|
|
85
|
+
*/function g(){if("undefined"==typeof BigInt)throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}function v(e){let t=0,r=0;for(let r=0;r<e.length;r++){t+=e[r].byteLength}const i=new Uint8Array(t);for(let t=0;t<e.length;t++){const n=e[t];i.set(new Uint8Array(n),r),r+=n.byteLength}return i.buffer}function m(e,t,r,i){return t instanceof Uint8Array?t.byteLength?r<0?(e.error="Wrong parameter: inputOffset less than zero",!1):i<0?(e.error="Wrong parameter: inputLength less than zero",!1):!(t.byteLength-r-i<0)||(e.error="End of input reached before message was fully decoded (inconsistent offset and length values)",!1):(e.error="Wrong parameter: inputBuffer has zero length",!1):(e.error="Wrong parameter: inputBuffer must be 'Uint8Array'",!1)}l.DEFAULT_UTF8_ENCODING="utf8";class b{constructor(){this.items=[]}write(e){this.items.push(e)}final(){return v(this.items)}}const w=[new Uint8Array([1])],A="0123456789",S="name",x="valueHexView",B="",k=new ArrayBuffer(0),C=new Uint8Array(0),P="EndOfContent",E="OCTET STRING",O="BIT STRING";function N(e){var t;return(t=class extends e{get valueHex(){return this.valueHexView.slice().buffer}set valueHex(e){this.valueHexView=new Uint8Array(e)}constructor(...e){var t;super(...e);const i=e[0]||{};this.isHexOnly=null!==(t=i.isHexOnly)&&void 0!==t&&t,this.valueHexView=i.valueHex?r.toUint8Array(i.valueHex):C}fromBER(e,t,r,i){const n=e instanceof ArrayBuffer?new Uint8Array(e):e;if(!m(this,n,t,r))return-1;const s=t+r;return this.valueHexView=n.subarray(t,s),this.valueHexView.length?(this.blockLength=r,s):(this.warnings.push("Zero buffer length"),t)}toBER(e=!1){return this.isHexOnly?e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.byteLength===this.valueHexView.buffer.byteLength?this.valueHexView.buffer:this.valueHexView.slice().buffer:(this.error="Flag 'isHexOnly' is not set, abort",k)}toJSON(){return{...super.toJSON(),isHexOnly:this.isHexOnly,valueHex:l.ToHex(this.valueHexView)}}}).NAME="hexBlock",t}class I{static blockName(){return this.NAME}get valueBeforeDecode(){return this.valueBeforeDecodeView.slice().buffer}set valueBeforeDecode(e){this.valueBeforeDecodeView=new Uint8Array(e)}constructor({blockLength:e=0,error:t="",warnings:i=[],valueBeforeDecode:n=C}={}){this.blockLength=e,this.error=t,this.warnings=i,this.valueBeforeDecodeView=r.toUint8Array(n)}toJSON(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:l.ToHex(this.valueBeforeDecodeView)}}}I.NAME="baseBlock";class T extends I{fromBER(e,t,r,i){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}toBER(e,t){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}}T.NAME="valueBlock";class j extends(N(I)){constructor({idBlock:e={}}={}){var t,i,n,s;super(),e?(this.isHexOnly=null!==(t=e.isHexOnly)&&void 0!==t&&t,this.valueHexView=e.valueHex?r.toUint8Array(e.valueHex):C,this.tagClass=null!==(i=e.tagClass)&&void 0!==i?i:-1,this.tagNumber=null!==(n=e.tagNumber)&&void 0!==n?n:-1,this.isConstructed=null!==(s=e.isConstructed)&&void 0!==s&&s):(this.tagClass=-1,this.tagNumber=-1,this.isConstructed=!1)}toBER(e=!1){let t=0;switch(this.tagClass){case 1:t|=0;break;case 2:t|=64;break;case 3:t|=128;break;case 4:t|=192;break;default:return this.error="Unknown tag class",k}if(this.isConstructed&&(t|=32),this.tagNumber<31&&!this.isHexOnly){const r=new Uint8Array(1);if(!e){let e=this.tagNumber;e&=31,t|=e,r[0]=t}return r.buffer}if(!this.isHexOnly){const r=h(this.tagNumber,7),i=new Uint8Array(r),n=r.byteLength,s=new Uint8Array(n+1);if(s[0]=31|t,!e){for(let e=0;e<n-1;e++)s[e+1]=128|i[e];s[n]=i[n-1]}return s.buffer}const r=new Uint8Array(this.valueHexView.byteLength+1);if(r[0]=31|t,!e){const e=this.valueHexView;for(let t=0;t<e.length-1;t++)r[t+1]=128|e[t];r[this.valueHexView.byteLength]=e[e.length-1]}return r.buffer}fromBER(e,t,i){const n=r.toUint8Array(e);if(!m(this,n,t,i))return-1;const s=n.subarray(t,t+i);if(0===s.length)return this.error="Zero buffer length",-1;switch(192&s[0]){case 0:this.tagClass=1;break;case 64:this.tagClass=2;break;case 128:this.tagClass=3;break;case 192:this.tagClass=4;break;default:return this.error="Unknown tag class",-1}this.isConstructed=!(32&~s[0]),this.isHexOnly=!1;const o=31&s[0];if(31!==o)this.tagNumber=o,this.blockLength=1;else{let e=0;for(;;){const t=e+1;if(t>=s.length)return this.error="End of input reached before message was fully decoded",-1;if(e++,!(128&s[t]))break}this.blockLength=e+1;const t=this.valueHexView=new Uint8Array(e);for(let r=0;r<e;r++)t[r]=127&s[r+1];this.blockLength<=9?this.tagNumber=p(t,7):(this.isHexOnly=!0,this.warnings.push("Tag too long, represented as hex-coded"))}if(1===this.tagClass&&this.isConstructed)switch(this.tagNumber){case 1:case 2:case 5:case 6:case 9:case 13:case 14:case 23:case 24:case 31:case 32:case 33:case 34:return this.error="Constructed encoding used for primitive type",-1}return t+this.blockLength}toJSON(){return{...super.toJSON(),tagClass:this.tagClass,tagNumber:this.tagNumber,isConstructed:this.isConstructed}}}j.NAME="identificationBlock";class _ extends I{constructor({lenBlock:e={}}={}){var t,r,i;super(),this.isIndefiniteForm=null!==(t=e.isIndefiniteForm)&&void 0!==t&&t,this.longFormUsed=null!==(r=e.longFormUsed)&&void 0!==r&&r,this.length=null!==(i=e.length)&&void 0!==i?i:0}fromBER(e,t,i){const n=r.toUint8Array(e);if(!m(this,n,t,i))return-1;const s=n.subarray(t,t+i);if(0===s.length)return this.error="Zero buffer length",-1;if(255===s[0])return this.error="Length block 0xFF is reserved by standard",-1;if(this.isIndefiniteForm=128===s[0],this.isIndefiniteForm)return this.blockLength=1,t+this.blockLength;if(this.longFormUsed=!!(128&s[0]),!1===this.longFormUsed)return this.length=s[0],this.blockLength=1,t+this.blockLength;const o=127&s[0];if(o>8)return this.error="Too big integer",-1;if(o+1>s.length)return this.error="End of input reached before message was fully decoded",-1;const a=t+1,c=n.subarray(a,a+o);return 0===c[o-1]&&this.warnings.push("Needlessly long encoded length"),this.length=p(c,8),this.longFormUsed&&this.length<=127&&this.warnings.push("Unnecessary usage of long length form"),this.blockLength=o+1,t+this.blockLength}toBER(e=!1){let t,r;if(this.length>127&&(this.longFormUsed=!0),this.isIndefiniteForm)return t=new ArrayBuffer(1),!1===e&&(r=new Uint8Array(t),r[0]=128),t;if(this.longFormUsed){const i=h(this.length,8);if(i.byteLength>127)return this.error="Too big length",k;if(t=new ArrayBuffer(i.byteLength+1),e)return t;const n=new Uint8Array(i);r=new Uint8Array(t),r[0]=128|i.byteLength;for(let e=0;e<i.byteLength;e++)r[e+1]=n[e];return t}return t=new ArrayBuffer(1),!1===e&&(r=new Uint8Array(t),r[0]=this.length),t}toJSON(){return{...super.toJSON(),isIndefiniteForm:this.isIndefiniteForm,longFormUsed:this.longFormUsed,length:this.length}}}_.NAME="lengthBlock";const U={};class L extends I{constructor({name:e="",optional:t=!1,primitiveSchema:r,...i}={},n){super(i),this.name=e,this.optional=t,r&&(this.primitiveSchema=r),this.idBlock=new j(i),this.lenBlock=new _(i),this.valueBlock=n?new n(i):new T(i)}fromBER(e,t,r,i){const n=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?r:this.lenBlock.length,i);return-1===n?(this.error=this.valueBlock.error,n):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),n)}toBER(e,t){const r=t||new b;t||D(this);const i=this.idBlock.toBER(e);if(r.write(i),this.lenBlock.isIndefiniteForm)r.write(new Uint8Array([128]).buffer),this.valueBlock.toBER(e,r),r.write(new ArrayBuffer(2));else{const t=this.valueBlock.toBER(e);this.lenBlock.length=t.byteLength;const i=this.lenBlock.toBER(e);r.write(i),r.write(t)}return t?k:r.final()}toJSON(){const e={...super.toJSON(),idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional};return this.primitiveSchema&&(e.primitiveSchema=this.primitiveSchema.toJSON()),e}toString(e="ascii"){return"ascii"===e?this.onAsciiEncoding():l.ToHex(this.toBER())}onAsciiEncoding(){return`${this.constructor.NAME} : ${l.ToHex(this.valueBlock.valueBeforeDecodeView)}`}isEqual(e){if(this===e)return!0;if(!(e instanceof this.constructor))return!1;return function(e,t){if(e.byteLength!==t.byteLength)return!1;const r=new Uint8Array(e),i=new Uint8Array(t);for(let e=0;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}(this.toBER(),e.toBER())}}function D(e){var t;if(e instanceof U.Constructed)for(const t of e.valueBlock.value)D(t)&&(e.lenBlock.isIndefiniteForm=!0);return!!(null===(t=e.lenBlock)||void 0===t?void 0:t.isIndefiniteForm)}L.NAME="BaseBlock";class R extends L{getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}constructor({value:e="",...t}={},r){super(t,r),e&&this.fromString(e)}fromBER(e,t,r){const i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?r:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.fromBuffer(this.valueBlock.valueHexView),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}onAsciiEncoding(){return`${this.constructor.NAME} : '${this.valueBlock.value}'`}}R.NAME="BaseStringBlock";class V extends(N(T)){constructor({isHexOnly:e=!0,...t}={}){super(t),this.isHexOnly=e}}var H;V.NAME="PrimitiveValueBlock";class $ extends L{constructor(e={}){super(e,V),this.idBlock.isConstructed=!1}}H=$,U.Primitive=H,$.NAME="PRIMITIVE";const M=16777216;function K(e={}){var t,r,i;return{depth:0,maxDepth:null!==(t=e.maxDepth)&&void 0!==t?t:100,nodesCount:0,maxNodes:null!==(r=e.maxNodes)&&void 0!==r?r:1e4,maxContentLength:null!==(i=e.maxContentLength)&&void 0!==i?i:M}}function F(e,t,r,i){const n=i.depth+1;if(n>i.maxDepth)return function(e){const t=new L({},T);return t.error=e,{offset:-1,result:t}}("Maximum ASN.1 nesting depth exceeded");i.depth=n;try{return z(e,t,r,i)}finally{i.depth-=1}}function z(e,t=0,r=e.length,i=K()){const n=t;let s=new L({},T);const o=new I;if(!m(o,e,t,r))return s.error=o.error,{offset:-1,result:s};if(!e.subarray(t,t+r).length)return s.error="Zero buffer length",{offset:-1,result:s};const a=function(e){if(e.nodesCount+=1,e.nodesCount>e.maxNodes)return"Maximum ASN.1 node count exceeded"}(i);if(a)return s.error=a,{offset:-1,result:s};let c=s.idBlock.fromBER(e,t,r);if(s.idBlock.warnings.length&&s.warnings.concat(s.idBlock.warnings),-1===c)return s.error=s.idBlock.error,{offset:-1,result:s};if(t=c,r-=s.idBlock.blockLength,c=s.lenBlock.fromBER(e,t,r),s.lenBlock.warnings.length&&s.warnings.concat(s.lenBlock.warnings),-1===c)return s.error=s.lenBlock.error,{offset:-1,result:s};t=c,r-=s.lenBlock.blockLength;const l=s.lenBlock.isIndefiniteForm?r:s.lenBlock.length,u=function(e,t){if(e>t.maxContentLength)return"Maximum ASN.1 content length exceeded"}(l,i);if(u)return s.error=u,{offset:-1,result:s};if(!s.idBlock.isConstructed&&s.lenBlock.isIndefiniteForm)return s.error="Indefinite length form used for primitive encoding form",{offset:-1,result:s};let p=L;if(1===s.idBlock.tagClass){if(s.idBlock.tagNumber>=37&&!1===s.idBlock.isHexOnly)return s.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard",{offset:-1,result:s};switch(s.idBlock.tagNumber){case 0:if(s.idBlock.isConstructed&&s.lenBlock.length>0)return s.error="Type [UNIVERSAL 0] is reserved",{offset:-1,result:s};p=U.EndOfContent;break;case 1:p=U.Boolean;break;case 2:p=U.Integer;break;case 3:p=U.BitString;break;case 4:p=U.OctetString;break;case 5:p=U.Null;break;case 6:p=U.ObjectIdentifier;break;case 10:p=U.Enumerated;break;case 12:p=U.Utf8String;break;case 13:p=U.RelativeObjectIdentifier;break;case 14:p=U.TIME;break;case 15:return s.error="[UNIVERSAL 15] is reserved by ASN.1 standard",{offset:-1,result:s};case 16:p=U.Sequence;break;case 17:p=U.Set;break;case 18:p=U.NumericString;break;case 19:p=U.PrintableString;break;case 20:p=U.TeletexString;break;case 21:p=U.VideotexString;break;case 22:p=U.IA5String;break;case 23:p=U.UTCTime;break;case 24:p=U.GeneralizedTime;break;case 25:p=U.GraphicString;break;case 26:p=U.VisibleString;break;case 27:p=U.GeneralString;break;case 28:p=U.UniversalString;break;case 29:p=U.CharacterString;break;case 30:p=U.BmpString;break;case 31:p=U.DATE;break;case 32:p=U.TimeOfDay;break;case 33:p=U.DateTime;break;case 34:p=U.Duration;break;default:{const e=s.idBlock.isConstructed?new U.Constructed:new U.Primitive;e.idBlock=s.idBlock,e.lenBlock=s.lenBlock,e.warnings=s.warnings,s=e}}}else p=s.idBlock.isConstructed?U.Constructed:U.Primitive;return s=function(e,t){if(e instanceof t)return e;const r=new t;return r.idBlock=e.idBlock,r.lenBlock=e.lenBlock,r.warnings=e.warnings,r.valueBeforeDecodeView=e.valueBeforeDecodeView,r}(s,p),c=s.fromBER(e,t,l,i),s.valueBeforeDecodeView=e.subarray(n,n+s.blockLength),{offset:c,result:s}}function W(e,t={}){if(!e.byteLength){const e=new L({},T);return e.error="Input buffer has zero length",{offset:-1,result:e}}return z(r.toUint8Array(e).slice(),0,e.byteLength,K(t))}function q(e,t){return e?1:t}class G extends T{constructor({value:e=[],isIndefiniteForm:t=!1,...r}={}){super(r),this.value=e,this.isIndefiniteForm=t}fromBER(e,t,i,n){const s=r.toUint8Array(e),o=null!=n?n:K();if(!m(this,s,t,i))return-1;if(this.valueBeforeDecodeView=s.subarray(t,t+i),0===this.valueBeforeDecodeView.length)return this.warnings.push("Zero buffer length"),t;let a=t;for(;q(this.isIndefiniteForm,i)>0;){const e=F(s,a,i,o);if(-1===e.offset)return this.error=e.result.error,this.warnings.concat(e.result.warnings),-1;if(a=e.offset,this.blockLength+=e.result.blockLength,i-=e.result.blockLength,this.value.push(e.result),this.isIndefiniteForm&&e.result.constructor.NAME===P)break}return this.isIndefiniteForm&&(this.value[this.value.length-1].constructor.NAME===P?this.value.pop():this.warnings.push("No EndOfContent block encoded")),a}toBER(e,t){const r=t||new b;for(let t=0;t<this.value.length;t++)this.value[t].toBER(e,r);return t?k:r.final()}toJSON(){const e={...super.toJSON(),isIndefiniteForm:this.isIndefiniteForm,value:[]};for(const t of this.value)e.value.push(t.toJSON());return e}}var J,X,Z,Y;G.NAME="ConstructedValueBlock";class Q extends L{constructor(e={}){super(e,G),this.idBlock.isConstructed=!0}fromBER(e,t,r,i){this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;const n=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?r:this.lenBlock.length,i);return-1===n?(this.error=this.valueBlock.error,n):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),n)}onAsciiEncoding(){const e=[];for(const t of this.valueBlock.value)e.push(t.toString("ascii").split("\n").map(e=>` ${e}`).join("\n"));const t=3===this.idBlock.tagClass?`[${this.idBlock.tagNumber}]`:this.constructor.NAME;return e.length?`${t} :\n${e.join("\n")}`:`${t} :`}}J=Q,U.Constructed=J,Q.NAME="CONSTRUCTED";class ee extends T{fromBER(e,t,r){return t}toBER(e){return k}}ee.override="EndOfContentValueBlock";class te extends L{constructor(e={}){super(e,ee),this.idBlock.tagClass=1,this.idBlock.tagNumber=0}}X=te,U.EndOfContent=X,te.NAME=P;class re extends L{constructor(e={}){super(e,T),this.idBlock.tagClass=1,this.idBlock.tagNumber=5}fromBER(e,t,r){return this.lenBlock.length>0&&this.warnings.push("Non-zero length of value block for Null type"),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.blockLength+=r,t+r>e.byteLength?(this.error="End of input reached before message was fully decoded (inconsistent offset and length values)",-1):t+r}toBER(e,t){const r=new ArrayBuffer(2);if(!e){const e=new Uint8Array(r);e[0]=5,e[1]=0}return t&&t.write(r),r}onAsciiEncoding(){return`${this.constructor.NAME}`}}Z=re,U.Null=Z,re.NAME="NULL";class ie extends(N(T)){get value(){for(const e of this.valueHexView)if(e>0)return!0;return!1}set value(e){this.valueHexView[0]=e?255:0}constructor({value:e,...t}={}){super(t),t.valueHex?this.valueHexView=r.toUint8Array(t.valueHex):this.valueHexView=new Uint8Array(1),e&&(this.value=e)}fromBER(e,t,i){const n=r.toUint8Array(e);return m(this,n,t,i)?(this.valueHexView=n.subarray(t,t+i),i>1&&this.warnings.push("Boolean value encoded in more then 1 octet"),this.isHexOnly=!0,d.call(this),this.blockLength=i,t+i):-1}toBER(){return this.valueHexView.slice()}toJSON(){return{...super.toJSON(),value:this.value}}}ie.NAME="BooleanValueBlock";let ne=class extends L{getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}constructor(e={}){super(e,ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=1}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.getValue}`}};Y=ne,U.Boolean=Y,ne.NAME="BOOLEAN";class se extends(N(G)){constructor({isConstructed:e=!1,...t}={}){super(t),this.isConstructed=e}fromBER(e,t,r,i){let n=0;if(this.isConstructed){if(this.isHexOnly=!1,n=G.prototype.fromBER.call(this,e,t,r,i),-1===n)return n;for(let e=0;e<this.value.length;e++){const t=this.value[e].constructor.NAME;if(t===P){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only",-1}if(t!==E)return this.error="OCTET STRING may consists of OCTET STRINGs only",-1}}else this.isHexOnly=!0,n=super.fromBER(e,t,r),this.blockLength=r;return n}toBER(e,t){return this.isConstructed?G.prototype.toBER.call(this,e,t):e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),isConstructed:this.isConstructed}}}var oe;se.NAME="OctetStringValueBlock";let ae=class extends L{constructor({idBlock:e={},lenBlock:t={},...r}={}){var i,n;null!==(i=r.isConstructed)&&void 0!==i||(r.isConstructed=!!(null===(n=r.value)||void 0===n?void 0:n.length)),super({idBlock:{isConstructed:r.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!r.isIndefiniteForm},...r},se),this.idBlock.tagClass=1,this.idBlock.tagNumber=4}fromBER(e,t,r,i){if(this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,0===r)return 0===this.idBlock.error.length&&(this.blockLength+=this.idBlock.blockLength),0===this.lenBlock.error.length&&(this.blockLength+=this.lenBlock.blockLength),t;if(!this.valueBlock.isConstructed){const n=(e instanceof ArrayBuffer?new Uint8Array(e):e).subarray(t,t+r);try{if(n.byteLength){const e=null!=i?i:K(),t=F(n,0,n.byteLength,e);-1!==t.offset&&t.offset===r&&(this.valueBlock.value=[t.result])}}catch(e){}}return super.fromBER(e,t,r,i)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return Q.prototype.onAsciiEncoding.call(this);return`${this.constructor.NAME} : ${l.ToHex(this.valueBlock.valueHexView)}`}getValue(){if(!this.idBlock.isConstructed)return this.valueBlock.valueHexView.slice().buffer;const e=[];for(const t of this.valueBlock.value)t instanceof oe&&e.push(t.valueBlock.valueHexView);return r.concat(e)}};oe=ae,U.OctetString=oe,ae.NAME=E;class ce extends(N(G)){constructor({unusedBits:e=0,isConstructed:t=!1,...r}={}){super(r),this.unusedBits=e,this.isConstructed=t,this.blockLength=this.valueHexView.byteLength}fromBER(e,t,i,n){if(!i)return t;let s=-1;if(this.isConstructed){if(s=G.prototype.fromBER.call(this,e,t,i,n),-1===s)return s;for(const e of this.value){const t=e.constructor.NAME;if(t===P){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only",-1}if(t!==O)return this.error="BIT STRING may consists of BIT STRINGs only",-1;const r=e.valueBlock;if(this.unusedBits>0&&r.unusedBits>0)return this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only',-1;this.unusedBits=r.unusedBits}return s}const o=r.toUint8Array(e);if(!m(this,o,t,i))return-1;const a=o.subarray(t,t+i);if(this.unusedBits=a[0],this.unusedBits>7)return this.error="Unused bits for BitString must be in range 0-7",-1;if(!this.unusedBits){const e=a.subarray(1);try{if(e.byteLength){const t=null!=n?n:K(),r=F(e,0,e.byteLength,t);-1!==r.offset&&r.offset===i-1&&(this.value=[r.result])}}catch(e){}}return this.valueHexView=a.subarray(1),this.blockLength=a.length,t+i}toBER(e,t){if(this.isConstructed)return G.prototype.toBER.call(this,e,t);if(e)return new ArrayBuffer(this.valueHexView.byteLength+1);if(!this.valueHexView.byteLength){const e=new Uint8Array(1);return e[0]=0,e.buffer}const r=new Uint8Array(this.valueHexView.length+1);return r[0]=this.unusedBits,r.set(this.valueHexView,1),r.buffer}toJSON(){return{...super.toJSON(),unusedBits:this.unusedBits,isConstructed:this.isConstructed}}}var le;ce.NAME="BitStringValueBlock";let ue=class extends L{constructor({idBlock:e={},lenBlock:t={},...r}={}){var i,n;null!==(i=r.isConstructed)&&void 0!==i||(r.isConstructed=!!(null===(n=r.value)||void 0===n?void 0:n.length)),super({idBlock:{isConstructed:r.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!r.isIndefiniteForm},...r},ce),this.idBlock.tagClass=1,this.idBlock.tagNumber=3}fromBER(e,t,r,i){return this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,super.fromBER(e,t,r,i)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return Q.prototype.onAsciiEncoding.call(this);{const e=[],t=this.valueBlock.valueHexView;for(const r of t)e.push(r.toString(2).padStart(8,"0"));const r=e.join("");return`${this.constructor.NAME} : ${r.substring(0,r.length-this.valueBlock.unusedBits)}`}}};var pe,he,fe,de,ye,ge,ve;function me(e,t){const r=new Uint8Array([0]),i=new Uint8Array(e),n=new Uint8Array(t);let s=i.slice(0);const o=s.length-1,a=n.slice(0),c=a.length-1;let l=0;let u=0;for(let e=c<o?o:c;e>=0;e--,u++){if(!0==u<a.length)l=s[o-u]+a[c-u]+r[0];else l=s[o-u]+r[0];if(r[0]=l/10,!0==u>=s.length)s=f(new Uint8Array([l%10]),s);else s[o-u]=l%10}return r[0]>0&&(s=f(r,s)),s}function be(e){if(e>=w.length)for(let t=w.length;t<=e;t++){const e=new Uint8Array([0]);let r=w[t-1].slice(0);for(let t=r.length-1;t>=0;t--){const i=new Uint8Array([(r[t]<<1)+e[0]]);e[0]=i[0]/10,r[t]=i[0]%10}e[0]>0&&(r=f(e,r)),w.push(r)}return w[e]}function we(e,t){let r=0;const i=new Uint8Array(e),n=new Uint8Array(t),s=i.slice(0),o=s.length-1,a=n.slice(0),c=a.length-1;let l,u=0;for(let e=c;e>=0;e--,u++)if(l=s[o-u]-a[c-u]-r,!0==l<0)r=1,s[o-u]=l+10;else r=0,s[o-u]=l;if(r>0)for(let e=o-c+1;e>=0;e--,u++){if(l=s[o-u]-r,!(l<0)){r=0,s[o-u]=l;break}r=1,s[o-u]=l+10}return s.slice()}le=ue,U.BitString=le,ue.NAME=O;class Ae extends(N(T)){setValueHex(){this.valueHexView.length>=4?(this.warnings.push("Too big Integer for decoding, hex only"),this.isHexOnly=!0,this._valueDec=0):(this.isHexOnly=!1,this.valueHexView.length>0&&(this._valueDec=d.call(this)))}constructor({value:e,...t}={}){super(t),this._valueDec=0,t.valueHex&&this.setValueHex(),void 0!==e&&(this.valueDec=e)}set valueDec(e){this._valueDec=e,this.isHexOnly=!1,this.valueHexView=new Uint8Array(function(e){const t=e<0?-1*e:e;let r=128;for(let i=1;i<8;i++){if(t<=r){if(e<0){const e=h(r-t,8,i);return new Uint8Array(e)[0]|=128,e}let n=h(t,8,i),s=new Uint8Array(n);if(128&s[0]){const e=n.slice(0),t=new Uint8Array(e);n=new ArrayBuffer(n.byteLength+1),s=new Uint8Array(n);for(let r=0;r<e.byteLength;r++)s[r+1]=t[r];s[0]=0}return n}r*=Math.pow(2,8)}return new ArrayBuffer(0)}(e))}get valueDec(){return this._valueDec}fromDER(e,t,r,i=0){const n=this.fromBER(e,t,r);if(-1===n)return n;const s=this.valueHexView;return 0===s[0]&&128&s[1]?this.valueHexView=s.subarray(1):0!==i&&s.length<i&&(i-s.length>1&&(i=s.length+1),this.valueHexView=s.subarray(i-s.length)),n}toDER(e=!1){const t=this.valueHexView;switch(!0){case!!(128&t[0]):{const e=new Uint8Array(this.valueHexView.length+1);e[0]=0,e.set(t,1),this.valueHexView=e}break;case 0===t[0]&&!(128&t[1]):this.valueHexView=this.valueHexView.subarray(1)}return this.toBER(e)}fromBER(e,t,r){const i=super.fromBER(e,t,r);return-1===i||this.setValueHex(),i}toBER(e){return e?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}toString(){const e=8*this.valueHexView.length-1;let t,r=new Uint8Array(8*this.valueHexView.length/3),i=0;const n=this.valueHexView;let s="",o=!1;for(let o=n.byteLength-1;o>=0;o--){t=n[o];for(let n=0;n<8;n++){if(!(1&~t))if(i===e)r=we(be(i),r),s="-";else r=me(r,be(i));i++,t>>=1}}for(let e=0;e<r.length;e++)r[e]&&(o=!0),o&&(s+=A.charAt(r[e]));return!1===o&&(s+=A.charAt(0)),s}}pe=Ae,Ae.NAME="IntegerValueBlock",Object.defineProperty(pe.prototype,"valueHex",{set:function(e){this.valueHexView=new Uint8Array(e),this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}});class Se extends L{constructor(e={}){super(e,Ae),this.idBlock.tagClass=1,this.idBlock.tagNumber=2}toBigInt(){return g(),BigInt(this.valueBlock.toString())}static fromBigInt(e){g();const t=BigInt(e),i=new b,n=t.toString(16).replace(/^-/,""),s=new Uint8Array(l.FromHex(n));if(t<0){const e=new Uint8Array(s.length+(128&s[0]?1:0));e[0]|=128;const n=BigInt(`0x${l.ToHex(e)}`)+t,o=r.toUint8Array(l.FromHex(n.toString(16)));o[0]|=128,i.write(o)}else 128&s[0]&&i.write(new Uint8Array([0])),i.write(s);return new he({valueHex:i.final()})}convertToDER(){const e=new he({valueHex:this.valueBlock.valueHexView});return e.valueBlock.toDER(),e}convertFromDER(){return new he({valueHex:0===this.valueBlock.valueHexView[0]?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()}`}}he=Se,U.Integer=he,Se.NAME="INTEGER";class xe extends Se{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=10}}fe=xe,U.Enumerated=fe,xe.NAME="ENUMERATED";class Be extends(N(T)){constructor({valueDec:e=-1,isFirstSid:t=!1,...r}={}){super(r),this.valueDec=e,this.isFirstSid=t}fromBER(e,t,i){if(!i)return t;const n=r.toUint8Array(e);if(!m(this,n,t,i))return-1;const s=n.subarray(t,t+i);this.valueHexView=new Uint8Array(i);for(let e=0;e<i&&(this.valueHexView[e]=127&s[e],this.blockLength++,128&s[e]);e++);const o=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength;e++)o[e]=this.valueHexView[e];return this.valueHexView=o,128&s[this.blockLength-1]?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=p(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}set valueBigInt(e){g();let t=BigInt(e).toString(2);for(;t.length%7;)t="0"+t;const r=new Uint8Array(t.length/7);for(let e=0;e<r.length;e++)r[e]=parseInt(t.slice(7*e,7*e+7),2)+(e+1<r.length?128:0);this.fromBER(r.buffer,0,r.length)}toBER(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);const t=this.valueHexView,r=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength-1;e++)r[e]=128|t[e];return r[this.blockLength-1]=t[this.blockLength-1],r.buffer}const t=h(this.valueDec,7);if(0===t.byteLength)return this.error="Error during encoding SID value",k;const r=new Uint8Array(t.byteLength);if(!e){const e=new Uint8Array(t),i=t.byteLength-1;for(let t=0;t<i;t++)r[t]=128|e[t];r[i]=e[i]}return r}toString(){let e="";if(this.isHexOnly)e=l.ToHex(this.valueHexView);else if(this.isFirstSid){let t=this.valueDec;this.valueDec<=39?e="0.":this.valueDec<=79?(e="1.",t-=40):(e="2.",t-=80),e+=t.toString()}else e=this.valueDec.toString();return e}toJSON(){return{...super.toJSON(),valueDec:this.valueDec,isFirstSid:this.isFirstSid}}}Be.NAME="sidBlock";class ke extends T{constructor({value:e="",...t}={}){super(t),this.value=[],e&&this.fromString(e)}fromBER(e,t,r){let i=t;for(;r>0;){const t=new Be;if(i=t.fromBER(e,i,r),-1===i)return this.blockLength=0,this.error=t.error,i;0===this.value.length&&(t.isFirstSid=!0),this.blockLength+=t.blockLength,r-=t.blockLength,this.value.push(t)}return i}toBER(e){const t=[];for(let r=0;r<this.value.length;r++){const i=this.value[r].toBER(e);if(0===i.byteLength)return this.error=this.value[r].error,k;t.push(i)}return v(t)}fromString(e){this.value=[];let t=0,r=0,i="",n=!1;do{if(r=e.indexOf(".",t),i=-1===r?e.substring(t):e.substring(t,r),t=r+1,n){const e=this.value[0];let t=0;switch(e.valueDec){case 0:break;case 1:t=40;break;case 2:t=80;break;default:return void(this.value=[])}const r=parseInt(i,10);if(isNaN(r))return;e.valueDec=r+t,n=!1}else{const e=new Be;if(i>Number.MAX_SAFE_INTEGER){g();const t=BigInt(i);e.valueBigInt=t}else if(e.valueDec=parseInt(i,10),isNaN(e.valueDec))return;this.value.length||(e.isFirstSid=!0,n=!0),this.value.push(e)}}while(-1!==r)}toString(){let e="",t=!1;for(let r=0;r<this.value.length;r++){t=this.value[r].isHexOnly;let i=this.value[r].toString();0!==r&&(e=`${e}.`),t?(i=`{${i}}`,this.value[r].isFirstSid?e=`2.{${i} - 80}`:e+=i):e+=i}return e}toJSON(){const e={...super.toJSON(),value:this.toString(),sidArray:[]};for(let t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}ke.NAME="ObjectIdentifierValueBlock";class Ce extends L{getValue(){return this.valueBlock.toString()}setValue(e){this.valueBlock.fromString(e)}constructor(e={}){super(e,ke),this.idBlock.tagClass=1,this.idBlock.tagNumber=6}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()||"empty"}`}toJSON(){return{...super.toJSON(),value:this.getValue()}}}de=Ce,U.ObjectIdentifier=de,Ce.NAME="OBJECT IDENTIFIER";class Pe extends(N(I)){constructor({valueDec:e=0,...t}={}){super(t),this.valueDec=e}fromBER(e,t,i){if(0===i)return t;const n=r.toUint8Array(e);if(!m(this,n,t,i))return-1;const s=n.subarray(t,t+i);this.valueHexView=new Uint8Array(i);for(let e=0;e<i&&(this.valueHexView[e]=127&s[e],this.blockLength++,128&s[e]);e++);const o=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength;e++)o[e]=this.valueHexView[e];return this.valueHexView=o,128&s[this.blockLength-1]?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=p(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}toBER(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);const t=this.valueHexView,r=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength-1;e++)r[e]=128|t[e];return r[this.blockLength-1]=t[this.blockLength-1],r.buffer}const t=h(this.valueDec,7);if(0===t.byteLength)return this.error="Error during encoding SID value",k;const r=new Uint8Array(t.byteLength);if(!e){const e=new Uint8Array(t),i=t.byteLength-1;for(let t=0;t<i;t++)r[t]=128|e[t];r[i]=e[i]}return r.buffer}toString(){let e="";return e=this.isHexOnly?l.ToHex(this.valueHexView):this.valueDec.toString(),e}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}}Pe.NAME="relativeSidBlock";class Ee extends T{constructor({value:e="",...t}={}){super(t),this.value=[],e&&this.fromString(e)}fromBER(e,t,r){let i=t;for(;r>0;){const t=new Pe;if(i=t.fromBER(e,i,r),-1===i)return this.blockLength=0,this.error=t.error,i;this.blockLength+=t.blockLength,r-=t.blockLength,this.value.push(t)}return i}toBER(e,t){const r=[];for(let t=0;t<this.value.length;t++){const i=this.value[t].toBER(e);if(0===i.byteLength)return this.error=this.value[t].error,k;r.push(i)}return v(r)}fromString(e){this.value=[];let t=0,r=0,i="";do{r=e.indexOf(".",t),i=-1===r?e.substring(t):e.substring(t,r),t=r+1;const n=new Pe;if(n.valueDec=parseInt(i,10),isNaN(n.valueDec))return!0;this.value.push(n)}while(-1!==r);return!0}toString(){let e="",t=!1;for(let r=0;r<this.value.length;r++){t=this.value[r].isHexOnly;let i=this.value[r].toString();0!==r&&(e=`${e}.`),t?(i=`{${i}}`,e+=i):e+=i}return e}toJSON(){const e={...super.toJSON(),value:this.toString(),sidArray:[]};for(let t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}Ee.NAME="RelativeObjectIdentifierValueBlock";class Oe extends L{getValue(){return this.valueBlock.toString()}setValue(e){this.valueBlock.fromString(e)}constructor(e={}){super(e,Ee),this.idBlock.tagClass=1,this.idBlock.tagNumber=13}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()||"empty"}`}toJSON(){return{...super.toJSON(),value:this.getValue()}}}ye=Oe,U.RelativeObjectIdentifier=ye,Oe.NAME="RelativeObjectIdentifier";class Ne extends Q{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=16}}ge=Ne,U.Sequence=ge,Ne.NAME="SEQUENCE";let Ie=class extends Q{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=17}};ve=Ie,U.Set=ve,Ie.NAME="SET";class Te extends(N(T)){constructor({...e}={}){super(e),this.isHexOnly=!0,this.value=B}toJSON(){return{...super.toJSON(),value:this.value}}}Te.NAME="StringValueBlock";class je extends Te{}je.NAME="SimpleStringValueBlock";class _e extends R{constructor({...e}={}){super(e,je)}fromBuffer(e){this.valueBlock.value=String.fromCharCode.apply(null,r.toUint8Array(e))}fromString(e){const t=e.length,r=this.valueBlock.valueHexView=new Uint8Array(t);for(let i=0;i<t;i++)r[i]=e.charCodeAt(i);this.valueBlock.value=e}}_e.NAME="SIMPLE STRING";class Ue extends _e{fromBuffer(e){this.valueBlock.valueHexView=r.toUint8Array(e);try{this.valueBlock.value=l.ToUtf8String(e)}catch(t){this.warnings.push(`Error during "decodeURIComponent": ${t}, using raw string`),this.valueBlock.value=l.ToBinary(e)}}fromString(e){this.valueBlock.valueHexView=new Uint8Array(l.FromUtf8String(e)),this.valueBlock.value=e}}var Le,De,Re,Ve,He,$e,Me,Ke,Fe,ze,We,qe,Ge,Je,Xe,Ze,Ye,Qe,et;Ue.NAME="Utf8StringValueBlock";class tt extends Ue{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=12}}Le=tt,U.Utf8String=Le,tt.NAME="UTF8String";class rt extends _e{fromBuffer(e){this.valueBlock.value=l.ToUtf16String(e),this.valueBlock.valueHexView=r.toUint8Array(e)}fromString(e){this.valueBlock.value=e,this.valueBlock.valueHexView=new Uint8Array(l.FromUtf16String(e))}}rt.NAME="BmpStringValueBlock";class it extends rt{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=30}}De=it,U.BmpString=De,it.NAME="BMPString";class nt extends _e{fromBuffer(e){const t=ArrayBuffer.isView(e)?e.slice().buffer:e.slice(0),r=new Uint8Array(t);for(let e=0;e<r.length;e+=4)r[e]=r[e+3],r[e+1]=r[e+2],r[e+2]=0,r[e+3]=0;this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(t))}fromString(e){const t=e.length,r=this.valueBlock.valueHexView=new Uint8Array(4*t);for(let i=0;i<t;i++){const t=h(e.charCodeAt(i),8),n=new Uint8Array(t);if(n.length>4)continue;const s=4-n.length;for(let e=n.length-1;e>=0;e--)r[4*i+e+s]=n[e]}this.valueBlock.value=e}}nt.NAME="UniversalStringValueBlock";class st extends nt{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=28}}Re=st,U.UniversalString=Re,st.NAME="UniversalString";class ot extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=18}}Ve=ot,U.NumericString=Ve,ot.NAME="NumericString";class at extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=19}}He=at,U.PrintableString=He,at.NAME="PrintableString";class ct extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=20}}$e=ct,U.TeletexString=$e,ct.NAME="TeletexString";class lt extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=21}}Me=lt,U.VideotexString=Me,lt.NAME="VideotexString";class ut extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=22}}Ke=ut,U.IA5String=Ke,ut.NAME="IA5String";class pt extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=25}}Fe=pt,U.GraphicString=Fe,pt.NAME="GraphicString";class ht extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=26}}ze=ht,U.VisibleString=ze,ht.NAME="VisibleString";class ft extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=27}}We=ft,U.GeneralString=We,ft.NAME="GeneralString";class dt extends _e{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=29}}qe=dt,U.CharacterString=qe,dt.NAME="CharacterString";class yt extends ht{constructor({value:e,valueDate:t,...r}={}){if(super(r),this.year=0,this.month=0,this.day=0,this.hour=0,this.minute=0,this.second=0,e){this.fromString(e),this.valueBlock.valueHexView=new Uint8Array(e.length);for(let t=0;t<e.length;t++)this.valueBlock.valueHexView[t]=e.charCodeAt(t)}t&&(this.fromDate(t),this.valueBlock.valueHexView=new Uint8Array(this.toBuffer())),this.idBlock.tagClass=1,this.idBlock.tagNumber=23}fromBuffer(e){this.fromString(String.fromCharCode.apply(null,r.toUint8Array(e)))}toBuffer(){const e=this.toString(),t=new ArrayBuffer(e.length),r=new Uint8Array(t);for(let t=0;t<e.length;t++)r[t]=e.charCodeAt(t);return t}fromDate(e){this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1,this.day=e.getUTCDate(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second))}fromString(e){const t=/(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z/gi.exec(e);if(null===t)return void(this.error="Wrong input string for conversion");const r=parseInt(t[1],10);this.year=r>=50?1900+r:2e3+r,this.month=parseInt(t[2],10),this.day=parseInt(t[3],10),this.hour=parseInt(t[4],10),this.minute=parseInt(t[5],10),this.second=parseInt(t[6],10)}toString(e="iso"){if("iso"===e){const e=new Array(7);return e[0]=y(this.year<2e3?this.year-1900:this.year-2e3,2),e[1]=y(this.month,2),e[2]=y(this.day,2),e[3]=y(this.hour,2),e[4]=y(this.minute,2),e[5]=y(this.second,2),e[6]="Z",e.join("")}return super.toString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.toDate().toISOString()}`}toJSON(){return{...super.toJSON(),year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second}}}Ge=yt,U.UTCTime=Ge,yt.NAME="UTCTime";class gt extends yt{constructor(e={}){var t;super(e),null!==(t=this.millisecond)&&void 0!==t||(this.millisecond=0),this.idBlock.tagClass=1,this.idBlock.tagNumber=24}fromDate(e){super.fromDate(e),this.millisecond=e.getUTCMilliseconds()}toDate(){const e=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond);return new Date(e)}fromString(e){let t,r=!1,i="",n="",s=0,o=0,a=0;if("Z"===e[e.length-1])i=e.substring(0,e.length-1),r=!0;else{const t=new Number(e[e.length-1]);if(isNaN(t.valueOf()))throw new Error("Wrong input string for conversion");i=e}if(r){if(-1!==i.indexOf("+"))throw new Error("Wrong input string for conversion");if(-1!==i.indexOf("-"))throw new Error("Wrong input string for conversion")}else{let e=1,t=i.indexOf("+"),r="";if(-1===t&&(t=i.indexOf("-"),e=-1),-1!==t){if(r=i.substring(t+1),i=i.substring(0,t),2!==r.length&&4!==r.length)throw new Error("Wrong input string for conversion");let n=parseInt(r.substring(0,2),10);if(isNaN(n.valueOf()))throw new Error("Wrong input string for conversion");if(o=e*n,4===r.length){if(n=parseInt(r.substring(2,4),10),isNaN(n.valueOf()))throw new Error("Wrong input string for conversion");a=e*n}}}let c=i.indexOf(".");if(-1===c&&(c=i.indexOf(",")),-1!==c){const e=new Number(`0${i.substring(c)}`);if(isNaN(e.valueOf()))throw new Error("Wrong input string for conversion");s=e.valueOf(),n=i.substring(0,c)}else n=i;switch(!0){case 8===n.length:if(t=/(\d{4})(\d{2})(\d{2})/gi,-1!==c)throw new Error("Wrong input string for conversion");break;case 10===n.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})/gi,-1!==c){let e=60*s;this.minute=Math.floor(e),e=60*(e-this.minute),this.second=Math.floor(e),e=1e3*(e-this.second),this.millisecond=Math.floor(e)}break;case 12===n.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==c){let e=60*s;this.second=Math.floor(e),e=1e3*(e-this.second),this.millisecond=Math.floor(e)}break;case 14===n.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==c){const e=1e3*s;this.millisecond=Math.floor(e)}break;default:throw new Error("Wrong input string for conversion")}const l=t.exec(n);if(null===l)throw new Error("Wrong input string for conversion");for(let e=1;e<l.length;e++)switch(e){case 1:this.year=parseInt(l[e],10);break;case 2:this.month=parseInt(l[e],10);break;case 3:this.day=parseInt(l[e],10);break;case 4:this.hour=parseInt(l[e],10)+o;break;case 5:this.minute=parseInt(l[e],10)+a;break;case 6:this.second=parseInt(l[e],10);break;default:throw new Error("Wrong input string for conversion")}if(!1===r){const e=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);this.year=e.getUTCFullYear(),this.month=e.getUTCMonth(),this.day=e.getUTCDay(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds(),this.millisecond=e.getUTCMilliseconds()}}toString(e="iso"){if("iso"===e){const e=[];return e.push(y(this.year,4)),e.push(y(this.month,2)),e.push(y(this.day,2)),e.push(y(this.hour,2)),e.push(y(this.minute,2)),e.push(y(this.second,2)),0!==this.millisecond&&(e.push("."),e.push(y(this.millisecond,3))),e.push("Z"),e.join("")}return super.toString(e)}toJSON(){return{...super.toJSON(),millisecond:this.millisecond}}}Je=gt,U.GeneralizedTime=Je,gt.NAME="GeneralizedTime";class vt extends tt{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=31}}Xe=vt,U.DATE=Xe,vt.NAME="DATE";class mt extends tt{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=32}}Ze=mt,U.TimeOfDay=Ze,mt.NAME="TimeOfDay";class bt extends tt{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=33}}Ye=bt,U.DateTime=Ye,bt.NAME="DateTime";class wt extends tt{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=34}}Qe=wt,U.Duration=Qe,wt.NAME="Duration";class At extends tt{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=14}}et=At,U.TIME=et,At.NAME="TIME";class St{constructor({name:e="",optional:t=!1}={}){this.name=e,this.optional=t}}class xt extends St{constructor({value:e=[],...t}={}){super(t),this.value=e}}class Bt extends St{constructor({value:e=new St,local:t=!1,...r}={}){super(r),this.value=e,this.local=t}}function kt(e,t,r){if(r instanceof xt){for(const i of r.value){if(kt(e,t,i).verified)return{verified:!0,result:e}}{const e={verified:!1,result:{error:"Wrong values for Choice type"}};return r.hasOwnProperty(S)&&(e.name=r.name),e}}if(r instanceof St)return r.hasOwnProperty(S)&&(e[r.name]=t),{verified:!0,result:e};if(e instanceof Object==!1)return{verified:!1,result:{error:"Wrong root object"}};if(t instanceof Object==!1)return{verified:!1,result:{error:"Wrong ASN.1 data"}};if(r instanceof Object==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("idBlock"in r==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("fromBER"in r.idBlock==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("toBER"in r.idBlock==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};const i=r.idBlock.toBER(!1);if(0===i.byteLength)return{verified:!1,result:{error:"Error encoding idBlock for ASN.1 schema"}};if(-1===r.idBlock.fromBER(i,0,i.byteLength))return{verified:!1,result:{error:"Error decoding idBlock for ASN.1 schema"}};if(!1===r.idBlock.hasOwnProperty("tagClass"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(r.idBlock.tagClass!==t.idBlock.tagClass)return{verified:!1,result:e};if(!1===r.idBlock.hasOwnProperty("tagNumber"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(r.idBlock.tagNumber!==t.idBlock.tagNumber)return{verified:!1,result:e};if(!1===r.idBlock.hasOwnProperty("isConstructed"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(r.idBlock.isConstructed!==t.idBlock.isConstructed)return{verified:!1,result:e};if(!("isHexOnly"in r.idBlock))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(r.idBlock.isHexOnly!==t.idBlock.isHexOnly)return{verified:!1,result:e};if(r.idBlock.isHexOnly){if(x in r.idBlock==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};const i=r.idBlock.valueHexView,n=t.idBlock.valueHexView;if(i.length!==n.length)return{verified:!1,result:e};for(let t=0;t<i.length;t++)if(i[t]!==n[1])return{verified:!1,result:e}}if(r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,B),r.name&&(e[r.name]=t)),r instanceof U.Constructed){let i=0,n={verified:!1,result:{error:"Unknown error"}},s=r.valueBlock.value.length;if(s>0&&r.valueBlock.value[0]instanceof Bt&&(s=t.valueBlock.value.length),0===s)return{verified:!0,result:e};if(0===t.valueBlock.value.length&&0!==r.valueBlock.value.length){let t=!0;for(let e=0;e<r.valueBlock.value.length;e++)t=t&&(r.valueBlock.value[e].optional||!1);return t?{verified:!0,result:e}:(r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,B),r.name&&delete e[r.name]),e.error="Inconsistent object length",{verified:!1,result:e})}for(let o=0;o<s;o++)if(o-i>=t.valueBlock.value.length){if(!1===r.valueBlock.value[o].optional){const t={verified:!1,result:e};return e.error="Inconsistent length between ASN.1 data and schema",r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,B),r.name&&(delete e[r.name],t.name=r.name)),t}}else if(r.valueBlock.value[0]instanceof Bt){if(n=kt(e,t.valueBlock.value[o],r.valueBlock.value[0].value),!1===n.verified){if(!r.valueBlock.value[0].optional)return r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,B),r.name&&delete e[r.name]),n;i++}if(S in r.valueBlock.value[0]&&r.valueBlock.value[0].name.length>0){let i={};i="local"in r.valueBlock.value[0]&&r.valueBlock.value[0].local?t:e,void 0===i[r.valueBlock.value[0].name]&&(i[r.valueBlock.value[0].name]=[]),i[r.valueBlock.value[0].name].push(t.valueBlock.value[o])}}else if(n=kt(e,t.valueBlock.value[o-i],r.valueBlock.value[o]),!1===n.verified){if(!r.valueBlock.value[o].optional)return r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,B),r.name&&delete e[r.name]),n;i++}if(!1===n.verified){const t={verified:!1,result:e};return r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,B),r.name&&(delete e[r.name],t.name=r.name)),t}return{verified:!0,result:e}}if(r.primitiveSchema&&x in t.valueBlock){const i=z(t.valueBlock.valueHexView);if(-1===i.offset){const t={verified:!1,result:i.result};return r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,B),r.name&&(delete e[r.name],t.name=r.name)),t}return kt(e,i.result,r.primitiveSchema)}return{verified:!0,result:e}}var Ct=Object.freeze({__proto__:null,Any:St,BaseBlock:L,BaseStringBlock:R,BitString:ue,BmpString:it,Boolean:ne,CharacterString:dt,Choice:xt,Constructed:Q,DATE:vt,DEFAULT_MAX_CONTENT_LENGTH:M,DEFAULT_MAX_DEPTH:100,DEFAULT_MAX_NODES:1e4,DateTime:bt,Duration:wt,EndOfContent:te,Enumerated:xe,GeneralString:ft,GeneralizedTime:gt,GraphicString:pt,HexBlock:N,IA5String:ut,Integer:Se,Null:re,NumericString:ot,ObjectIdentifier:Ce,OctetString:ae,Primitive:$,PrintableString:at,RawData:class{get data(){return this.dataView.slice().buffer}set data(e){this.dataView=r.toUint8Array(e)}constructor({data:e=C}={}){this.dataView=r.toUint8Array(e)}fromBER(e,t,i){const n=t+i;return this.dataView=r.toUint8Array(e).subarray(t,n),n}toBER(e){return this.dataView.slice().buffer}},RelativeObjectIdentifier:Oe,Repeated:Bt,Sequence:Ne,Set:Ie,TIME:At,TeletexString:ct,TimeOfDay:mt,UTCTime:yt,UniversalString:st,Utf8String:tt,ValueBlock:T,VideotexString:lt,ViewWriter:b,VisibleString:ht,compareSchema:kt,fromBER:W,verifySchema:function(e,t){if(t instanceof Object==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema type"}};const i=z(r.toUint8Array(e));return-1===i.offset?{verified:!1,result:i.result}:kt(i.result,i.result,t)}});function Pt(e){return Object.prototype.toString.call(e)}function Et(e){return"[object ArrayBuffer]"===Pt(e)}function Ot(e){return Et(e)||function(e){return"undefined"!=typeof SharedArrayBuffer&&"[object SharedArrayBuffer]"===Pt(e)}(e)}function Nt(e){return function(e){if(ArrayBuffer.isView(e))return!0;if(!e||"object"!=typeof e)return!1;const t=e;return"number"==typeof t.byteOffset&&"number"==typeof t.byteLength&&Ot(t.buffer)}(e)}function It(e){return Ot(e)||Nt(e)}function Tt(e){if(!It(e))throw new TypeError("Expected ArrayBuffer, SharedArrayBuffer, or ArrayBufferView")}function jt(e){return Tt(e),Ot(e)?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function _t(e){if(Tt(e),Et(e))return e;const t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(jt(e)),t}function Ut(e){const t=jt(e);let r="";for(const e of t)r+=String.fromCharCode(e);return r}function Lt(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=255&e.charCodeAt(r);return t}const Dt=/^[0-9a-f]$/i,Rt=[" ","\t","\n","\r",":","-","."];function Vt(e){return"none"===e.separators?[]:e.separators&&"common"!==e.separators?e.separators:Rt}function Ht(e){if(!e)throw new TypeError("Hex separators must be non-empty strings")}function $t(e,t,r){for(const i of r)if(e.startsWith(i,t))return i}function Mt(e){const t=/[A-F]/.test(e),r=/[a-f]/.test(e);return t&&!r?"upper":"lower"}function Kt(e){return e.replace(/[^0-9a-f]/gi,"")}function Ft(e){var t,r;const i=e.trim(),n=/^0x/i.test(i)?"0x":"",s=n?i.slice(2):i,o=function(e){const t=/\r\n|\n/.exec(e);if(t)return"\r\n"===t[0]?"\r\n":"\n"}(s),a=s.split(/\r\n|\n/).filter(e=>e.length>0),c=function(e){var t,r,i,n,s;const o=null!==(t=e.match(/[0-9A-Fa-f]+|[^0-9A-Fa-f]+/g))&&void 0!==t?t:[];if(o.length<3)return;const a=o.filter((e,t)=>t%2==0),c=o.filter((e,t)=>t%2==1),l=c[0];if(!l||c.some(e=>e!==l))return;if(a.some(e=>0===e.length||e.length%2!=0))return;const u=null!==(r=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==r?r:0;return u&&!(a.slice(0,-1).some(e=>e.length!==u)||(null!==(n=null===(s=a[a.length-1])||void 0===s?void 0:s.length)&&void 0!==n?n:0)>u)?{size:u/2,separator:l}:void 0}(null!==(t=null===(r=a[0])||void 0===r?void 0:r.trim())&&void 0!==t?t:""),l={case:Mt(i),prefix:n};if(c&&(l.group=c),o&&a.length>1){var u;const e=Kt(null!==(u=a[0])&&void 0!==u?u:"").length/2;e>0&&a.slice(0,-1).every(t=>Kt(t).length/2===e)&&(l.line={bytesPerLine:e,separator:o})}return l}function zt(e,t){if(!t)return e.join("");if(!Number.isInteger(t.size)||t.size<1)throw new RangeError("Hex group size must be a positive integer");const r=[];for(let i=0;i<e.length;i+=t.size)r.push(e.slice(i,i+t.size).join(""));return r.join(t.separator)}function Wt(e,t={}){return function(e,t){var r;const i=null===(r=t.allowPrefix)||void 0===r||r,n=[...Vt(t)].sort((e,t)=>t.length-e.length);for(const e of n)Ht(e);let s=e.trim();if(/^0x/i.test(s)){if(!i)throw new TypeError("Hexadecimal text must not include a 0x prefix");s=s.slice(2)}let o="",a=!1;for(let e=0;e<s.length;){var c;const r=null!==(c=s[e])&&void 0!==c?c:"";if(Dt.test(r)){o+=r,a=!1,e+=1;continue}const i=$t(s,e,n);if(!i)throw new TypeError("Input is not valid hexadecimal text");if(t.strict&&(a||0===o.length))throw new TypeError("Hexadecimal text contains misplaced separators");a=!0,e+=i.length}if(t.strict&&a&&o.length>0)throw new TypeError("Hexadecimal text must not end with a separator");if(o.length%2!=0){if(!t.allowOddLength)throw new TypeError("Hexadecimal text must contain an even number of characters");o=`0${o}`}return o.toLowerCase()}(e,t)}function qt(e,t={}){var r,i;const n=jt(e),s=null!==(r=t.case)&&void 0!==r?r:"lower",o=Array.from(n,e=>{const t=e.toString(16).padStart(2,"0");return"upper"===s?t.toUpperCase():t});let a="";if(t.line){var c;const e=t.line.bytesPerLine;if(!Number.isInteger(e)||e<1)throw new RangeError("Hex bytesPerLine must be a positive integer");const r=null!==(c=t.line.separator)&&void 0!==c?c:"\n",i=[];for(let r=0;r<o.length;r+=e)i.push(zt(o.slice(r,r+e),t.group));a=i.join(r)}else a=zt(o,t.group);return`${null!==(i=t.prefix)&&void 0!==i?i:""}${a}`}function Gt(e,t={}){const r=Wt(e,t),i=new Uint8Array(r.length/2);for(let e=0;e<r.length;e+=2)i[e/2]=Number.parseInt(r.slice(e,e+2),16);return i}function Jt(e,t={}){const r=new ArrayBuffer(2*e.length),i=new DataView(r);for(let r=0;r<e.length;r++){var n;i.setUint16(2*r,e.charCodeAt(r),null!==(n=t.littleEndian)&&void 0!==n&&n)}return new Uint8Array(r)}function Xt(e,t={}){const r=_t(e),i=new DataView(r);let n="";for(let e=0;e<r.byteLength;e+=2){var s;n+=String.fromCharCode(i.getUint16(e,null!==(s=t.littleEndian)&&void 0!==s&&s))}return n}const Zt=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;function Yt(){return globalThis.Buffer}function Qt(e){return e.replace(/[\n\r\t ]/g,"")}function er(e){if("string"!=typeof e)return!1;const t=Qt(e);return""===t||Zt.test(t)}function tr(e,t){const r=jt(e),i=Yt();return i?i.from(r).toString("base64"):btoa(Ut(r))}function rr(e,t){const r=Qt(e);if(!er(r))throw new TypeError("Input is not valid Base64 text");const i=Yt();return i?new Uint8Array(i.from(r,"base64")):Lt(atob(r))}const ir={encode:tr,decode:rr,is:er,normalize:Qt,pad:function(e){const t=e.length%4;return t?e+"=".repeat(4-t):e}},nr=/^[A-Za-z0-9_-]*$/;function sr(e){return e.replace(/[\n\r\t ]/g,"")}function or(e){return"string"==typeof e&&nr.test(sr(e))}const ar=/^[A-Z0-9][A-Z0-9 ._-]*[A-Z0-9]$/i,cr=/-----BEGIN ([^-]+)-----([\s\S]*?)-----END \1-----/g;function lr(e){if(!ar.test(e))throw new TypeError(`Invalid PEM label '${e}'`)}function ur(e){const t=e.trim().replace(/\r\n/g,"\n").split("\n").map(e=>e.trim()).filter(Boolean),r={};let i=0;for(;i<t.length;i++){const e=t[i],n=e.indexOf(":");if(n<=0)break;r[e.slice(0,n).trim()]=e.slice(n+1).trim()}return{headers:Object.keys(r).length?r:void 0,base64Lines:t.slice(i),base64Text:t.slice(i).join("")}}function pr(e){return/\r\n/.test(e)?"\r\n":"\n"}function hr(e,t={}){const r=[],i=t.label;let n;for(cr.lastIndex=0;n=cr.exec(e);){var s,o;const e=n[1].trim();if(i&&e!==i)continue;lr(e);const t=ur(n[2]);r.push({label:e,data:ir.decode(t.base64Text),headers:t.headers,lineLength:null!==(s=null===(o=t.base64Lines[0])||void 0===o?void 0:o.length)&&void 0!==s?s:64,newline:pr(n[0])})}if(t.strict&&0===r.length)throw new TypeError(i?`No PEM block with label '${i}' was found`:"No PEM blocks were found");return r}function fr(e,t,r={}){var i,n;lr(e);const s=null!==(i=r.lineLength)&&void 0!==i?i:64;if(!Number.isInteger(s)||s<1)throw new RangeError("PEM lineLength must be a positive integer");const o=null!==(n=r.newline)&&void 0!==n?n:"\n",a=[`-----BEGIN ${e}-----`];if(r.headers){for(const[e,t]of Object.entries(r.headers))a.push(`${e}: ${t}`);a.push("")}return a.push(...function(e,t){const r=[];for(let i=0;i<e.length;i+=t)r.push(e.slice(i,i+t));return r}(ir.encode(t),s)),a.push(`-----END ${e}-----`),`${a.join(o)}${o}`}function dr(e,t){const[r]=function(e,t={}){return hr(e,t).map(({lineLength:e,newline:t,...r})=>r)}(e,{label:t,strict:!0});return r.data}const yr={name:"pem",encode:(e,t)=>{if(null==t||!t.label)throw new TypeError("PEM label is required");return fr(t.label,e,t)},decode:(e,t)=>dr(e,null==t?void 0:t.label),format:function(e,t){return fr(t.label,e,t)},is:e=>"string"==typeof e&&/-----BEGIN [^-]+-----/.test(e),parse:function(e,t={}){const[r]=hr(e,{...t,strict:!0}),i={label:r.label,headers:r.headers,lineLength:r.lineLength,newline:r.newline};return{bytes:r.data,format:i,normalized:fr(r.label,r.data,i)}}};function gr(e){return e.trim().toLowerCase()}function vr(e){return e instanceof Error?e:new Error(String(e))}function mr(e,t,r){for(const t of[r.name,...null!==(i=r.aliases)&&void 0!==i?i:[]]){var i;e.delete(gr(t))}t.delete(gr(r.name))}function br(e,t,r){const i=e[r];if("function"!=typeof i)throw new Error(`Converter '${t}' does not support ${r}()`);return i}function wr(e,t,r){const i=gr(r.name||e),n=t.trim();if(!n)return 0;let s=!1;r.is&&(s=r.is(t));let o=!1;try{r.decode(t),o=!0}catch(e){o=!1}if(!s&&!o)return 0;switch(i){case"pem":return/-----BEGIN [^-]+-----/.test(t)?1:0;case"hex":{const e=n.replace(/^0x/i,"").replace(/[\s:.-]/g,"");return!e||/[^0-9a-f]/i.test(e)||e.length%2!=0?0:/^0x/i.test(n)||/[:\s.-]/.test(n)?.95:/[a-f]/.test(n)||/[A-F]/.test(n)?.8:.45}case"base64url":return/[-_]/.test(n)?.95:/=/.test(n)?.1:.6;case"base64":return/[+/=]/.test(n)?.9:.55;case"binary":case"utf8":case"utf16be":case"utf16le":return 0;default:return s&&o?.75:.5}}var Ar,Sr;!function(e=[]){const t=new Map,r=new Set,i={register(e,i={}){var n;if(!e.name||!gr(e.name))throw new TypeError("Converter name is required");const s=[...new Set([e.name,...null!==(n=e.aliases)&&void 0!==n?n:[]].map(gr))],o=new Set;for(const e of s){const r=t.get(e);if(r){if(!i.override)throw new Error(`Converter '${e}' is already registered`);o.add(r)}}for(const e of o)mr(t,r,e);for(const r of s)t.set(r,e);return r.add(gr(e.name)),this},unregister(e){const i=t.get(gr(e));return!!i&&(mr(t,r,i),!0)},has:e=>t.has(gr(e)),get(e){const r=t.get(gr(e));if(!r)throw new Error(`Converter '${e}' is not registered`);return r},list(){return[...r].map(e=>this.get(e))},encode(e,t,r){return this.get(e).encode(t,r)},decode(e,t,r){return this.get(e).decode(t,r)},tryDecode(e,t,r){try{return{ok:!0,bytes:this.decode(e,t,r)}}catch(e){return{ok:!1,error:vr(e)}}},normalize(e,t,r){const i=this.get(e);return br(i,e,"normalize").call(i,t,r)},parse(e,t,r){const i=this.get(e);return br(i,e,"parse").call(i,t,r)},format(e,t,r){const i=this.get(e);return br(i,e,"format").call(i,t,r)},transcode(e,t){const r=this.decode(t.from,e,t.fromOptions);return this.encode(t.to,r,t.toOptions)},detect(e,t={}){var r;const i=null!==(r=t.formats)&&void 0!==r&&r.length?t.formats.map(e=>String(e)):this.list().map(e=>e.name).filter(e=>!["binary","utf8","utf16be","utf16le"].includes(gr(e))),n=new Map;for(const t of i){const r=this.get(t),i=wr(t,e,r);if(i<=0)continue;const s=r.name,o=n.get(s);(!o||i>o.confidence)&&n.set(s,{format:s,confidence:i})}return[...n.values()].sort((e,t)=>t.confidence-e.confidence)}};for(const t of e)i.register(t)}([{name:"binary",aliases:["latin1"],encode:Ut,decode:Lt,is:function(e){return"string"==typeof e}},{name:"hex",encode:qt,decode:Gt,format:function(e,t){return qt(e,t)},is:function(e,t={}){if("string"!=typeof e)return!1;try{return Wt(e,t),!0}catch(e){return!1}},normalize:Wt,parse:function(e,t={}){const r=Wt(e,t);return{bytes:Gt(r),format:Ft(e),normalized:r}}},{name:"base64",aliases:["b64"],encode:tr,decode:rr,is:er,normalize:Qt},{name:"base64url",aliases:["base64-url","b64url"],encode:function(e,t){return ir.encode(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")},decode:function(e,t){const r=sr(e);if(!or(r))throw new TypeError("Input is not valid Base64Url text");return ir.decode(ir.pad(r.replace(/-/g,"+").replace(/_/g,"/")))},is:or,normalize:sr},{name:"utf8",aliases:["utf-8"],encode:e=>function(e){return new TextDecoder("utf-8",{fatal:!1}).decode(jt(e))}(e),decode:e=>function(e){return(new TextEncoder).encode(e)}(e),is:e=>"string"==typeof e},{name:"utf16be",aliases:["utf16","utf-16","utf-16be"],encode:e=>Xt(e),decode:e=>Jt(e),is:e=>"string"==typeof e},{name:"utf16le",aliases:["utf-16le","ucs2","usc2"],encode:e=>Xt(e,{littleEndian:!0}),decode:e=>Jt(e,{littleEndian:!0}),is:e=>"string"==typeof e},yr]),function(e){e[e.Sequence=0]="Sequence",e[e.Set=1]="Set",e[e.Choice=2]="Choice"}(Ar||(Ar={})),function(e){e[e.Any=1]="Any",e[e.Boolean=2]="Boolean",e[e.OctetString=3]="OctetString",e[e.BitString=4]="BitString",e[e.Integer=5]="Integer",e[e.Enumerated=6]="Enumerated",e[e.ObjectIdentifier=7]="ObjectIdentifier",e[e.Utf8String=8]="Utf8String",e[e.BmpString=9]="BmpString",e[e.UniversalString=10]="UniversalString",e[e.NumericString=11]="NumericString",e[e.PrintableString=12]="PrintableString",e[e.TeletexString=13]="TeletexString",e[e.VideotexString=14]="VideotexString",e[e.IA5String=15]="IA5String",e[e.GraphicString=16]="GraphicString",e[e.VisibleString=17]="VisibleString",e[e.GeneralString=18]="GeneralString",e[e.CharacterString=19]="CharacterString",e[e.UTCTime=20]="UTCTime",e[e.GeneralizedTime=21]="GeneralizedTime",e[e.DATE=22]="DATE",e[e.TimeOfDay=23]="TimeOfDay",e[e.DateTime=24]="DateTime",e[e.Duration=25]="Duration",e[e.TIME=26]="TIME",e[e.Null=27]="Null",e[e.RelativeObjectIdentifier=28]="RelativeObjectIdentifier"}(Sr||(Sr={}));class xr{constructor(e,t=0){if(_defineProperty(this,"unusedBits",0),_defineProperty(this,"value",new ArrayBuffer(0)),e)if("number"==typeof e)this.fromNumber(e);else{if(!It(e))throw TypeError("Unsupported type of 'params' argument for BitString");this.unusedBits=t,this.value=_t(e)}}fromASN(e){if(!(e instanceof ue))throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");return this.unusedBits=e.valueBlock.unusedBits,this.value=_t(e.valueBlock.valueHex),this}toASN(){return new ue({unusedBits:this.unusedBits,valueHex:this.value})}toSchema(e){return new ue({name:e})}toNumber(){let e="";const t=new Uint8Array(this.value);for(const r of t)e+=r.toString(2).padStart(8,"0");return e=e.split("").reverse().join(""),this.unusedBits&&(e=e.slice(this.unusedBits).padStart(this.unusedBits,"0")),parseInt(e,2)}fromNumber(e){let t=e.toString(2);const r=t.length+7>>3;this.unusedBits=(r<<3)-t.length;const i=new Uint8Array(r);t=t.padStart(r<<3,"0").split("").reverse().join("");let n=0;for(;n<r;)i[n]=parseInt(t.slice(n<<3,8+(n<<3)),2),n++;this.value=i.buffer}}class Br{get byteLength(){return this.buffer.byteLength}get byteOffset(){return 0}constructor(e){_defineProperty(this,"buffer",void 0),"number"==typeof e?this.buffer=new ArrayBuffer(e):It(e)?this.buffer=_t(e):Array.isArray(e)?this.buffer=new Uint8Array(e).buffer:this.buffer=new ArrayBuffer(0)}fromASN(e){if(!(e instanceof ae))throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");return this.buffer=_t(e.valueBlock.valueHex),this}toASN(){return new ae({valueHex:this.buffer})}toSchema(e){return new ae({name:e})}}const kr={fromASN:e=>e instanceof re?null:_t(e.valueBeforeDecodeView),toASN:e=>{if(null===e)return new re;const t=W(e);if(t.result.error)throw new Error(t.result.error);return t.result}},Cr={fromASN:e=>e.valueBlock.valueHexView.byteLength>=4?e.valueBlock.toString():e.valueBlock.valueDec,toASN:e=>new Se({value:+e})},Pr={fromASN:e=>e.valueBlock.valueDec,toASN:e=>new xe({value:e})},Er={fromASN:e=>_t(e.valueBlock.valueHexView),toASN:e=>new Se({valueHex:e})},Or={fromASN:e=>_t(e.valueBlock.valueHexView),toASN:e=>new ue({valueHex:e})},Nr={fromASN:e=>e.valueBlock.toString(),toASN:e=>new Ce({value:e})},Ir={fromASN:e=>e.valueBlock.toString(),toASN:e=>new Oe({value:e})},Tr={fromASN:e=>e.valueBlock.value,toASN:e=>new ne({value:e})},jr={fromASN:e=>_t(e.valueBlock.valueHexView),toASN:e=>new ae({valueHex:e})},_r={fromASN:e=>new Br(e.getValue()),toASN:e=>e.toASN()};function Ur(e){return{fromASN:e=>e.valueBlock.value,toASN:t=>new e({value:t})}}const Lr=Ur(tt),Dr=Ur(it),Rr=Ur(st),Vr=Ur(ot),Hr=Ur(at),$r=Ur(ct),Mr=Ur(lt),Kr=Ur(ut),Fr=Ur(pt),zr=Ur(ht),Wr=Ur(ft),qr=Ur(dt),Gr={fromASN:e=>e.toDate(),toASN:e=>new yt({valueDate:e})},Jr={fromASN:e=>e.toDate(),toASN:e=>new gt({valueDate:e})},Xr={fromASN:()=>null,toASN:()=>new re};function Zr(e){switch(e){case Sr.Any:return kr;case Sr.BitString:return Or;case Sr.BmpString:return Dr;case Sr.Boolean:return Tr;case Sr.CharacterString:return qr;case Sr.Enumerated:return Pr;case Sr.GeneralString:return Wr;case Sr.GeneralizedTime:return Jr;case Sr.GraphicString:return Fr;case Sr.IA5String:return Kr;case Sr.Integer:return Cr;case Sr.Null:return Xr;case Sr.NumericString:return Vr;case Sr.ObjectIdentifier:return Nr;case Sr.RelativeObjectIdentifier:return Ir;case Sr.OctetString:return jr;case Sr.PrintableString:return Hr;case Sr.TeletexString:return $r;case Sr.UTCTime:return Gr;case Sr.UniversalString:return Rr;case Sr.Utf8String:return Lr;case Sr.VideotexString:return Mr;case Sr.VisibleString:return zr;default:return null}}function Yr(e){return"function"==typeof e&&e.prototype?!(!e.prototype.toASN||!e.prototype.fromASN)||Yr(e.prototype):!!(e&&"object"==typeof e&&"toASN"in e&&"fromASN"in e)}function Qr(e){if(e){var t;const r=Object.getPrototypeOf(e);return(null==r||null===(t=r.prototype)||void 0===t?void 0:t.constructor)===Array||Qr(r)}return!1}function ei(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;const r=new Uint8Array(e),i=new Uint8Array(t);for(let t=0;t<e.byteLength;t++)if(r[t]!==i[t])return!1;return!0}const ti=new class{constructor(){_defineProperty(this,"items",new WeakMap)}has(e){return this.items.has(e)}get(e,t=!1){const r=this.items.get(e);if(!r)throw new Error(`Cannot get schema for '${e.prototype.constructor.name}' target`);if(t&&!r.schema)throw new Error(`Schema '${e.prototype.constructor.name}' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'.`);return r}cache(e){const t=this.get(e);t.schema||(t.schema=this.create(e,!0))}createDefault(e){const t={type:Ar.Sequence,items:{}},r=this.findParentSchema(e);return r&&(Object.assign(t,r),t.items=Object.assign({},t.items,r.items)),t}create(e,t){const r=this.items.get(e)||this.createDefault(e),i=[];for(const e in r.items){const n=r.items[e],s=t?e:"";let o;if("number"==typeof n.type){const e=Sr[n.type],t=Ct[e];if(!t)throw new Error(`Cannot get ASN1 class by name '${e}'`);o=new t({name:s})}else if(Yr(n.type)){o=(new n.type).toSchema(s)}else if(n.optional){this.get(n.type).type===Ar.Choice?o=new St({name:s}):(o=this.create(n.type,!1),o.name=s)}else o=new St({name:s});const a=!!n.optional||void 0!==n.defaultValue;if(n.repeated){o.name="";o=new("set"===n.repeated?Ie:Ne)({name:"",value:[new Bt({name:s,value:o})]})}if(null!==n.context&&void 0!==n.context)if(n.implicit)if("number"==typeof n.type||Yr(n.type)){const e=n.repeated?Q:$;i.push(new e({name:s,optional:a,idBlock:{tagClass:3,tagNumber:n.context}}))}else{this.cache(n.type);const e=!!n.repeated;let t=e?o:this.get(n.type,!0).schema;t="valueBlock"in t?t.valueBlock.value:t.value,i.push(new Q({name:e?"":s,optional:a,idBlock:{tagClass:3,tagNumber:n.context},value:t}))}else i.push(new Q({optional:a,idBlock:{tagClass:3,tagNumber:n.context},value:[o]}));else o.optional=a,i.push(o)}switch(r.type){case Ar.Sequence:return new Ne({value:i,name:""});case Ar.Set:return new Ie({value:i,name:""});case Ar.Choice:return new xt({value:i,name:""});default:throw new Error("Unsupported ASN1 type in use")}}set(e,t){return this.items.set(e,t),this}findParentSchema(e){const t=Object.getPrototypeOf(e);if(t){return this.items.get(t)||this.findParentSchema(t)}return null}},ri=e=>t=>{let r;ti.has(t)?r=ti.get(t):(r=ti.createDefault(t),ti.set(t,r)),Object.assign(r,e)},ii=e=>(t,r)=>{let i;ti.has(t.constructor)?i=ti.get(t.constructor):(i=ti.createDefault(t.constructor),ti.set(t.constructor,i));const n=Object.assign({},e);if("number"==typeof n.type&&!n.converter){const i=Zr(e.type);if(!i)throw new Error(`Cannot get default converter for property '${r}' of ${t.constructor.name}`);n.converter=i}n.raw=e.raw,i.items[r]=n};class ni extends Error{constructor(...e){super(...e),_defineProperty(this,"schemas",[])}}class si{static parse(e,t,r){const i=W(_t(e),null==r?void 0:r.berOptions);if(i.result.error)throw new Error(i.result.error);return this.fromASN(i.result,t,r)}static fromASN(e,t,r){try{if(Yr(t)){return(new t).fromASN(e)}const i=ti.get(t);ti.cache(t);let n=i.schema;const s=this.handleChoiceTypes(e,i,t,n,r);if(null!=s&&s.result)return s.result;null!=s&&s.targetSchema&&(n=s.targetSchema);const o=this.handleSequenceTypes(e,i,t,n),a=new t;return Qr(t)?this.handleArrayTypes(e,i,t,r):(this.processSchemaItems(i,o,a,r),a)}catch(e){throw e instanceof ni&&e.schemas.push(t.name),e}}static handleChoiceTypes(e,t,r,i,n){if(e.constructor===Q&&t.type===Ar.Choice&&3===e.idBlock.tagClass)for(const i in t.items){const s=t.items[i];if(s.context===e.idBlock.tagNumber&&s.implicit&&"function"==typeof s.type&&ti.has(s.type)){const t=ti.get(s.type);if(t&&t.type===Ar.Sequence){const t=new Ne;if("value"in e.valueBlock&&Array.isArray(e.valueBlock.value)&&"value"in t.valueBlock){t.valueBlock.value=e.valueBlock.value;const o=this.fromASN(t,s.type,n),a=new r;return a[i]=o,{result:a}}}}}else if(e.constructor===Q&&t.type!==Ar.Choice){const r=new Q({idBlock:{tagClass:3,tagNumber:e.idBlock.tagNumber},value:t.schema.valueBlock.value});for(const r in t.items)delete e[r];return{targetSchema:r}}return null}static handleSequenceTypes(e,t,r,i){if(t.type===Ar.Sequence){const t=kt({},e,i);if(!t.verified)throw new ni(`Data does not match to ${r.name} ASN1 schema.${t.result.error?` ${t.result.error}`:""}`);return t}{const t=kt({},e,i);if(!t.verified)throw new ni(`Data does not match to ${r.name} ASN1 schema.${t.result.error?` ${t.result.error}`:""}`);return t}}static processRepeatedField(e,t,r){let i=e.slice(t);if(1===i.length&&"Sequence"===i[0].constructor.name){const e=i[0];e.valueBlock&&e.valueBlock.value&&Array.isArray(e.valueBlock.value)&&(i=e.valueBlock.value)}if("number"==typeof r.type){const e=Zr(r.type);if(!e)throw new Error(`No converter for ASN.1 type ${r.type}`);return i.filter(e=>e&&e.valueBlock).map(t=>{try{return e.fromASN(t)}catch(e){return}}).filter(e=>void 0!==e)}return i.filter(e=>e&&e.valueBlock).map(e=>{try{return this.fromASN(e,r.type)}catch(e){return}}).filter(e=>void 0!==e)}static processPrimitiveField(e,t){const r=Zr(t.type);if(!r)throw new Error(`No converter for ASN.1 type ${t.type}`);return r.fromASN(e)}static isOptionalChoiceField(e){return e.optional&&"function"==typeof e.type&&ti.has(e.type)&&ti.get(e.type).type===Ar.Choice}static processOptionalChoiceField(e,t){try{return{processed:!0,value:this.fromASN(e,t.type)}}catch(e){if(e instanceof ni&&/Wrong values for Choice type/.test(e.message))return{processed:!1};throw e}}static handleArrayTypes(e,t,r,i){if(!("value"in e.valueBlock)||!Array.isArray(e.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");const n=t.itemType;if("number"==typeof n){const t=Zr(n);if(!t)throw new Error(`Cannot get default converter for array item of ${r.name} ASN1 schema`);return r.from(e.valueBlock.value,e=>t.fromASN(e))}return r.from(e.valueBlock.value,e=>this.fromASN(e,n,i))}static processSchemaItems(e,t,r,i){for(const n in e.items){const s=t.result[n];if(!s)continue;const o=e.items[n],a=o.type;let c;c="number"==typeof a||Yr(a)?this.processPrimitiveSchemaItem(s,o,a,i):this.processComplexSchemaItem(s,o,a,i),c&&"object"==typeof c&&"value"in c&&"raw"in c?(r[n]=c.value,r[`${n}Raw`]=c.raw):r[n]=c}}static processPrimitiveSchemaItem(e,t,r,i){var n;const s=null!==(n=t.converter)&&void 0!==n?n:Yr(r)?new r:null;if(!s)throw new Error("Converter is empty");return t.repeated?this.processRepeatedPrimitiveItem(e,t,s,i):this.processSinglePrimitiveItem(e,t,r,s,i)}static processRepeatedPrimitiveItem(e,t,r,i){if(t.implicit){const n=new("sequence"===t.repeated?Ne:Ie);n.valueBlock=e.valueBlock;const s=W(n.toBER(!1),null==i?void 0:i.berOptions);if(-1===s.offset)throw new Error(`Cannot parse the child item. ${s.result.error}`);if(!("value"in s.result.valueBlock)||!Array.isArray(s.result.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");const o=s.result.valueBlock.value;return Array.from(o,e=>r.fromASN(e))}return Array.from(e,e=>r.fromASN(e))}static processSinglePrimitiveItem(e,t,r,i,n){let s=e;if(t.implicit){let e;if(Yr(r))e=(new r).toSchema("");else{const t=Sr[r],i=Ct[t];if(!i)throw new Error(`Cannot get '${t}' class from asn1js module`);e=new i}e.valueBlock=s.valueBlock,s=W(e.toBER(!1),null==n?void 0:n.berOptions).result}return i.fromASN(s)}static processComplexSchemaItem(e,t,r,i){if(t.repeated){if(!Array.isArray(e))throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");return Array.from(e,e=>this.fromASN(e,r,i))}{const n=this.handleImplicitTagging(e,t,r);if(!this.isOptionalChoiceField(t)){const s=this.fromASN(n,r,i);return t.raw?{value:s,raw:e.valueBeforeDecodeView}:s}try{return this.fromASN(n,r,i)}catch(e){if(e instanceof ni&&/Wrong values for Choice type/.test(e.message))return;throw e}}}static handleImplicitTagging(e,t,r){if(t.implicit&&"number"==typeof t.context){const t=ti.get(r);if(t.type===Ar.Sequence){const t=new Ne;if("value"in e.valueBlock&&Array.isArray(e.valueBlock.value)&&"value"in t.valueBlock)return t.valueBlock.value=e.valueBlock.value,t}else if(t.type===Ar.Set){const t=new Ie;if("value"in e.valueBlock&&Array.isArray(e.valueBlock.value)&&"value"in t.valueBlock)return t.valueBlock.value=e.valueBlock.value,t}}return e}}class oi{static serialize(e){return e instanceof L?e.toBER(!1):this.toASN(e).toBER(!1)}static toASN(e){if(e&&"object"==typeof e&&Yr(e))return e.toASN();if(!e||"object"!=typeof e)throw new TypeError("Parameter 1 should be type of Object.");const t=e.constructor,r=ti.get(t);ti.cache(t);let i,n=[];if(r.itemType){if(!Array.isArray(e))throw new TypeError("Parameter 1 should be type of Array.");if("number"==typeof r.itemType){const i=Zr(r.itemType);if(!i)throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`);n=e.map(e=>i.toASN(e))}else n=e.map(e=>this.toAsnItem({type:r.itemType},"[]",t,e))}else for(const i in r.items){const s=r.items[i],o=e[i];if(void 0===o||s.defaultValue===o||"object"==typeof s.defaultValue&&"object"==typeof o&&ei(this.serialize(s.defaultValue),this.serialize(o)))continue;const a=oi.toAsnItem(s,i,t,o);if("number"==typeof s.context)if(s.implicit)if(s.repeated||"number"!=typeof s.type&&!Yr(s.type))n.push(new Q({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},value:a.valueBlock.value}));else{const e={};e.valueHex=a instanceof re?_t(a.valueBeforeDecodeView):a.valueBlock.toBER(),n.push(new $({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},...e}))}else n.push(new Q({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},value:[a]}));else s.repeated?n=n.concat(a):n.push(a)}switch(r.type){case Ar.Sequence:i=new Ne({value:n});break;case Ar.Set:i=new Ie({value:n});break;case Ar.Choice:if(!n[0])throw new Error(`Schema '${t.name}' has wrong data. Choice cannot be empty.`);i=n[0]}return i}static toAsnItem(e,t,r,i){let n;if("number"==typeof e.type){const s=e.converter;if(!s)throw new Error(`Property '${t}' doesn't have converter for type ${Sr[e.type]} in schema '${r.name}'`);if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");const t=Array.from(i,e=>s.toASN(e));n=new("sequence"===e.repeated?Ne:Ie)({value:t})}else n=s.toASN(i)}else if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");const t=Array.from(i,e=>this.toASN(e));n=new("sequence"===e.repeated?Ne:Ie)({value:t})}else n=this.toASN(i);return n}}class ai extends Array{constructor(e=[]){if("number"==typeof e)super(e);else{super();for(const t of e)this.push(t)}}}class ci{static serialize(e){return oi.serialize(e)}static parse(e,t,r){return si.parse(e,t,r)}static toString(e,t){const r=W(It(e)?_t(e):ci.serialize(e),null==t?void 0:t.berOptions);if(-1===r.offset)throw new Error(`Cannot decode ASN.1 data. ${r.result.error}`);return r.result.toString()}}var li,ui,pi,hi=function(e,t){return hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},hi(e,t)};function fi(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}hi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function di(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function yi(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((i=i.apply(e,t||[])).next())})}function gi(e,t){var r,i,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){s.label=a[1];break}if(6===a[0]&&s.label<n[1]){s.label=n[1],n=a;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(a);break}n[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],i=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function vi(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mi(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function bi(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mi(arguments[t]));return e}function wi(e,t,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)}function Ai(e,t,r,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,r):n?n.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError;class Si{static isIPv4(e){return/^(\d{1,3}\.){3}\d{1,3}$/.test(e)}static parseIPv4(e){const t=e.split(".");if(4!==t.length)throw new Error("Invalid IPv4 address");return t.map(e=>{const t=parseInt(e,10);if(isNaN(t)||t<0||t>255)throw new Error("Invalid IPv4 address part");return t})}static parseIPv6(e){const t=this.expandIPv6(e).split(":");if(8!==t.length)throw new Error("Invalid IPv6 address");return t.reduce((e,t)=>{const r=parseInt(t,16);if(isNaN(r)||r<0||r>65535)throw new Error("Invalid IPv6 address part");return e.push(r>>8&255),e.push(255&r),e},[])}static expandIPv6(e){if(!e.includes("::"))return e;const t=e.split("::");if(t.length>2)throw new Error("Invalid IPv6 address");const r=t[0]?t[0].split(":"):[],i=t[1]?t[1].split(":"):[],n=8-(r.length+i.length);if(n<0)throw new Error("Invalid IPv6 address");return[...r,...Array(n).fill("0"),...i].join(":")}static formatIPv6(e){const t=[];for(let r=0;r<16;r+=2)t.push((e[r]<<8|e[r+1]).toString(16));return this.compressIPv6(t.join(":"))}static compressIPv6(e){const t=e.split(":");let r=-1,i=0,n=-1,s=0;for(let e=0;e<t.length;e++)"0"===t[e]?(-1===n&&(n=e),s++):(s>i&&(r=n,i=s),n=-1,s=0);if(s>i&&(r=n,i=s),i>1){return`${t.slice(0,r).join(":")}::${t.slice(r+i).join(":")}`}return e}static parseCIDR(e){const[t,r]=e.split("/"),i=parseInt(r,10);if(this.isIPv4(t)){if(i<0||i>32)throw new Error("Invalid IPv4 prefix length");return[this.parseIPv4(t),i]}if(i<0||i>128)throw new Error("Invalid IPv6 prefix length");return[this.parseIPv6(t),i]}static decodeIP(e){if(64===e.length&&0===parseInt(e,16))return"::/0";if(16!==e.length)return e;const t=parseInt(e.slice(8),16).toString(2).split("").reduce((e,t)=>e+ +t,0);let r=e.slice(0,8).replace(/(.{2})/g,e=>`${parseInt(e,16)}.`);return r=r.slice(0,-1),`${r}/${t}`}static toString(e){const t=new Uint8Array(e);if(4===t.length)return Array.from(t).join(".");if(16===t.length)return this.formatIPv6(t);if(8===t.length||32===t.length){const e=t.length/2,r=t.slice(0,e),i=t.slice(e);if(t.every(e=>0===e))return 8===t.length?"0.0.0.0/0":"::/0";const n=i.reduce((e,t)=>e+(t.toString(2).match(/1/g)||[]).length,0);if(8===t.length){return`${Array.from(r).join(".")}/${n}`}return`${this.formatIPv6(r)}/${n}`}return this.decodeIP(qt(e))}static fromString(e){if(e.includes("/")){const[t,r]=this.parseCIDR(e),i=new Uint8Array(t.length);let n=r;for(let e=0;e<i.length;e++)n>=8?(i[e]=255,n-=8):n>0&&(i[e]=255<<8-n,n=0);const s=new Uint8Array(2*t.length);return s.set(t,0),s.set(i,t.length),s.buffer}const t=this.isIPv4(e)?this.parseIPv4(e):this.parseIPv6(e);return new Uint8Array(t).buffer}}let xi=class{constructor(e={}){_defineProperty(this,"teletexString",void 0),_defineProperty(this,"printableString",void 0),_defineProperty(this,"universalString",void 0),_defineProperty(this,"utf8String",void 0),_defineProperty(this,"bmpString",void 0),Object.assign(this,e)}toString(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}};di([ii({type:Sr.TeletexString})],xi.prototype,"teletexString",void 0),di([ii({type:Sr.PrintableString})],xi.prototype,"printableString",void 0),di([ii({type:Sr.UniversalString})],xi.prototype,"universalString",void 0),di([ii({type:Sr.Utf8String})],xi.prototype,"utf8String",void 0),di([ii({type:Sr.BmpString})],xi.prototype,"bmpString",void 0),xi=di([ri({type:Ar.Choice})],xi);let Bi=class extends xi{constructor(e={}){super(e),_defineProperty(this,"ia5String",void 0),_defineProperty(this,"anyValue",void 0),Object.assign(this,e)}toString(){return this.ia5String||(this.anyValue?qt(this.anyValue):super.toString())}};di([ii({type:Sr.IA5String})],Bi.prototype,"ia5String",void 0),di([ii({type:Sr.Any})],Bi.prototype,"anyValue",void 0),Bi=di([ri({type:Ar.Choice})],Bi);class ki{constructor(e={}){_defineProperty(this,"type",""),_defineProperty(this,"value",new Bi),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],ki.prototype,"type",void 0),di([ii({type:Bi})],ki.prototype,"value",void 0);let Ci=li=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,li.prototype)}};Ci=li=di([ri({type:Ar.Set,itemType:ki})],Ci);let Pi=ui=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,ui.prototype)}};Pi=ui=di([ri({type:Ar.Sequence,itemType:Ci})],Pi);let Ei=pi=class extends Pi{constructor(e){super(e),Object.setPrototypeOf(this,pi.prototype)}};Ei=pi=di([ri({type:Ar.Sequence})],Ei);const Oi={fromASN:e=>Si.toString(jr.fromASN(e)),toASN:e=>jr.toASN(Si.fromString(e))};class Ni{constructor(e={}){_defineProperty(this,"typeId",""),_defineProperty(this,"value",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],Ni.prototype,"typeId",void 0),di([ii({type:Sr.Any,context:0})],Ni.prototype,"value",void 0);class Ii{constructor(e={}){_defineProperty(this,"nameAssigner",void 0),_defineProperty(this,"partyName",new xi),Object.assign(this,e)}}di([ii({type:xi,optional:!0,context:0,implicit:!0})],Ii.prototype,"nameAssigner",void 0),di([ii({type:xi,context:1,implicit:!0})],Ii.prototype,"partyName",void 0);let Ti=class{constructor(e={}){_defineProperty(this,"otherName",void 0),_defineProperty(this,"rfc822Name",void 0),_defineProperty(this,"dNSName",void 0),_defineProperty(this,"x400Address",void 0),_defineProperty(this,"directoryName",void 0),_defineProperty(this,"ediPartyName",void 0),_defineProperty(this,"uniformResourceIdentifier",void 0),_defineProperty(this,"iPAddress",void 0),_defineProperty(this,"registeredID",void 0),Object.assign(this,e)}};di([ii({type:Ni,context:0,implicit:!0})],Ti.prototype,"otherName",void 0),di([ii({type:Sr.IA5String,context:1,implicit:!0})],Ti.prototype,"rfc822Name",void 0),di([ii({type:Sr.IA5String,context:2,implicit:!0})],Ti.prototype,"dNSName",void 0),di([ii({type:Sr.Any,context:3,implicit:!0})],Ti.prototype,"x400Address",void 0),di([ii({type:Ei,context:4,implicit:!1})],Ti.prototype,"directoryName",void 0),di([ii({type:Ii,context:5})],Ti.prototype,"ediPartyName",void 0),di([ii({type:Sr.IA5String,context:6,implicit:!0})],Ti.prototype,"uniformResourceIdentifier",void 0),di([ii({type:Sr.OctetString,context:7,implicit:!0,converter:Oi})],Ti.prototype,"iPAddress",void 0),di([ii({type:Sr.ObjectIdentifier,context:8,implicit:!0})],Ti.prototype,"registeredID",void 0),Ti=di([ri({type:Ar.Choice})],Ti);const ji="1.3.6.1.5.5.7",_i=`${ji}.3`,Ui=`${ji}.48`,Li=`${Ui}.1`,Di=`${Ui}.2`,Ri=`${Ui}.3`,Vi=`${Ui}.5`,Hi="2.5.29";var $i;const Mi=`${`${ji}.1`}.1`;class Ki{constructor(e={}){_defineProperty(this,"accessMethod",""),_defineProperty(this,"accessLocation",new Ti),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],Ki.prototype,"accessMethod",void 0),di([ii({type:Ti})],Ki.prototype,"accessLocation",void 0);let Fi=$i=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,$i.prototype)}};Fi=$i=di([ri({type:Ar.Sequence,itemType:Ki})],Fi);const zi=`${Hi}.35`;class Wi extends Br{}class qi{constructor(e={}){_defineProperty(this,"keyIdentifier",void 0),_defineProperty(this,"authorityCertIssuer",void 0),_defineProperty(this,"authorityCertSerialNumber",void 0),e&&Object.assign(this,e)}}di([ii({type:Wi,context:0,optional:!0,implicit:!0})],qi.prototype,"keyIdentifier",void 0),di([ii({type:Ti,context:1,optional:!0,implicit:!0,repeated:"sequence"})],qi.prototype,"authorityCertIssuer",void 0),di([ii({type:Sr.Integer,context:2,optional:!0,implicit:!0,converter:Er})],qi.prototype,"authorityCertSerialNumber",void 0);const Gi=`${Hi}.19`;class Ji{constructor(e={}){_defineProperty(this,"cA",!1),_defineProperty(this,"pathLenConstraint",void 0),Object.assign(this,e)}}var Xi;di([ii({type:Sr.Boolean,defaultValue:!1})],Ji.prototype,"cA",void 0),di([ii({type:Sr.Integer,optional:!0})],Ji.prototype,"pathLenConstraint",void 0);let Zi=Xi=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Xi.prototype)}};var Yi;Zi=Xi=di([ri({type:Ar.Sequence,itemType:Ti})],Zi);const Qi=`${Hi}.29`;let en=Yi=class extends Zi{constructor(e){super(e),Object.setPrototypeOf(this,Yi.prototype)}};var tn;en=Yi=di([ri({type:Ar.Sequence})],en);const rn=`${Hi}.32`;let nn=class{constructor(e={}){_defineProperty(this,"ia5String",void 0),_defineProperty(this,"visibleString",void 0),_defineProperty(this,"bmpString",void 0),_defineProperty(this,"utf8String",void 0),Object.assign(this,e)}toString(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}};di([ii({type:Sr.IA5String})],nn.prototype,"ia5String",void 0),di([ii({type:Sr.VisibleString})],nn.prototype,"visibleString",void 0),di([ii({type:Sr.BmpString})],nn.prototype,"bmpString",void 0),di([ii({type:Sr.Utf8String})],nn.prototype,"utf8String",void 0),nn=di([ri({type:Ar.Choice})],nn);class sn{constructor(e={}){_defineProperty(this,"organization",new nn),_defineProperty(this,"noticeNumbers",[]),Object.assign(this,e)}}di([ii({type:nn})],sn.prototype,"organization",void 0),di([ii({type:Sr.Integer,repeated:"sequence"})],sn.prototype,"noticeNumbers",void 0);class on{constructor(e={}){_defineProperty(this,"noticeRef",void 0),_defineProperty(this,"explicitText",void 0),Object.assign(this,e)}}di([ii({type:sn,optional:!0})],on.prototype,"noticeRef",void 0),di([ii({type:nn,optional:!0})],on.prototype,"explicitText",void 0);let an=class{constructor(e={}){_defineProperty(this,"cPSuri",void 0),_defineProperty(this,"userNotice",void 0),Object.assign(this,e)}};di([ii({type:Sr.IA5String})],an.prototype,"cPSuri",void 0),di([ii({type:on})],an.prototype,"userNotice",void 0),an=di([ri({type:Ar.Choice})],an);class cn{constructor(e={}){_defineProperty(this,"policyQualifierId",""),_defineProperty(this,"qualifier",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],cn.prototype,"policyQualifierId",void 0),di([ii({type:Sr.Any})],cn.prototype,"qualifier",void 0);class ln{constructor(e={}){_defineProperty(this,"policyIdentifier",""),_defineProperty(this,"policyQualifiers",void 0),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],ln.prototype,"policyIdentifier",void 0),di([ii({type:cn,repeated:"sequence",optional:!0})],ln.prototype,"policyQualifiers",void 0);let un=tn=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,tn.prototype)}};un=tn=di([ri({type:Ar.Sequence,itemType:ln})],un);let pn=class{constructor(e=0){_defineProperty(this,"value",void 0),this.value=e}};di([ii({type:Sr.Integer})],pn.prototype,"value",void 0),pn=di([ri({type:Ar.Choice})],pn);let hn=class extends pn{};var fn;hn=di([ri({type:Ar.Choice})],hn);const dn=`${Hi}.31`;var yn;!function(e){e[e.unused=1]="unused",e[e.keyCompromise=2]="keyCompromise",e[e.cACompromise=4]="cACompromise",e[e.affiliationChanged=8]="affiliationChanged",e[e.superseded=16]="superseded",e[e.cessationOfOperation=32]="cessationOfOperation",e[e.certificateHold=64]="certificateHold",e[e.privilegeWithdrawn=128]="privilegeWithdrawn",e[e.aACompromise=256]="aACompromise"}(yn||(yn={}));class gn extends xr{toJSON(){const e=[],t=this.toNumber();return t&yn.aACompromise&&e.push("aACompromise"),t&yn.affiliationChanged&&e.push("affiliationChanged"),t&yn.cACompromise&&e.push("cACompromise"),t&yn.certificateHold&&e.push("certificateHold"),t&yn.cessationOfOperation&&e.push("cessationOfOperation"),t&yn.keyCompromise&&e.push("keyCompromise"),t&yn.privilegeWithdrawn&&e.push("privilegeWithdrawn"),t&yn.superseded&&e.push("superseded"),t&yn.unused&&e.push("unused"),e}toString(){return`[${this.toJSON().join(", ")}]`}}let vn=class{constructor(e={}){_defineProperty(this,"fullName",void 0),_defineProperty(this,"nameRelativeToCRLIssuer",void 0),Object.assign(this,e)}};di([ii({type:Ti,context:0,repeated:"sequence",implicit:!0})],vn.prototype,"fullName",void 0),di([ii({type:Ci,context:1,implicit:!0})],vn.prototype,"nameRelativeToCRLIssuer",void 0),vn=di([ri({type:Ar.Choice})],vn);class mn{constructor(e={}){_defineProperty(this,"distributionPoint",void 0),_defineProperty(this,"reasons",void 0),_defineProperty(this,"cRLIssuer",void 0),Object.assign(this,e)}}di([ii({type:vn,context:0,optional:!0})],mn.prototype,"distributionPoint",void 0),di([ii({type:gn,context:1,optional:!0,implicit:!0})],mn.prototype,"reasons",void 0),di([ii({type:Ti,context:2,optional:!0,repeated:"sequence",implicit:!0})],mn.prototype,"cRLIssuer",void 0);let bn=fn=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,fn.prototype)}};var wn;bn=fn=di([ri({type:Ar.Sequence,itemType:mn})],bn);let An=wn=class extends bn{constructor(e){super(e),Object.setPrototypeOf(this,wn.prototype)}};An=wn=di([ri({type:Ar.Sequence,itemType:mn})],An);class Sn{constructor(e={}){_defineProperty(this,"distributionPoint",void 0),_defineProperty(this,"onlyContainsUserCerts",Sn.ONLY),_defineProperty(this,"onlyContainsCACerts",Sn.ONLY),_defineProperty(this,"onlySomeReasons",void 0),_defineProperty(this,"indirectCRL",Sn.ONLY),_defineProperty(this,"onlyContainsAttributeCerts",Sn.ONLY),Object.assign(this,e)}}_defineProperty(Sn,"ONLY",!1),di([ii({type:vn,context:0,optional:!0})],Sn.prototype,"distributionPoint",void 0),di([ii({type:Sr.Boolean,context:1,defaultValue:Sn.ONLY,implicit:!0})],Sn.prototype,"onlyContainsUserCerts",void 0),di([ii({type:Sr.Boolean,context:2,defaultValue:Sn.ONLY,implicit:!0})],Sn.prototype,"onlyContainsCACerts",void 0),di([ii({type:gn,context:3,optional:!0,implicit:!0})],Sn.prototype,"onlySomeReasons",void 0),di([ii({type:Sr.Boolean,context:4,defaultValue:Sn.ONLY,implicit:!0})],Sn.prototype,"indirectCRL",void 0),di([ii({type:Sr.Boolean,context:5,defaultValue:Sn.ONLY,implicit:!0})],Sn.prototype,"onlyContainsAttributeCerts",void 0);const xn=`${Hi}.21`;var Bn;!function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(Bn||(Bn={}));let kn=class{constructor(e=Bn.unspecified){_defineProperty(this,"reason",Bn.unspecified),this.reason=e}toJSON(){return Bn[this.reason]}toString(){return this.toJSON()}};var Cn;di([ii({type:Sr.Enumerated})],kn.prototype,"reason",void 0),kn=di([ri({type:Ar.Choice})],kn);const Pn=`${Hi}.37`;let En=Cn=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Cn.prototype)}};En=Cn=di([ri({type:Ar.Sequence,itemType:Sr.ObjectIdentifier})],En);const On=`${_i}.1`,Nn=`${_i}.2`,In=`${_i}.3`,Tn=`${_i}.4`,jn=`${_i}.8`,_n=`${_i}.9`;let Un=class{constructor(e=new ArrayBuffer(0)){_defineProperty(this,"value",void 0),this.value=e}};di([ii({type:Sr.Integer,converter:Er})],Un.prototype,"value",void 0),Un=di([ri({type:Ar.Choice})],Un);const Ln=`${Hi}.24`;let Dn=class{constructor(e){_defineProperty(this,"value",new Date),e&&(this.value=e)}};var Rn;di([ii({type:Sr.GeneralizedTime})],Dn.prototype,"value",void 0),Dn=di([ri({type:Ar.Choice})],Dn);const Vn=`${Hi}.18`;let Hn=Rn=class extends Zi{constructor(e){super(e),Object.setPrototypeOf(this,Rn.prototype)}};Hn=Rn=di([ri({type:Ar.Sequence})],Hn);const $n=`${Hi}.15`;var Mn,Kn;!function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(Mn||(Mn={}));class Fn extends xr{toJSON(){const e=this.toNumber(),t=[];return e&Mn.cRLSign&&t.push("crlSign"),e&Mn.dataEncipherment&&t.push("dataEncipherment"),e&Mn.decipherOnly&&t.push("decipherOnly"),e&Mn.digitalSignature&&t.push("digitalSignature"),e&Mn.encipherOnly&&t.push("encipherOnly"),e&Mn.keyAgreement&&t.push("keyAgreement"),e&Mn.keyCertSign&&t.push("keyCertSign"),e&Mn.keyEncipherment&&t.push("keyEncipherment"),e&Mn.nonRepudiation&&t.push("nonRepudiation"),t}toString(){return`[${this.toJSON().join(", ")}]`}}class zn{constructor(e={}){_defineProperty(this,"base",new Ti),_defineProperty(this,"minimum",0),_defineProperty(this,"maximum",void 0),Object.assign(this,e)}}di([ii({type:Ti})],zn.prototype,"base",void 0),di([ii({type:Sr.Integer,context:0,defaultValue:0,implicit:!0})],zn.prototype,"minimum",void 0),di([ii({type:Sr.Integer,context:1,optional:!0,implicit:!0})],zn.prototype,"maximum",void 0);let Wn=Kn=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Kn.prototype)}};Wn=Kn=di([ri({type:Ar.Sequence,itemType:zn})],Wn);class qn{constructor(e={}){_defineProperty(this,"permittedSubtrees",void 0),_defineProperty(this,"excludedSubtrees",void 0),Object.assign(this,e)}}di([ii({type:Wn,context:0,optional:!0,implicit:!0})],qn.prototype,"permittedSubtrees",void 0),di([ii({type:Wn,context:1,optional:!0,implicit:!0})],qn.prototype,"excludedSubtrees",void 0);class Gn{constructor(e={}){_defineProperty(this,"requireExplicitPolicy",void 0),_defineProperty(this,"inhibitPolicyMapping",void 0),Object.assign(this,e)}}var Jn;di([ii({type:Sr.Integer,context:0,implicit:!0,optional:!0,converter:Er})],Gn.prototype,"requireExplicitPolicy",void 0),di([ii({type:Sr.Integer,context:1,implicit:!0,optional:!0,converter:Er})],Gn.prototype,"inhibitPolicyMapping",void 0);class Xn{constructor(e={}){_defineProperty(this,"issuerDomainPolicy",""),_defineProperty(this,"subjectDomainPolicy",""),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],Xn.prototype,"issuerDomainPolicy",void 0),di([ii({type:Sr.ObjectIdentifier})],Xn.prototype,"subjectDomainPolicy",void 0);let Zn=Jn=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Jn.prototype)}};var Yn;Zn=Jn=di([ri({type:Ar.Sequence,itemType:Xn})],Zn);const Qn=`${Hi}.17`;let es=Yn=class extends Zi{constructor(e){super(e),Object.setPrototypeOf(this,Yn.prototype)}};es=Yn=di([ri({type:Ar.Sequence})],es);let ts=class{constructor(e={}){_defineProperty(this,"type",""),_defineProperty(this,"values",[]),Object.assign(this,e)}};var rs;di([ii({type:Sr.ObjectIdentifier})],ts.prototype,"type",void 0),di([ii({type:Sr.Any,repeated:"set"})],ts.prototype,"values",void 0);let is=rs=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,rs.prototype)}};is=rs=di([ri({type:Ar.Sequence,itemType:ts})],is);const ns=`${Hi}.14`;class ss extends Wi{}class os{constructor(e={}){_defineProperty(this,"notBefore",void 0),_defineProperty(this,"notAfter",void 0),Object.assign(this,e)}}var as,cs;di([ii({type:Sr.GeneralizedTime,context:0,implicit:!0,optional:!0})],os.prototype,"notBefore",void 0),di([ii({type:Sr.GeneralizedTime,context:1,implicit:!0,optional:!0})],os.prototype,"notAfter",void 0),function(e){e[e.keyUpdateAllowed=1]="keyUpdateAllowed",e[e.newExtensions=2]="newExtensions",e[e.pKIXCertificate=4]="pKIXCertificate"}(as||(as={}));class ls extends xr{toJSON(){const e=[],t=this.toNumber();return t&as.pKIXCertificate&&e.push("pKIXCertificate"),t&as.newExtensions&&e.push("newExtensions"),t&as.keyUpdateAllowed&&e.push("keyUpdateAllowed"),e}toString(){return`[${this.toJSON().join(", ")}]`}}class us{constructor(e={}){_defineProperty(this,"entrustVers",""),_defineProperty(this,"entrustInfoFlags",new ls),Object.assign(this,e)}}di([ii({type:Sr.GeneralString})],us.prototype,"entrustVers",void 0),di([ii({type:ls})],us.prototype,"entrustInfoFlags",void 0);let ps=cs=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,cs.prototype)}};ps=cs=di([ri({type:Ar.Sequence,itemType:Ki})],ps);class hs{constructor(e={}){_defineProperty(this,"algorithm",""),_defineProperty(this,"parameters",void 0),Object.assign(this,e)}isEqual(e){return e instanceof hs&&e.algorithm==this.algorithm&&(e.parameters&&this.parameters&&function(e,t,r={}){const i=jt(e),n=jt(t);if(!r.constantTime&&i.byteLength!==n.byteLength)return!1;const s=Math.max(i.byteLength,n.byteLength);let o=i.byteLength^n.byteLength;for(let e=0;e<s;e++){var a,c;o|=(null!==(a=i[e])&&void 0!==a?a:0)^(null!==(c=n[e])&&void 0!==c?c:0)}return 0===o}(e.parameters,this.parameters)||e.parameters===this.parameters)}}di([ii({type:Sr.ObjectIdentifier})],hs.prototype,"algorithm",void 0),di([ii({type:Sr.Any,optional:!0})],hs.prototype,"parameters",void 0);class fs{constructor(e={}){_defineProperty(this,"algorithm",new hs),_defineProperty(this,"subjectPublicKey",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:hs})],fs.prototype,"algorithm",void 0),di([ii({type:Sr.BitString})],fs.prototype,"subjectPublicKey",void 0);let ds=class{constructor(e){if(_defineProperty(this,"utcTime",void 0),_defineProperty(this,"generalTime",void 0),e)if("string"==typeof e||"number"==typeof e||e instanceof Date){const t=new Date(e);t.setMilliseconds(0),t.getUTCFullYear()>2049?this.generalTime=t:this.utcTime=t}else Object.assign(this,e)}getTime(){const e=this.utcTime||this.generalTime;if(!e)throw new Error("Cannot get time from CHOICE object");return e}};di([ii({type:Sr.UTCTime})],ds.prototype,"utcTime",void 0),di([ii({type:Sr.GeneralizedTime})],ds.prototype,"generalTime",void 0),ds=di([ri({type:Ar.Choice})],ds);class ys{constructor(e){_defineProperty(this,"notBefore",new ds(new Date)),_defineProperty(this,"notAfter",new ds(new Date)),e&&(this.notBefore=new ds(e.notBefore),this.notAfter=new ds(e.notAfter))}}var gs;di([ii({type:ds})],ys.prototype,"notBefore",void 0),di([ii({type:ds})],ys.prototype,"notAfter",void 0);let vs=(t=class e{constructor(t={}){_defineProperty(this,"extnID",""),_defineProperty(this,"critical",e.CRITICAL),_defineProperty(this,"extnValue",new Br),Object.assign(this,t)}},_defineProperty(t,"CRITICAL",!1),t);di([ii({type:Sr.ObjectIdentifier})],vs.prototype,"extnID",void 0),di([ii({type:Sr.Boolean,defaultValue:vs.CRITICAL})],vs.prototype,"critical",void 0),di([ii({type:Br})],vs.prototype,"extnValue",void 0);let ms=gs=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,gs.prototype)}};var bs;ms=gs=di([ri({type:Ar.Sequence,itemType:vs})],ms),function(e){e[e.v1=0]="v1",e[e.v2=1]="v2",e[e.v3=2]="v3"}(bs||(bs={}));class ws{constructor(e={}){_defineProperty(this,"version",bs.v1),_defineProperty(this,"serialNumber",new ArrayBuffer(0)),_defineProperty(this,"signature",new hs),_defineProperty(this,"issuer",new Ei),_defineProperty(this,"validity",new ys),_defineProperty(this,"subject",new Ei),_defineProperty(this,"subjectPublicKeyInfo",new fs),_defineProperty(this,"issuerUniqueID",void 0),_defineProperty(this,"subjectUniqueID",void 0),_defineProperty(this,"extensions",void 0),Object.assign(this,e)}}di([ii({type:Sr.Integer,context:0,defaultValue:bs.v1})],ws.prototype,"version",void 0),di([ii({type:Sr.Integer,converter:Er})],ws.prototype,"serialNumber",void 0),di([ii({type:hs})],ws.prototype,"signature",void 0),di([ii({type:Ei})],ws.prototype,"issuer",void 0),di([ii({type:ys})],ws.prototype,"validity",void 0),di([ii({type:Ei})],ws.prototype,"subject",void 0),di([ii({type:fs})],ws.prototype,"subjectPublicKeyInfo",void 0),di([ii({type:Sr.BitString,context:1,implicit:!0,optional:!0})],ws.prototype,"issuerUniqueID",void 0),di([ii({type:Sr.BitString,context:2,implicit:!0,optional:!0})],ws.prototype,"subjectUniqueID",void 0),di([ii({type:ms,context:3,optional:!0})],ws.prototype,"extensions",void 0);class As{constructor(e={}){_defineProperty(this,"tbsCertificate",new ws),_defineProperty(this,"tbsCertificateRaw",void 0),_defineProperty(this,"signatureAlgorithm",new hs),_defineProperty(this,"signatureValue",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:ws,raw:!0})],As.prototype,"tbsCertificate",void 0),di([ii({type:hs})],As.prototype,"signatureAlgorithm",void 0),di([ii({type:Sr.BitString})],As.prototype,"signatureValue",void 0);class Ss{constructor(e={}){_defineProperty(this,"userCertificate",new ArrayBuffer(0)),_defineProperty(this,"revocationDate",new ds),_defineProperty(this,"crlEntryExtensions",void 0),Object.assign(this,e)}}di([ii({type:Sr.Integer,converter:Er})],Ss.prototype,"userCertificate",void 0),di([ii({type:ds})],Ss.prototype,"revocationDate",void 0),di([ii({type:vs,optional:!0,repeated:"sequence"})],Ss.prototype,"crlEntryExtensions",void 0);class xs{constructor(e={}){_defineProperty(this,"version",void 0),_defineProperty(this,"signature",new hs),_defineProperty(this,"issuer",new Ei),_defineProperty(this,"thisUpdate",new ds),_defineProperty(this,"nextUpdate",void 0),_defineProperty(this,"revokedCertificates",void 0),_defineProperty(this,"crlExtensions",void 0),Object.assign(this,e)}}di([ii({type:Sr.Integer,optional:!0})],xs.prototype,"version",void 0),di([ii({type:hs})],xs.prototype,"signature",void 0),di([ii({type:Ei})],xs.prototype,"issuer",void 0),di([ii({type:ds})],xs.prototype,"thisUpdate",void 0),di([ii({type:ds,optional:!0})],xs.prototype,"nextUpdate",void 0),di([ii({type:Ss,repeated:"sequence",optional:!0})],xs.prototype,"revokedCertificates",void 0),di([ii({type:vs,optional:!0,context:0,repeated:"sequence"})],xs.prototype,"crlExtensions",void 0);class Bs{constructor(e={}){_defineProperty(this,"tbsCertList",new xs),_defineProperty(this,"tbsCertListRaw",void 0),_defineProperty(this,"signatureAlgorithm",new hs),_defineProperty(this,"signature",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:xs,raw:!0})],Bs.prototype,"tbsCertList",void 0),di([ii({type:hs})],Bs.prototype,"signatureAlgorithm",void 0),di([ii({type:Sr.BitString})],Bs.prototype,"signature",void 0);class ks{constructor(e={}){_defineProperty(this,"issuer",new Ei),_defineProperty(this,"serialNumber",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Ei})],ks.prototype,"issuer",void 0),di([ii({type:Sr.Integer,converter:Er})],ks.prototype,"serialNumber",void 0);let Cs=class{constructor(e={}){_defineProperty(this,"subjectKeyIdentifier",void 0),_defineProperty(this,"issuerAndSerialNumber",void 0),Object.assign(this,e)}};var Ps;di([ii({type:ss,context:0,implicit:!0})],Cs.prototype,"subjectKeyIdentifier",void 0),di([ii({type:ks})],Cs.prototype,"issuerAndSerialNumber",void 0),Cs=di([ri({type:Ar.Choice})],Cs),function(e){e[e.v0=0]="v0",e[e.v1=1]="v1",e[e.v2=2]="v2",e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v5=5]="v5"}(Ps||(Ps={}));let Es=class extends hs{};Es=di([ri({type:Ar.Sequence})],Es);let Os=class extends hs{};Os=di([ri({type:Ar.Sequence})],Os);let Ns=class extends hs{};Ns=di([ri({type:Ar.Sequence})],Ns);let Is=class extends hs{};Is=di([ri({type:Ar.Sequence})],Is);let Ts=class extends hs{};Ts=di([ri({type:Ar.Sequence})],Ts);let js=class extends hs{};js=di([ri({type:Ar.Sequence})],js);let _s=class{constructor(e={}){_defineProperty(this,"attrType",""),_defineProperty(this,"attrValues",[]),Object.assign(this,e)}};var Us;di([ii({type:Sr.ObjectIdentifier})],_s.prototype,"attrType",void 0),di([ii({type:Sr.Any,repeated:"set"})],_s.prototype,"attrValues",void 0);class Ls{constructor(e={}){_defineProperty(this,"version",Ps.v0),_defineProperty(this,"sid",new Cs),_defineProperty(this,"digestAlgorithm",new Es),_defineProperty(this,"signedAttrs",void 0),_defineProperty(this,"signedAttrsRaw",void 0),_defineProperty(this,"signatureAlgorithm",new Os),_defineProperty(this,"signature",new Br),_defineProperty(this,"unsignedAttrs",void 0),Object.assign(this,e)}}di([ii({type:Sr.Integer})],Ls.prototype,"version",void 0),di([ii({type:Cs})],Ls.prototype,"sid",void 0),di([ii({type:Es})],Ls.prototype,"digestAlgorithm",void 0),di([ii({type:_s,repeated:"set",context:0,implicit:!0,optional:!0,raw:!0})],Ls.prototype,"signedAttrs",void 0),di([ii({type:Os})],Ls.prototype,"signatureAlgorithm",void 0),di([ii({type:Br})],Ls.prototype,"signature",void 0),di([ii({type:_s,repeated:"set",context:1,implicit:!0,optional:!0})],Ls.prototype,"unsignedAttrs",void 0);let Ds=Us=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Us.prototype)}};Ds=Us=di([ri({type:Ar.Set,itemType:Ls})],Ds);let Rs=class extends Ls{};Rs=di([ri({type:Ar.Sequence})],Rs);let Vs=class extends ds{};Vs=di([ri({type:Ar.Choice})],Vs);class Hs{constructor(e={}){_defineProperty(this,"acIssuer",new Ti),_defineProperty(this,"acSerial",0),_defineProperty(this,"attrs",[]),Object.assign(this,e)}}var $s;di([ii({type:Ti})],Hs.prototype,"acIssuer",void 0),di([ii({type:Sr.Integer})],Hs.prototype,"acSerial",void 0),di([ii({type:ts,repeated:"sequence"})],Hs.prototype,"attrs",void 0);let Ms=$s=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,$s.prototype)}};Ms=$s=di([ri({type:Ar.Sequence,itemType:Sr.ObjectIdentifier})],Ms);class Ks{constructor(e={}){_defineProperty(this,"pathLenConstraint",void 0),_defineProperty(this,"permittedAttrs",void 0),_defineProperty(this,"excludedAttrs",void 0),_defineProperty(this,"permitUnSpecified",!0),Object.assign(this,e)}}di([ii({type:Sr.Integer,optional:!0})],Ks.prototype,"pathLenConstraint",void 0),di([ii({type:Ms,implicit:!0,context:0,optional:!0})],Ks.prototype,"permittedAttrs",void 0),di([ii({type:Ms,implicit:!0,context:1,optional:!0})],Ks.prototype,"excludedAttrs",void 0),di([ii({type:Sr.Boolean,defaultValue:!0})],Ks.prototype,"permitUnSpecified",void 0);class Fs{constructor(e={}){_defineProperty(this,"issuer",new Zi),_defineProperty(this,"serial",new ArrayBuffer(0)),_defineProperty(this,"issuerUID",new ArrayBuffer(0)),Object.assign(this,e)}}var zs;di([ii({type:Zi})],Fs.prototype,"issuer",void 0),di([ii({type:Sr.Integer,converter:Er})],Fs.prototype,"serial",void 0),di([ii({type:Sr.BitString,optional:!0})],Fs.prototype,"issuerUID",void 0),function(e){e[e.publicKey=0]="publicKey",e[e.publicKeyCert=1]="publicKeyCert",e[e.otherObjectTypes=2]="otherObjectTypes"}(zs||(zs={}));class Ws{constructor(e={}){_defineProperty(this,"digestedObjectType",zs.publicKey),_defineProperty(this,"otherObjectTypeID",void 0),_defineProperty(this,"digestAlgorithm",new hs),_defineProperty(this,"objectDigest",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.Enumerated})],Ws.prototype,"digestedObjectType",void 0),di([ii({type:Sr.ObjectIdentifier,optional:!0})],Ws.prototype,"otherObjectTypeID",void 0),di([ii({type:hs})],Ws.prototype,"digestAlgorithm",void 0),di([ii({type:Sr.BitString})],Ws.prototype,"objectDigest",void 0);class qs{constructor(e={}){_defineProperty(this,"issuerName",void 0),_defineProperty(this,"baseCertificateID",void 0),_defineProperty(this,"objectDigestInfo",void 0),Object.assign(this,e)}}di([ii({type:Zi,optional:!0})],qs.prototype,"issuerName",void 0),di([ii({type:Fs,context:0,implicit:!0,optional:!0})],qs.prototype,"baseCertificateID",void 0),di([ii({type:Ws,context:1,implicit:!0,optional:!0})],qs.prototype,"objectDigestInfo",void 0);let Gs=class{constructor(e={}){_defineProperty(this,"v1Form",void 0),_defineProperty(this,"v2Form",void 0),Object.assign(this,e)}};di([ii({type:Ti,repeated:"sequence"})],Gs.prototype,"v1Form",void 0),di([ii({type:qs,context:0,implicit:!0})],Gs.prototype,"v2Form",void 0),Gs=di([ri({type:Ar.Choice})],Gs);class Js{constructor(e={}){_defineProperty(this,"notBeforeTime",new Date),_defineProperty(this,"notAfterTime",new Date),Object.assign(this,e)}}di([ii({type:Sr.GeneralizedTime})],Js.prototype,"notBeforeTime",void 0),di([ii({type:Sr.GeneralizedTime})],Js.prototype,"notAfterTime",void 0);class Xs{constructor(e={}){_defineProperty(this,"baseCertificateID",void 0),_defineProperty(this,"entityName",void 0),_defineProperty(this,"objectDigestInfo",void 0),Object.assign(this,e)}}var Zs,Ys,Qs;di([ii({type:Fs,implicit:!0,context:0,optional:!0})],Xs.prototype,"baseCertificateID",void 0),di([ii({type:Zi,implicit:!0,context:1,optional:!0})],Xs.prototype,"entityName",void 0),di([ii({type:Ws,implicit:!0,context:2,optional:!0})],Xs.prototype,"objectDigestInfo",void 0),function(e){e[e.v2=1]="v2"}(Zs||(Zs={}));class eo{constructor(e={}){_defineProperty(this,"version",Zs.v2),_defineProperty(this,"holder",new Xs),_defineProperty(this,"issuer",new Gs),_defineProperty(this,"signature",new hs),_defineProperty(this,"serialNumber",new ArrayBuffer(0)),_defineProperty(this,"attrCertValidityPeriod",new Js),_defineProperty(this,"attributes",[]),_defineProperty(this,"issuerUniqueID",void 0),_defineProperty(this,"extensions",void 0),Object.assign(this,e)}}di([ii({type:Sr.Integer})],eo.prototype,"version",void 0),di([ii({type:Xs})],eo.prototype,"holder",void 0),di([ii({type:Gs})],eo.prototype,"issuer",void 0),di([ii({type:hs})],eo.prototype,"signature",void 0),di([ii({type:Sr.Integer,converter:Er})],eo.prototype,"serialNumber",void 0),di([ii({type:Js})],eo.prototype,"attrCertValidityPeriod",void 0),di([ii({type:ts,repeated:"sequence"})],eo.prototype,"attributes",void 0),di([ii({type:Sr.BitString,optional:!0})],eo.prototype,"issuerUniqueID",void 0),di([ii({type:ms,optional:!0})],eo.prototype,"extensions",void 0);class to{constructor(e={}){_defineProperty(this,"acinfo",new eo),_defineProperty(this,"signatureAlgorithm",new hs),_defineProperty(this,"signatureValue",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:eo})],to.prototype,"acinfo",void 0),di([ii({type:hs})],to.prototype,"signatureAlgorithm",void 0),di([ii({type:Sr.BitString})],to.prototype,"signatureValue",void 0),function(e){e[e.unmarked=1]="unmarked",e[e.unclassified=2]="unclassified",e[e.restricted=4]="restricted",e[e.confidential=8]="confidential",e[e.secret=16]="secret",e[e.topSecret=32]="topSecret"}(Ys||(Ys={}));class ro extends xr{}class io{constructor(e={}){_defineProperty(this,"type",""),_defineProperty(this,"value",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier,implicit:!0,context:0})],io.prototype,"type",void 0),di([ii({type:Sr.Any,implicit:!0,context:1})],io.prototype,"value",void 0);class no{constructor(e={}){_defineProperty(this,"policyId",""),_defineProperty(this,"classList",new ro(Ys.unclassified)),_defineProperty(this,"securityCategories",void 0),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],no.prototype,"policyId",void 0),di([ii({type:ro,defaultValue:new ro(Ys.unclassified)})],no.prototype,"classList",void 0),di([ii({type:io,repeated:"set"})],no.prototype,"securityCategories",void 0);class so{constructor(e={}){_defineProperty(this,"cotets",void 0),_defineProperty(this,"oid",void 0),_defineProperty(this,"string",void 0),Object.assign(this,e)}}di([ii({type:Br})],so.prototype,"cotets",void 0),di([ii({type:Sr.ObjectIdentifier})],so.prototype,"oid",void 0),di([ii({type:Sr.Utf8String})],so.prototype,"string",void 0);class oo{constructor(e={}){_defineProperty(this,"policyAuthority",void 0),_defineProperty(this,"values",[]),Object.assign(this,e)}}di([ii({type:Zi,implicit:!0,context:0,optional:!0})],oo.prototype,"policyAuthority",void 0),di([ii({type:so,repeated:"sequence"})],oo.prototype,"values",void 0);class ao{constructor(e={}){_defineProperty(this,"targetCertificate",new Fs),_defineProperty(this,"targetName",void 0),_defineProperty(this,"certDigestInfo",void 0),Object.assign(this,e)}}di([ii({type:Fs})],ao.prototype,"targetCertificate",void 0),di([ii({type:Ti,optional:!0})],ao.prototype,"targetName",void 0),di([ii({type:Ws,optional:!0})],ao.prototype,"certDigestInfo",void 0);let co=class{constructor(e={}){_defineProperty(this,"targetName",void 0),_defineProperty(this,"targetGroup",void 0),_defineProperty(this,"targetCert",void 0),Object.assign(this,e)}};di([ii({type:Ti,context:0,implicit:!0})],co.prototype,"targetName",void 0),di([ii({type:Ti,context:1,implicit:!0})],co.prototype,"targetGroup",void 0),di([ii({type:ao,context:2,implicit:!0})],co.prototype,"targetCert",void 0),co=di([ri({type:Ar.Choice})],co);let lo=Qs=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Qs.prototype)}};var uo;lo=Qs=di([ri({type:Ar.Sequence,itemType:co})],lo);let po=uo=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,uo.prototype)}};po=uo=di([ri({type:Ar.Sequence,itemType:lo})],po);class ho{constructor(e={}){_defineProperty(this,"roleAuthority",void 0),_defineProperty(this,"roleName",void 0),Object.assign(this,e)}}di([ii({type:Zi,implicit:!0,context:0,optional:!0})],ho.prototype,"roleAuthority",void 0),di([ii({type:Ti,implicit:!0,context:1})],ho.prototype,"roleName",void 0);class fo{constructor(e={}){_defineProperty(this,"service",new Ti),_defineProperty(this,"ident",new Ti),_defineProperty(this,"authInfo",void 0),Object.assign(this,e)}}var yo;di([ii({type:Ti})],fo.prototype,"service",void 0),di([ii({type:Ti})],fo.prototype,"ident",void 0),di([ii({type:Br,optional:!0})],fo.prototype,"authInfo",void 0);class go{constructor(e={}){_defineProperty(this,"otherCertFormat",""),_defineProperty(this,"otherCert",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],go.prototype,"otherCertFormat",void 0),di([ii({type:Sr.Any})],go.prototype,"otherCert",void 0);let vo=class{constructor(e={}){_defineProperty(this,"certificate",void 0),_defineProperty(this,"v2AttrCert",void 0),_defineProperty(this,"other",void 0),Object.assign(this,e)}};di([ii({type:As})],vo.prototype,"certificate",void 0),di([ii({type:to,context:2,implicit:!0})],vo.prototype,"v2AttrCert",void 0),di([ii({type:go,context:3,implicit:!0})],vo.prototype,"other",void 0),vo=di([ri({type:Ar.Choice})],vo);let mo=yo=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,yo.prototype)}};mo=yo=di([ri({type:Ar.Set,itemType:vo})],mo);class bo{constructor(e={}){_defineProperty(this,"contentType",""),_defineProperty(this,"content",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],bo.prototype,"contentType",void 0),di([ii({type:Sr.Any,context:0})],bo.prototype,"content",void 0);let wo=class{constructor(e={}){_defineProperty(this,"single",void 0),_defineProperty(this,"any",void 0),Object.assign(this,e)}};di([ii({type:Br})],wo.prototype,"single",void 0),di([ii({type:Sr.Any})],wo.prototype,"any",void 0),wo=di([ri({type:Ar.Choice})],wo);class Ao{constructor(e={}){_defineProperty(this,"eContentType",""),_defineProperty(this,"eContent",void 0),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],Ao.prototype,"eContentType",void 0),di([ii({type:wo,context:0,optional:!0})],Ao.prototype,"eContent",void 0);let So=class{constructor(e={}){_defineProperty(this,"value",void 0),_defineProperty(this,"constructedValue",void 0),Object.assign(this,e)}};di([ii({type:Br,context:0,implicit:!0,optional:!0})],So.prototype,"value",void 0),di([ii({type:Br,converter:_r,context:0,implicit:!0,optional:!0,repeated:"sequence"})],So.prototype,"constructedValue",void 0),So=di([ri({type:Ar.Choice})],So);class xo{constructor(e={}){_defineProperty(this,"contentType",""),_defineProperty(this,"contentEncryptionAlgorithm",new Is),_defineProperty(this,"encryptedContent",void 0),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],xo.prototype,"contentType",void 0),di([ii({type:Is})],xo.prototype,"contentEncryptionAlgorithm",void 0),di([ii({type:So,optional:!0})],xo.prototype,"encryptedContent",void 0);class Bo{constructor(e={}){_defineProperty(this,"keyAttrId",""),_defineProperty(this,"keyAttr",void 0),Object.assign(this,e)}}var ko;di([ii({type:Sr.ObjectIdentifier})],Bo.prototype,"keyAttrId",void 0),di([ii({type:Sr.Any,optional:!0})],Bo.prototype,"keyAttr",void 0);class Co{constructor(e={}){_defineProperty(this,"subjectKeyIdentifier",new ss),_defineProperty(this,"date",void 0),_defineProperty(this,"other",void 0),Object.assign(this,e)}}di([ii({type:ss})],Co.prototype,"subjectKeyIdentifier",void 0),di([ii({type:Sr.GeneralizedTime,optional:!0})],Co.prototype,"date",void 0),di([ii({type:Bo,optional:!0})],Co.prototype,"other",void 0);let Po=class{constructor(e={}){_defineProperty(this,"rKeyId",void 0),_defineProperty(this,"issuerAndSerialNumber",void 0),Object.assign(this,e)}};di([ii({type:Co,context:0,implicit:!0,optional:!0})],Po.prototype,"rKeyId",void 0),di([ii({type:ks,optional:!0})],Po.prototype,"issuerAndSerialNumber",void 0),Po=di([ri({type:Ar.Choice})],Po);class Eo{constructor(e={}){_defineProperty(this,"rid",new Po),_defineProperty(this,"encryptedKey",new Br),Object.assign(this,e)}}di([ii({type:Po})],Eo.prototype,"rid",void 0),di([ii({type:Br})],Eo.prototype,"encryptedKey",void 0);let Oo=ko=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,ko.prototype)}};Oo=ko=di([ri({type:Ar.Sequence,itemType:Eo})],Oo);class No{constructor(e={}){_defineProperty(this,"algorithm",new hs),_defineProperty(this,"publicKey",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:hs})],No.prototype,"algorithm",void 0),di([ii({type:Sr.BitString})],No.prototype,"publicKey",void 0);let Io=class{constructor(e={}){_defineProperty(this,"subjectKeyIdentifier",void 0),_defineProperty(this,"originatorKey",void 0),_defineProperty(this,"issuerAndSerialNumber",void 0),Object.assign(this,e)}};di([ii({type:ss,context:0,implicit:!0,optional:!0})],Io.prototype,"subjectKeyIdentifier",void 0),di([ii({type:No,context:1,implicit:!0,optional:!0})],Io.prototype,"originatorKey",void 0),di([ii({type:ks,optional:!0})],Io.prototype,"issuerAndSerialNumber",void 0),Io=di([ri({type:Ar.Choice})],Io);class To{constructor(e={}){_defineProperty(this,"version",Ps.v3),_defineProperty(this,"originator",new Io),_defineProperty(this,"ukm",void 0),_defineProperty(this,"keyEncryptionAlgorithm",new Ns),_defineProperty(this,"recipientEncryptedKeys",new Oo),Object.assign(this,e)}}di([ii({type:Sr.Integer})],To.prototype,"version",void 0),di([ii({type:Io,context:0})],To.prototype,"originator",void 0),di([ii({type:Br,context:1,optional:!0})],To.prototype,"ukm",void 0),di([ii({type:Ns})],To.prototype,"keyEncryptionAlgorithm",void 0),di([ii({type:Oo})],To.prototype,"recipientEncryptedKeys",void 0);let jo=class{constructor(e={}){_defineProperty(this,"subjectKeyIdentifier",void 0),_defineProperty(this,"issuerAndSerialNumber",void 0),Object.assign(this,e)}};di([ii({type:ss,context:0,implicit:!0})],jo.prototype,"subjectKeyIdentifier",void 0),di([ii({type:ks})],jo.prototype,"issuerAndSerialNumber",void 0),jo=di([ri({type:Ar.Choice})],jo);class _o{constructor(e={}){_defineProperty(this,"version",Ps.v0),_defineProperty(this,"rid",new jo),_defineProperty(this,"keyEncryptionAlgorithm",new Ns),_defineProperty(this,"encryptedKey",new Br),Object.assign(this,e)}}di([ii({type:Sr.Integer})],_o.prototype,"version",void 0),di([ii({type:jo})],_o.prototype,"rid",void 0),di([ii({type:Ns})],_o.prototype,"keyEncryptionAlgorithm",void 0),di([ii({type:Br})],_o.prototype,"encryptedKey",void 0);class Uo{constructor(e={}){_defineProperty(this,"keyIdentifier",new Br),_defineProperty(this,"date",void 0),_defineProperty(this,"other",void 0),Object.assign(this,e)}}di([ii({type:Br})],Uo.prototype,"keyIdentifier",void 0),di([ii({type:Sr.GeneralizedTime,optional:!0})],Uo.prototype,"date",void 0),di([ii({type:Bo,optional:!0})],Uo.prototype,"other",void 0);class Lo{constructor(e={}){_defineProperty(this,"version",Ps.v4),_defineProperty(this,"kekid",new Uo),_defineProperty(this,"keyEncryptionAlgorithm",new Ns),_defineProperty(this,"encryptedKey",new Br),Object.assign(this,e)}}di([ii({type:Sr.Integer})],Lo.prototype,"version",void 0),di([ii({type:Uo})],Lo.prototype,"kekid",void 0),di([ii({type:Ns})],Lo.prototype,"keyEncryptionAlgorithm",void 0),di([ii({type:Br})],Lo.prototype,"encryptedKey",void 0);class Do{constructor(e={}){_defineProperty(this,"version",Ps.v0),_defineProperty(this,"keyDerivationAlgorithm",void 0),_defineProperty(this,"keyEncryptionAlgorithm",new Ns),_defineProperty(this,"encryptedKey",new Br),Object.assign(this,e)}}di([ii({type:Sr.Integer})],Do.prototype,"version",void 0),di([ii({type:js,context:0,optional:!0})],Do.prototype,"keyDerivationAlgorithm",void 0),di([ii({type:Ns})],Do.prototype,"keyEncryptionAlgorithm",void 0),di([ii({type:Br})],Do.prototype,"encryptedKey",void 0);class Ro{constructor(e={}){_defineProperty(this,"oriType",""),_defineProperty(this,"oriValue",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],Ro.prototype,"oriType",void 0),di([ii({type:Sr.Any})],Ro.prototype,"oriValue",void 0);let Vo=class{constructor(e={}){_defineProperty(this,"ktri",void 0),_defineProperty(this,"kari",void 0),_defineProperty(this,"kekri",void 0),_defineProperty(this,"pwri",void 0),_defineProperty(this,"ori",void 0),Object.assign(this,e)}};var Ho;di([ii({type:_o,optional:!0})],Vo.prototype,"ktri",void 0),di([ii({type:To,context:1,implicit:!0,optional:!0})],Vo.prototype,"kari",void 0),di([ii({type:Lo,context:2,implicit:!0,optional:!0})],Vo.prototype,"kekri",void 0),di([ii({type:Do,context:3,implicit:!0,optional:!0})],Vo.prototype,"pwri",void 0),di([ii({type:Ro,context:4,implicit:!0,optional:!0})],Vo.prototype,"ori",void 0),Vo=di([ri({type:Ar.Choice})],Vo);let $o=Ho=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Ho.prototype)}};var Mo;$o=Ho=di([ri({type:Ar.Set,itemType:Vo})],$o);class Ko{constructor(e={}){_defineProperty(this,"otherRevInfoFormat",""),_defineProperty(this,"otherRevInfo",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],Ko.prototype,"otherRevInfoFormat",void 0),di([ii({type:Sr.Any})],Ko.prototype,"otherRevInfo",void 0);let Fo=class{constructor(e={}){_defineProperty(this,"other",new Ko),Object.assign(this,e)}};di([ii({type:Ko,context:1,implicit:!0})],Fo.prototype,"other",void 0),Fo=di([ri({type:Ar.Choice})],Fo);let zo=Mo=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Mo.prototype)}};zo=Mo=di([ri({type:Ar.Set,itemType:Fo})],zo);class Wo{constructor(e={}){_defineProperty(this,"certs",void 0),_defineProperty(this,"crls",void 0),Object.assign(this,e)}}var qo;di([ii({type:mo,context:0,implicit:!0,optional:!0})],Wo.prototype,"certs",void 0),di([ii({type:zo,context:1,implicit:!0,optional:!0})],Wo.prototype,"crls",void 0);let Go=qo=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,qo.prototype)}};Go=qo=di([ri({type:Ar.Set,itemType:_s})],Go);class Jo{constructor(e={}){_defineProperty(this,"version",Ps.v0),_defineProperty(this,"originatorInfo",void 0),_defineProperty(this,"recipientInfos",new $o),_defineProperty(this,"encryptedContentInfo",new xo),_defineProperty(this,"unprotectedAttrs",void 0),Object.assign(this,e)}}di([ii({type:Sr.Integer})],Jo.prototype,"version",void 0),di([ii({type:Wo,context:0,implicit:!0,optional:!0})],Jo.prototype,"originatorInfo",void 0),di([ii({type:$o})],Jo.prototype,"recipientInfos",void 0),di([ii({type:xo})],Jo.prototype,"encryptedContentInfo",void 0),di([ii({type:Go,context:1,implicit:!0,optional:!0})],Jo.prototype,"unprotectedAttrs",void 0);const Xo="1.2.840.113549.1.7.2";var Zo;let Yo=Zo=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Zo.prototype)}};Yo=Zo=di([ri({type:Ar.Set,itemType:Es})],Yo);class Qo{constructor(e={}){_defineProperty(this,"version",Ps.v0),_defineProperty(this,"digestAlgorithms",new Yo),_defineProperty(this,"encapContentInfo",new Ao),_defineProperty(this,"certificates",void 0),_defineProperty(this,"crls",void 0),_defineProperty(this,"signerInfos",new Ds),Object.assign(this,e)}}di([ii({type:Sr.Integer})],Qo.prototype,"version",void 0),di([ii({type:Yo})],Qo.prototype,"digestAlgorithms",void 0),di([ii({type:Ao})],Qo.prototype,"encapContentInfo",void 0),di([ii({type:mo,context:0,implicit:!0,optional:!0})],Qo.prototype,"certificates",void 0),di([ii({type:zo,context:1,implicit:!0,optional:!0})],Qo.prototype,"crls",void 0),di([ii({type:Ds})],Qo.prototype,"signerInfos",void 0);const ea="1.2.840.10045.2.1",ta="1.2.840.10045.4.1",ra="1.2.840.10045.4.3.1",ia="1.2.840.10045.4.3.2",na="1.2.840.10045.4.3.3",sa="1.2.840.10045.4.3.4",oa="1.2.840.10045.3.1.7",aa="1.3.132.0.34",ca="1.3.132.0.35";function la(e){return new hs({algorithm:e})}const ua=la(ta);la(ra);const pa=la(ia),ha=la(na),fa=la(sa);let da=class{constructor(e={}){_defineProperty(this,"fieldType",void 0),_defineProperty(this,"parameters",void 0),Object.assign(this,e)}};di([ii({type:Sr.ObjectIdentifier})],da.prototype,"fieldType",void 0),di([ii({type:Sr.Any})],da.prototype,"parameters",void 0),da=di([ri({type:Ar.Sequence})],da);let ya=class{constructor(e={}){_defineProperty(this,"a",void 0),_defineProperty(this,"b",void 0),_defineProperty(this,"seed",void 0),Object.assign(this,e)}};var ga;di([ii({type:Sr.OctetString})],ya.prototype,"a",void 0),di([ii({type:Sr.OctetString})],ya.prototype,"b",void 0),di([ii({type:Sr.BitString,optional:!0})],ya.prototype,"seed",void 0),ya=di([ri({type:Ar.Sequence})],ya),function(e){e[e.ecpVer1=1]="ecpVer1"}(ga||(ga={}));let va=class{constructor(e={}){_defineProperty(this,"version",ga.ecpVer1),_defineProperty(this,"fieldID",void 0),_defineProperty(this,"curve",void 0),_defineProperty(this,"base",void 0),_defineProperty(this,"order",void 0),_defineProperty(this,"cofactor",void 0),Object.assign(this,e)}};di([ii({type:Sr.Integer})],va.prototype,"version",void 0),di([ii({type:da})],va.prototype,"fieldID",void 0),di([ii({type:ya})],va.prototype,"curve",void 0),di([ii({type:class extends Br{}})],va.prototype,"base",void 0),di([ii({type:Sr.Integer,converter:Er})],va.prototype,"order",void 0),di([ii({type:Sr.Integer,optional:!0})],va.prototype,"cofactor",void 0),va=di([ri({type:Ar.Sequence})],va);let ma=class{constructor(e={}){_defineProperty(this,"namedCurve",void 0),_defineProperty(this,"implicitCurve",void 0),_defineProperty(this,"specifiedCurve",void 0),Object.assign(this,e)}};di([ii({type:Sr.ObjectIdentifier})],ma.prototype,"namedCurve",void 0),di([ii({type:Sr.Null})],ma.prototype,"implicitCurve",void 0),di([ii({type:va})],ma.prototype,"specifiedCurve",void 0),ma=di([ri({type:Ar.Choice})],ma);class ba{constructor(e={}){_defineProperty(this,"version",1),_defineProperty(this,"privateKey",new Br),_defineProperty(this,"parameters",void 0),_defineProperty(this,"publicKey",void 0),Object.assign(this,e)}}di([ii({type:Sr.Integer})],ba.prototype,"version",void 0),di([ii({type:Br})],ba.prototype,"privateKey",void 0),di([ii({type:ma,context:0,optional:!0})],ba.prototype,"parameters",void 0),di([ii({type:Sr.BitString,context:1,optional:!0})],ba.prototype,"publicKey",void 0);class wa{constructor(e={}){_defineProperty(this,"r",new ArrayBuffer(0)),_defineProperty(this,"s",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.Integer,converter:Er})],wa.prototype,"r",void 0),di([ii({type:Sr.Integer,converter:Er})],wa.prototype,"s",void 0);const Aa="1.2.840.113549.1.1",Sa=`${Aa}.1`,xa=`${Aa}.7`,Ba=`${Aa}.9`,ka=`${Aa}.10`,Ca=`${Aa}.2`,Pa=`${Aa}.4`,Ea=`${Aa}.5`,Oa=`${Aa}.14`,Na=`${Aa}.11`,Ia=`${Aa}.12`,Ta=`${Aa}.13`,ja=`${Aa}.15`,_a=`${Aa}.16`,Ua="1.3.14.3.2.26",La="2.16.840.1.101.3.4.2.4",Da="2.16.840.1.101.3.4.2.1",Ra="2.16.840.1.101.3.4.2.2",Va="2.16.840.1.101.3.4.2.3",Ha=`${Aa}.8`;function $a(e){return new hs({algorithm:e,parameters:null})}$a("1.2.840.113549.2.2"),$a("1.2.840.113549.2.5");const Ma=$a(Ua);$a(La),$a(Da),$a(Ra),$a(Va),$a("2.16.840.1.101.3.4.2.5"),$a("2.16.840.1.101.3.4.2.6");const Ka=new hs({algorithm:Ha,parameters:ci.serialize(Ma)}),Fa=new hs({algorithm:Ba,parameters:ci.serialize(jr.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});$a(Sa),$a(Ca),$a(Pa),$a(Ea),$a(ja),$a(_a),$a(Ia),$a(Ta),$a(ja),$a(_a);class za{constructor(e={}){_defineProperty(this,"hashAlgorithm",new hs(Ma)),_defineProperty(this,"maskGenAlgorithm",new hs({algorithm:Ha,parameters:ci.serialize(Ma)})),_defineProperty(this,"pSourceAlgorithm",new hs(Fa)),Object.assign(this,e)}}di([ii({type:hs,context:0,defaultValue:Ma})],za.prototype,"hashAlgorithm",void 0),di([ii({type:hs,context:1,defaultValue:Ka})],za.prototype,"maskGenAlgorithm",void 0),di([ii({type:hs,context:2,defaultValue:Fa})],za.prototype,"pSourceAlgorithm",void 0),new hs({algorithm:xa,parameters:ci.serialize(new za)});class Wa{constructor(e={}){_defineProperty(this,"hashAlgorithm",new hs(Ma)),_defineProperty(this,"maskGenAlgorithm",new hs({algorithm:Ha,parameters:ci.serialize(Ma)})),_defineProperty(this,"saltLength",20),_defineProperty(this,"trailerField",1),Object.assign(this,e)}}di([ii({type:hs,context:0,defaultValue:Ma})],Wa.prototype,"hashAlgorithm",void 0),di([ii({type:hs,context:1,defaultValue:Ka})],Wa.prototype,"maskGenAlgorithm",void 0),di([ii({type:Sr.Integer,context:2,defaultValue:20})],Wa.prototype,"saltLength",void 0),di([ii({type:Sr.Integer,context:3,defaultValue:1})],Wa.prototype,"trailerField",void 0),new hs({algorithm:ka,parameters:ci.serialize(new Wa)});class qa{constructor(e={}){_defineProperty(this,"digestAlgorithm",new hs),_defineProperty(this,"digest",new Br),Object.assign(this,e)}}var Ga;di([ii({type:hs})],qa.prototype,"digestAlgorithm",void 0),di([ii({type:Br})],qa.prototype,"digest",void 0);class Ja{constructor(e={}){_defineProperty(this,"prime",new ArrayBuffer(0)),_defineProperty(this,"exponent",new ArrayBuffer(0)),_defineProperty(this,"coefficient",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.Integer,converter:Er})],Ja.prototype,"prime",void 0),di([ii({type:Sr.Integer,converter:Er})],Ja.prototype,"exponent",void 0),di([ii({type:Sr.Integer,converter:Er})],Ja.prototype,"coefficient",void 0);let Xa=Ga=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Ga.prototype)}};Xa=Ga=di([ri({type:Ar.Sequence,itemType:Ja})],Xa);class Za{constructor(e={}){_defineProperty(this,"version",0),_defineProperty(this,"modulus",new ArrayBuffer(0)),_defineProperty(this,"publicExponent",new ArrayBuffer(0)),_defineProperty(this,"privateExponent",new ArrayBuffer(0)),_defineProperty(this,"prime1",new ArrayBuffer(0)),_defineProperty(this,"prime2",new ArrayBuffer(0)),_defineProperty(this,"exponent1",new ArrayBuffer(0)),_defineProperty(this,"exponent2",new ArrayBuffer(0)),_defineProperty(this,"coefficient",new ArrayBuffer(0)),_defineProperty(this,"otherPrimeInfos",void 0),Object.assign(this,e)}}di([ii({type:Sr.Integer})],Za.prototype,"version",void 0),di([ii({type:Sr.Integer,converter:Er})],Za.prototype,"modulus",void 0),di([ii({type:Sr.Integer,converter:Er})],Za.prototype,"publicExponent",void 0),di([ii({type:Sr.Integer,converter:Er})],Za.prototype,"privateExponent",void 0),di([ii({type:Sr.Integer,converter:Er})],Za.prototype,"prime1",void 0),di([ii({type:Sr.Integer,converter:Er})],Za.prototype,"prime2",void 0),di([ii({type:Sr.Integer,converter:Er})],Za.prototype,"exponent1",void 0),di([ii({type:Sr.Integer,converter:Er})],Za.prototype,"exponent2",void 0),di([ii({type:Sr.Integer,converter:Er})],Za.prototype,"coefficient",void 0),di([ii({type:Xa,optional:!0})],Za.prototype,"otherPrimeInfos",void 0);class Ya{constructor(e={}){_defineProperty(this,"modulus",new ArrayBuffer(0)),_defineProperty(this,"publicExponent",new ArrayBuffer(0)),Object.assign(this,e)}}var Qa;di([ii({type:Sr.Integer,converter:Er})],Ya.prototype,"modulus",void 0),di([ii({type:Sr.Integer,converter:Er})],Ya.prototype,"publicExponent",void 0),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(Qa||(Qa={}));var ec=Qa;function tc(e){return!!e.useClass}function rc(e){return!!e.useFactory}var ic=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var t,r=this,i=!1;return new Proxy({},this.createHandler(function(){return i||(t=e(r.wrap()),i=!0),t}))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach(function(r){t[r]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t[0]=e(),Reflect[r].apply(void 0,bi(t))}}),t},e}();function nc(e){return"string"==typeof e||"symbol"==typeof e}function sc(e){return"object"==typeof e&&"token"in e&&"transform"in e}function oc(e){return!!e.useToken}function ac(e){return null!=e.useValue}var cc=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t}(cc),uc=function(){this.scopedResolutions=new Map};function pc(e,t,r){var i,n,s=mi(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],o=function(e,t){return null===e?"at position #"+t:'"'+e.split(",")[t].trim()+'" at position #'+t}(void 0===s?null:s,t);return i="Cannot inject the dependency "+o+' of "'+e.name+'" constructor. Reason:',void 0===n&&(n=" "),bi([i],r.message.split("\n").map(function(e){return n+e})).join("\n")}var hc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t}(cc),fc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t}(cc),dc=function(){this.preResolution=new hc,this.postResolution=new fc},yc=new Map,gc=function(){function e(e){this.parent=e,this._registry=new lc,this.interceptors=new dc,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,t,r){var i;if(void 0===r&&(r={lifecycle:ec.Transient}),this.ensureNotDisposed(),i=function(e){return tc(e)||ac(e)||oc(e)||rc(e)}(t)?t:{useClass:t},oc(i))for(var n=[e],s=i;null!=s;){var o=s.useToken;if(n.includes(o))throw new Error("Token registration cycle detected! "+bi(n,[o]).join(" -> "));n.push(o);var a=this._registry.get(o);s=a&&oc(a.provider)?a.provider:null}if((r.lifecycle===ec.Singleton||r.lifecycle==ec.ContainerScoped||r.lifecycle==ec.ResolutionScoped)&&(ac(i)||rc(i)))throw new Error('Cannot use lifecycle "'+ec[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:i,options:r}),this},e.prototype.registerType=function(e,t){return this.ensureNotDisposed(),nc(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(this.ensureNotDisposed(),nc(e)){if(nc(t))return this.register(e,{useToken:t},{lifecycle:ec.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:ec.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=e;return t&&!nc(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:ec.Singleton})},e.prototype.resolve=function(e,t,r){void 0===t&&(t=new uc),void 0===r&&(r=!1),this.ensureNotDisposed();var i=this.getRegistration(e);if(!i&&nc(e)){if(r)return;throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"')}if(this.executePreResolutionInterceptor(e,"Single"),i){var n=this.resolveRegistration(i,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}if(function(e){return"function"==typeof e||e instanceof ic}(e)){n=this.construct(e,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,i;if(this.interceptors.preResolution.has(e)){var n=[];try{for(var s=vi(this.interceptors.preResolution.getAll(e)),o=s.next();!o.done;o=s.next()){var a=o.value;"Once"!=a.options.frequency&&n.push(a),a.callback(e,t)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,n)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var i,n;if(this.interceptors.postResolution.has(e)){var s=[];try{for(var o=vi(this.interceptors.postResolution.getAll(e)),a=o.next();!a.done;a=o.next()){var c=a.value;"Once"!=c.options.frequency&&s.push(c),c.callback(e,t,r)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}this.interceptors.postResolution.setAll(e,s)}},e.prototype.resolveRegistration=function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===ec.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,i=e.options.lifecycle===ec.Singleton,n=e.options.lifecycle===ec.ContainerScoped,s=i||n;return r=ac(e.provider)?e.provider.useValue:oc(e.provider)?s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):tc(e.provider)?s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):rc(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===ec.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t,r){var i=this;void 0===t&&(t=new uc),void 0===r&&(r=!1),this.ensureNotDisposed();var n=this.getAllRegistrations(e);if(!n&&nc(e)){if(r)return[];throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"')}if(this.executePreResolutionInterceptor(e,"All"),n){var s=n.map(function(e){return i.resolveRegistration(e,t)});return this.executePostResolutionInterceptor(e,s,"All"),s}var o=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,o,"All"),o},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;this.ensureNotDisposed();try{for(var r=vi(this._registry.entries()),i=r.next();!i.done;i=r.next()){var n=mi(i.value,2),s=n[0],o=n[1];this._registry.setAll(s,o.filter(function(e){return!ac(e.provider)}).map(function(e){return e.instance=void 0,e}))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var i=new e(this);try{for(var n=vi(this._registry.entries()),s=n.next();!s.done;s=n.next()){var o=mi(s.value,2),a=o[0],c=o[1];c.some(function(e){return e.options.lifecycle===ec.ContainerScoped})&&i._registry.setAll(a,c.map(function(e){return e.options.lifecycle===ec.ContainerScoped?{provider:e.provider,options:e.options}:e}))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return i},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.dispose=function(){return yi(this,void 0,void 0,function(){var e;return gi(this,function(t){switch(t.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach(function(t){var r=t.dispose();r&&e.push(r)}),[4,Promise.all(e)];case 1:return t.sent(),[2]}})})},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof ic)return e.createProxy(function(e){return r.resolve(e,t)});var i,n=function(){var i=yc.get(e);if(!i||0===i.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var n=i.map(r.resolveParams(t,e));return new(e.bind.apply(e,bi([void 0],n)))}();return"function"!=typeof(i=n).dispose||i.dispose.length>0||this.disposables.add(n),n},e.prototype.resolveParams=function(e,t){var r=this;return function(i,n){var s,o,a,c;try{return"object"==typeof(c=i)&&"token"in c&&"multiple"in c?sc(i)?i.multiple?(s=r.resolve(i.transform)).transform.apply(s,bi([r.resolveAll(i.token,new uc,i.isOptional)],i.transformArgs)):(o=r.resolve(i.transform)).transform.apply(o,bi([r.resolve(i.token,e,i.isOptional)],i.transformArgs)):i.multiple?r.resolveAll(i.token,new uc,i.isOptional):r.resolve(i.token,e,i.isOptional):sc(i)?(a=r.resolve(i.transform,e)).transform.apply(a,bi([r.resolve(i.token,e)],i.transformArgs)):r.resolve(i,e)}catch(e){throw new Error(pc(t,n,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),vc=new gc;function mc(e){return function(e){yc.set(e,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata("injectionTokens",e)||{};return Object.keys(r).forEach(function(e){t[+e]=r[e]}),t}(e))}}if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");const bc="crypto.algorithm";class wc{getAlgorithms(){return vc.resolveAll(bc)}toAsnAlgorithm(e){const t={...e};t.hash&&"string"==typeof t.hash&&(t.hash={name:t.hash});for(const e of this.getAlgorithms()){const r=e.toAsnAlgorithm(t);if(r)return r}if(/^[0-9.]+$/.test(e.name)){const t=new hs({algorithm:e.name});if("parameters"in e){const r=e;t.parameters=r.parameters}return t}throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm")}toWebAlgorithm(e){for(const t of this.getAlgorithms()){const r=t.toWebAlgorithm(e);if(r)return r}return{name:e.algorithm,parameters:e.parameters}}}const Ac="crypto.algorithmProvider";var Sc;vc.registerSingleton(Ac,wc);const xc="1.3.36.3.3.2.8.1.1",Bc=`${xc}.1`,kc=`${xc}.2`,Cc=`${xc}.3`,Pc=`${xc}.4`,Ec=`${xc}.5`,Oc=`${xc}.6`,Nc=`${xc}.7`,Ic=`${xc}.8`,Tc=`${xc}.9`,jc=`${xc}.10`,_c=`${xc}.11`,Uc=`${xc}.12`,Lc=`${xc}.13`,Dc=`${xc}.14`,Rc="brainpoolP160r1",Vc="brainpoolP160t1",Hc="brainpoolP192r1",$c="brainpoolP192t1",Mc="brainpoolP224r1",Kc="brainpoolP224t1",Fc="brainpoolP256r1",zc="brainpoolP256t1",Wc="brainpoolP320r1",qc="brainpoolP320t1",Gc="brainpoolP384r1",Jc="brainpoolP384t1",Xc="brainpoolP512r1",Zc="brainpoolP512t1",Yc="ECDSA";e.EcAlgorithm=Sc=class{toAsnAlgorithm(e){if(e.name.toLowerCase()===Yc.toLowerCase())if("hash"in e){switch(("string"==typeof e.hash?e.hash:e.hash.name).toLowerCase()){case"sha-1":return ua;case"sha-256":return pa;case"sha-384":return ha;case"sha-512":return fa}}else if("namedCurve"in e){let t="";switch(e.namedCurve){case"P-256":t=oa;break;case"K-256":t=Sc.SECP256K1;break;case"P-384":t=aa;break;case"P-521":t=ca;break;case Rc:t=Bc;break;case Vc:t=kc;break;case Hc:t=Cc;break;case $c:t=Pc;break;case Mc:t=Ec;break;case Kc:t=Oc;break;case Fc:t=Nc;break;case zc:t=Ic;break;case Wc:t=Tc;break;case qc:t=jc;break;case Gc:t=_c;break;case Jc:t=Uc;break;case Xc:t=Lc;break;case Zc:t=Dc}if(t)return new hs({algorithm:ea,parameters:ci.serialize(new ma({namedCurve:t}))})}return null}toWebAlgorithm(e){switch(e.algorithm){case ta:return{name:Yc,hash:{name:"SHA-1"}};case ia:return{name:Yc,hash:{name:"SHA-256"}};case na:return{name:Yc,hash:{name:"SHA-384"}};case sa:return{name:Yc,hash:{name:"SHA-512"}};case ea:if(!e.parameters)throw new TypeError("Cannot get required parameters from EC algorithm");switch(ci.parse(e.parameters,ma).namedCurve){case oa:return{name:Yc,namedCurve:"P-256"};case Sc.SECP256K1:return{name:Yc,namedCurve:"K-256"};case aa:return{name:Yc,namedCurve:"P-384"};case ca:return{name:Yc,namedCurve:"P-521"};case Bc:return{name:Yc,namedCurve:Rc};case kc:return{name:Yc,namedCurve:Vc};case Cc:return{name:Yc,namedCurve:Hc};case Pc:return{name:Yc,namedCurve:$c};case Ec:return{name:Yc,namedCurve:Mc};case Oc:return{name:Yc,namedCurve:Kc};case Nc:return{name:Yc,namedCurve:Fc};case Ic:return{name:Yc,namedCurve:zc};case Tc:return{name:Yc,namedCurve:Wc};case jc:return{name:Yc,namedCurve:qc};case _c:return{name:Yc,namedCurve:Gc};case Uc:return{name:Yc,namedCurve:Jc};case Lc:return{name:Yc,namedCurve:Xc};case Dc:return{name:Yc,namedCurve:Zc}}}return null}},e.EcAlgorithm.SECP256K1="1.3.132.0.10",e.EcAlgorithm=Sc=di([mc()],e.EcAlgorithm),vc.registerSingleton(bc,e.EcAlgorithm);const Qc=Symbol("name"),el=Symbol("value");class tl{constructor(e,t={},r=""){this[Qc]=e,this[el]=r;for(const e in t)this[e]=t[e]}}tl.NAME=Qc,tl.VALUE=el;class rl{static toTextObject(t){const r=new tl("Algorithm Identifier",{},il.toString(t.algorithm));if(t.parameters)switch(t.algorithm){case ea:{const i=(new e.EcAlgorithm).toWebAlgorithm(t);i&&"namedCurve"in i?r["Named Curve"]=i.namedCurve:r.Parameters=t.parameters;break}default:r.Parameters=t.parameters}return r}}class il{static toString(e){const t=this.items[e];return t||e}}il.items={[Ua]:"sha1",[La]:"sha224",[Da]:"sha256",[Ra]:"sha384",[Va]:"sha512",[Sa]:"rsaEncryption",[Ea]:"sha1WithRSAEncryption",[Oa]:"sha224WithRSAEncryption",[Na]:"sha256WithRSAEncryption",[Ia]:"sha384WithRSAEncryption",[Ta]:"sha512WithRSAEncryption",[ea]:"ecPublicKey",[ta]:"ecdsaWithSHA1",[ra]:"ecdsaWithSHA224",[ia]:"ecdsaWithSHA256",[na]:"ecdsaWithSHA384",[sa]:"ecdsaWithSHA512",[On]:"TLS WWW server authentication",[Nn]:"TLS WWW client authentication",[In]:"Code Signing",[Tn]:"E-mail Protection",[jn]:"Time Stamping",[_n]:"OCSP Signing",[Xo]:"Signed Data"};class nl{static serialize(e){return this.serializeObj(e).join("\n")}static pad(e=0){return"".padStart(2*e," ")}static serializeObj(e,t=0){const i=[];let n=this.pad(t++),s="";const o=e[tl.VALUE];o&&(s=` ${o}`),i.push(`${n}${e[tl.NAME]}:${s}`),n=this.pad(t);for(const s in e){if("symbol"==typeof s)continue;const o=e[s],a=s?`${s}: `:"";if("string"==typeof o||"number"==typeof o||"boolean"==typeof o)i.push(`${n}${a}${o}`);else if(o instanceof Date)i.push(`${n}${a}${o.toUTCString()}`);else if(Array.isArray(o))for(const e of o)e[tl.NAME]=s,i.push(...this.serializeObj(e,t));else if(o instanceof tl)o[tl.NAME]=s,i.push(...this.serializeObj(o,t));else if(r.isBufferSource(o))s?(i.push(`${n}${a}`),i.push(...this.serializeBufferSource(o,t+1))):i.push(...this.serializeBufferSource(o,t));else{if(!("toTextObject"in o))throw new TypeError("Cannot serialize data in text format. Unsupported type.");{const e=o.toTextObject();e[tl.NAME]=s,i.push(...this.serializeObj(e,t))}}}return i}static serializeBufferSource(e,t=0){const i=this.pad(t),n=r.toUint8Array(e),s=[];for(let e=0;e<n.length;){const t=[];for(let r=0;r<16&&e<n.length;r++){8===r&&t.push("");const i=n[e++].toString(16).padStart(2,"0");t.push(i)}s.push(`${i}${t.join(" ")}`)}return s}static serializeAlgorithm(e){return this.algorithmSerializer.toTextObject(e)}}var sl,ol,al;nl.oidSerializer=il,nl.algorithmSerializer=rl;class cl{get parseOptions(){return wi(this,ol,"f")}get rawData(){return wi(this,sl,"f")||Ai(this,sl,ci.serialize(this.asn),"f"),wi(this,sl,"f")}constructor(...e){sl.set(this,void 0),ol.set(this,void 0),r.isBufferSource(e[0])?(Ai(this,ol,e[2],"f"),this.asn=ci.parse(e[0],e[1],e[2]),Ai(this,sl,r.toArrayBuffer(e[0]),"f"),this.onInit(this.asn)):(Ai(this,ol,e[1],"f"),this.asn=e[0],this.onInit(this.asn))}equal(e){return e instanceof cl&&u(e.rawData,this.rawData)}toString(e="text"){switch(e){case"asn":return ci.toString(this.rawData,wi(this,ol,"f"));case"text":return nl.serialize(this.toTextObject());case"hex":return l.ToHex(this.rawData);case"base64":return l.ToBase64(this.rawData);case"base64url":return l.ToBase64Url(this.rawData);default:throw TypeError("Argument 'format' is unsupported value")}}getTextName(){return this.constructor.NAME}toTextObject(){const e=this.toTextObjectEmpty();return e[""]=this.rawData,e}toTextObjectEmpty(e){return new tl(this.getTextName(),{},e)}}sl=new WeakMap,ol=new WeakMap,cl.NAME="ASN";class ll extends cl{constructor(...e){let t,i;r.isBufferSource(e[0])?(t=r.toArrayBuffer(e[0]),i=e[1]):t=ci.serialize(new vs({extnID:e[0],critical:e[1],extnValue:new Br(r.toArrayBuffer(e[2]))})),super(t,vs,i)}onInit(e){this.type=e.extnID,this.critical=e.critical,this.value=e.extnValue.buffer}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.value,e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty(this.critical?"critical":void 0);return e[tl.NAME]===ll.NAME&&(e[tl.NAME]=il.toString(this.type)),e}}class ul{static isCryptoKeyPair(e){return e&&e.privateKey&&e.publicKey}static isCryptoKey(e){return e&&e.usages&&e.type&&e.algorithm&&void 0!==e.extractable}constructor(){this.items=new Map,this[al]="CryptoProvider","undefined"!=typeof self&&"undefined"!=typeof crypto?this.set(ul.DEFAULT,crypto):"undefined"!=typeof global&&global.crypto&&global.crypto.subtle&&this.set(ul.DEFAULT,global.crypto)}clear(){this.items.clear()}delete(e){return this.items.delete(e)}forEach(e,t){return this.items.forEach(e,t)}has(e){return this.items.has(e)}get size(){return this.items.size}entries(){return this.items.entries()}keys(){return this.items.keys()}values(){return this.items.values()}[Symbol.iterator](){return this.items[Symbol.iterator]()}get(e=ul.DEFAULT){const t=this.items.get(e.toLowerCase());if(!t)throw new Error(`Cannot get Crypto by name '${e}'`);return t}set(e,t){if("string"==typeof e){if(!t)throw new TypeError("Argument 'value' is required");this.items.set(e.toLowerCase(),t)}else this.items.set(ul.DEFAULT,e);return this}}al=Symbol.toStringTag,ul.DEFAULT="default";const pl=new ul,hl=/^[0-2](?:\.[1-9][0-9]*)+$/;class fl{constructor(e={}){this.items={};for(const t in e)this.register(t,e[t])}get(e){return this.items[e]||null}findId(e){return t=e,new RegExp(hl).test(t)?e:this.get(e);var t}register(e,t){this.items[e]=t,this.items[t]=e}}const dl=new fl;function yl(e,t){return`\\${l.ToHex(l.FromUtf8String(t)).toUpperCase()}`}dl.register("CN","2.5.4.3"),dl.register("L","2.5.4.7"),dl.register("ST","2.5.4.8"),dl.register("O","2.5.4.10"),dl.register("OU","2.5.4.11"),dl.register("C","2.5.4.6"),dl.register("DC","0.9.2342.19200300.100.1.25"),dl.register("E","1.2.840.113549.1.9.1"),dl.register("G","2.5.4.42"),dl.register("I","2.5.4.43"),dl.register("SN","2.5.4.4"),dl.register("T","2.5.4.12");class gl{static isASCII(e){for(let t=0;t<e.length;t++){if(e.charCodeAt(t)>255)return!1}return!0}static isPrintableString(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e)}constructor(e,t={}){this.extraNames=new fl,this.asn=new Ei;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];this.extraNames.register(e,r)}"string"==typeof e?this.asn=this.fromString(e):e instanceof Ei?this.asn=e:r.isBufferSource(e)?this.asn=ci.parse(e,Ei):this.asn=this.fromJSON(e)}getField(e){const t=this.extraNames.findId(e)||dl.findId(e),r=[];for(const e of this.asn)for(const i of e)i.type===t&&r.push(i.value.toString());return r}getName(e){return this.extraNames.get(e)||dl.get(e)}toString(){return this.asn.map(e=>e.map(e=>`${this.getName(e.type)||e.type}=${e.value.anyValue?`#${l.ToHex(e.value.anyValue)}`:e.value.toString().replace(/([,+"\\<>;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,yl)}`).join("+")).join(", ")}toJSON(){var e;const t=[];for(const r of this.asn){const i={};for(const t of r){const r=this.getName(t.type)||t.type;null!==(e=i[r])&&void 0!==e||(i[r]=[]),i[r].push(t.value.anyValue?`#${l.ToHex(t.value.anyValue)}`:t.value.toString())}t.push(i)}return t}fromString(e){const t=new Ei,r=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+"\\](?=[,+]|$))|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;let i=null,n=",";for(;i=r.exec(`${e},`);){let[,e,r]=i;const s=r[r.length-1];","!==s&&"+"!==s||(r=r.slice(0,r.length-1),i[3]=s);const o=i[3];e=this.getTypeOid(e);const a=this.createAttribute(e,r);"+"===n?t[t.length-1].push(a):t.push(new Ci([a])),n=o}return t}fromJSON(e){const t=new Ei;for(const r of e){const e=new Ci;for(const t in r){const i=this.getTypeOid(t),n=r[t];for(const t of n){const r=this.createAttribute(i,t);e.push(r)}}t.push(e)}return t}getTypeOid(e){if(/[\d.]+/.test(e)||(e=this.getName(e)||""),!e)throw new Error(`Cannot get OID for name type '${e}'`);return e}createAttribute(e,t){const r=new ki({type:e});if("object"==typeof t)for(const e in t)switch(e){case"ia5String":r.value.ia5String=t[e];break;case"utf8String":r.value.utf8String=t[e];break;case"universalString":r.value.universalString=t[e];break;case"bmpString":r.value.bmpString=t[e];break;case"printableString":r.value.printableString=t[e]}else if("#"===t[0])r.value.anyValue=l.FromHex(t.slice(1));else{const i=this.processStringValue(t);e===this.getName("E")||e===this.getName("DC")?r.value.ia5String=i:gl.isPrintableString(i)?r.value.printableString=i:r.value.utf8String=i}return r}processStringValue(e){const t=/"(.*?[^\\])?"/.exec(e);return t&&(e=t[1]),e.replace(/\\0a/gi,"\n").replace(/\\0d/gi,"\r").replace(/\\0g/gi,"\t").replace(/\\(.)/g,"$1")}toArrayBuffer(){return ci.serialize(this.asn)}async getThumbprint(e,t){let r,i="SHA-1";return e&&("object"==typeof e&&"subtle"in e?r=e:(i=e,r=t)),null!=r||(r=pl.get()),await r.subtle.digest(i,this.toArrayBuffer())}}const vl="Cannot initialize GeneralName from ASN.1 data.",ml=`${vl} Unsupported string format in use.`,bl=`${vl} Value doesn't match to GUID regular expression.`,wl=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i,Al="1.3.6.1.4.1.311.25.1",Sl="1.3.6.1.4.1.311.20.2.3",xl="dns",Bl="dn",kl="email",Cl="ip",Pl="url",El="guid",Ol="upn",Nl="id";class Il extends cl{constructor(...e){let t;if(2===e.length)switch(e[0]){case Bl:{const r=new gl(e[1]).toArrayBuffer(),i=ci.parse(r,Ei);t=new Ti({directoryName:i});break}case xl:t=new Ti({dNSName:e[1]});break;case kl:t=new Ti({rfc822Name:e[1]});break;case El:{const r=new RegExp(wl,"i").exec(e[1]);if(!r)throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");const i=r.slice(1).map((e,t)=>t<3?l.ToHex(new Uint8Array(l.FromHex(e)).reverse()):e).join("");t=new Ti({otherName:new Ni({typeId:Al,value:ci.serialize(new Br(l.FromHex(i)))})});break}case Cl:t=new Ti({iPAddress:e[1]});break;case Nl:t=new Ti({registeredID:e[1]});break;case Ol:t=new Ti({otherName:new Ni({typeId:Sl,value:ci.serialize(Lr.toASN(e[1]))})});break;case Pl:t=new Ti({uniformResourceIdentifier:e[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}else t=r.isBufferSource(e[0])?ci.parse(e[0],Ti):e[0];super(t)}onInit(e){if(null!=e.dNSName)this.type=xl,this.value=e.dNSName;else if(null!=e.rfc822Name)this.type=kl,this.value=e.rfc822Name;else if(null!=e.iPAddress)this.type=Cl,this.value=e.iPAddress;else if(null!=e.uniformResourceIdentifier)this.type=Pl,this.value=e.uniformResourceIdentifier;else if(null!=e.registeredID)this.type=Nl,this.value=e.registeredID;else if(null!=e.directoryName)this.type=Bl,this.value=new gl(e.directoryName).toString();else{if(null==e.otherName)throw new Error(ml);if(e.otherName.typeId===Al){this.type=El;const t=ci.parse(e.otherName.value,Br),r=new RegExp(wl,"i").exec(l.ToHex(t));if(!r)throw new Error(bl);this.value=r.slice(1).map((e,t)=>t<3?l.ToHex(new Uint8Array(l.FromHex(e)).reverse()):e).join("-")}else{if(e.otherName.typeId!==Sl)throw new Error(ml);this.type=Ol,this.value=ci.parse(e.otherName.value,xi).toString()}}}toJSON(){return{type:this.type,value:this.value}}toTextObject(){let e;switch(this.type){case Bl:case xl:case El:case Cl:case Nl:case Ol:case Pl:e=this.type.toUpperCase();break;case kl:e="Email";break;default:throw new Error("Unsupported GeneralName type")}let t=this.value;return this.type===Nl&&(t=il.toString(t)),new tl(e,void 0,t)}}class Tl extends cl{constructor(e){let t;if(e instanceof Zi)t=e;else if(Array.isArray(e)){const r=[];for(const t of e)if(t instanceof Ti)r.push(t);else{const e=ci.parse(new Il(t.type,t.value).rawData,Ti);r.push(e)}t=new Zi(r)}else{if(!r.isBufferSource(e))throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");t=ci.parse(e,Zi)}super(t)}onInit(e){const t=[];for(const r of e){let e=null;try{e=new Il(r)}catch(e){continue}t.push(e)}this.items=t}toJSON(){return this.items.map(e=>e.toJSON())}toTextObject(){const e=super.toTextObjectEmpty();for(const t of this.items){const r=t.toTextObject();let i=e[r[tl.NAME]];Array.isArray(i)||(i=[],e[r[tl.NAME]]=i),i.push(r)}return e}}Tl.NAME="GeneralNames";const jl="-{5}",_l="\\n",Ul="\\n",Ll=`${`${jl}BEGIN (${`[^${_l}]+`}(?=${jl}))${jl}`}${Ul}(?:((?:${`[^:${_l}]+`}: ${`(?:[^${_l}]+${Ul}(?: +[^${_l}]+${Ul})*)`})+))?${Ul}?(${`(?:[a-zA-Z0-9=+/]+${Ul})+`})${`${jl}END \\1${jl}`}`,Dl=new RegExp(`[${_l}]+`,"g");class Rl{static isPem(e){return"string"==typeof e&&new RegExp(Ll,"g").test(e.replace(/\r/g,""))}static decodeWithHeaders(e){e=e.replace(/\r/g,"");const t=new RegExp(Ll,"g"),r=[];let i=null;for(;i=t.exec(e);){const e=i[3].replace(Dl,""),t={type:i[1],headers:[],rawData:l.FromBase64(e)},n=i[2];if(n){const e=n.split(new RegExp(Ul,"g"));let r=null;for(const i of e){const[e,n]=i.split(/:(.*)/);if(void 0===n){if(!r)throw new Error("Cannot parse PEM string. Incorrect header value");r.value+=e.trim()}else r&&t.headers.push(r),r={key:e,value:n.trim()}}r&&t.headers.push(r)}r.push(t)}return r}static decode(e){return this.decodeWithHeaders(e).map(e=>e.rawData)}static decodeFirst(e){const t=this.decode(e);if(!t.length)throw new RangeError("PEM string doesn't contain any objects");return t[0]}static encode(e,t){if(Array.isArray(e)){const i=new Array;return t?e.forEach(e=>{if(!r.isBufferSource(e))throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");i.push(this.encodeStruct({type:t,rawData:r.toArrayBuffer(e)}))}):e.forEach(e=>{if(!("type"in e))throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut");i.push(this.encodeStruct(e))}),i.join("\n")}if(!t)throw new Error("Required argument 'tag' is missed");return this.encodeStruct({type:t,rawData:r.toArrayBuffer(e)})}static encodeStruct(e){var t;const r=e.type.toLocaleUpperCase(),i=[];if(i.push(`-----BEGIN ${r}-----`),null===(t=e.headers)||void 0===t?void 0:t.length){for(const t of e.headers)i.push(`${t.key}: ${t.value}`);i.push("")}const n=l.ToBase64(e.rawData);for(let e=0;e<n.length;e+=64)i.push(n.substring(e,e+64));return i.push(`-----END ${r}-----`),i.join("\n")}}Rl.CertificateTag="CERTIFICATE",Rl.CrlTag="CRL",Rl.CertificateRequestTag="CERTIFICATE REQUEST",Rl.PublicKeyTag="PUBLIC KEY",Rl.PrivateKeyTag="PRIVATE KEY";class Vl extends cl{static isAsnEncoded(e){return r.isBufferSource(e)||"string"==typeof e}static toArrayBuffer(e){if("string"==typeof e){if(Rl.isPem(e))return Rl.decode(e)[0];if(l.isHex(e))return l.FromHex(e);if(l.isBase64(e))return l.FromBase64(e);if(l.isBase64Url(e))return l.FromBase64Url(e);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}{const t=r.toUint8Array(e);if(t.length>0&&48===t[0])return r.toArrayBuffer(e);const i=l.ToBinary(e);if(Rl.isPem(i))return Rl.decode(i)[0];if(l.isHex(i))return l.FromHex(i);if(l.isBase64(i))return l.FromBase64(i);if(l.isBase64Url(i))return l.FromBase64Url(i);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}}constructor(...e){Vl.isAsnEncoded(e[0])?super(Vl.toArrayBuffer(e[0]),e[1],e[2]):super(e[0],e[1])}toString(e="pem"){return"pem"===e?Rl.encode(this.rawData,this.tag):super.toString(e)}}class Hl extends Vl{static async create(e,t=pl.get()){if(e instanceof Hl)return e;if(ul.isCryptoKey(e)){if("public"!==e.type)throw new TypeError("Public key is required");const r=await t.subtle.exportKey("spki",e);return new Hl(r)}if(e.publicKey)return e.publicKey;if(r.isBufferSource(e))return new Hl(e);throw new TypeError("Unsupported PublicKeyType")}constructor(e,t){Vl.isAsnEncoded(e)?super(e,fs,t):super(e,t),this.tag=Rl.PublicKeyTag}async export(e,t,r){let i,n=["verify"],s={hash:"SHA-256",...this.algorithm};t?(s=e,n=t,i=r):i=e,null!=i||(i=pl.get());let o=this.rawData;const a=ci.parse(this.rawData,fs,this.parseOptions);return a.algorithm.algorithm===ka&&(o=function(e,t){return e.algorithm=new hs({algorithm:Sa,parameters:null}),t=ci.serialize(e),t}(a,o)),i.subtle.importKey("spki",o,s,!0,n)}onInit(e){const t=vc.resolve(Ac),i=this.algorithm=t.toWebAlgorithm(e.algorithm);switch(e.algorithm.algorithm){case Sa:{const t=ci.parse(e.subjectPublicKey,Ya,this.parseOptions),n=r.toUint8Array(t.modulus);i.publicExponent=r.toUint8Array(t.publicExponent),i.modulusLength=(n[0]?n:n.slice(1)).byteLength<<3;break}}}async getThumbprint(e,t){let r,i="SHA-1";return e&&("object"==typeof e&&"subtle"in e?r=e:(i=e,r=t)),null!=r||(r=pl.get()),await r.subtle.digest(i,this.rawData)}async getKeyIdentifier(e,t){let r,i="SHA-1";e&&("object"==typeof e&&"subtle"in e?r=e:(i=e,r=t)),null!=r||(r=pl.get());const n=ci.parse(this.rawData,fs,this.parseOptions);return await r.subtle.digest(i,n.subjectPublicKey)}toTextObject(){const e=this.toTextObjectEmpty(),t=ci.parse(this.rawData,fs,this.parseOptions);if(e.Algorithm=nl.serializeAlgorithm(t.algorithm),t.algorithm.algorithm===ea)e["EC Point"]=t.subjectPublicKey;else e["Raw Data"]=t.subjectPublicKey;return e}}class $l extends ll{static async create(e,t=!1,r=pl.get()){if("name"in e&&"serialNumber"in e)return new $l(e,t);const i=await Hl.create(e,r),n=await i.getKeyIdentifier(r);return new $l(l.ToHex(n),t)}constructor(...e){if(r.isBufferSource(e[0]))super(e[0],e[1]);else if("string"==typeof e[0]){const t=new qi({keyIdentifier:new Wi(l.FromHex(e[0]))});super(zi,e[1],ci.serialize(t))}else{const t=e[0],r=t.name instanceof Tl?ci.parse(t.name.rawData,Zi):t.name,i=new qi({authorityCertIssuer:r,authorityCertSerialNumber:l.FromHex(t.serialNumber)});super(zi,e[1],ci.serialize(i))}}onInit(e){super.onInit(e);const t=ci.parse(e.extnValue,qi,this.parseOptions);t.keyIdentifier&&(this.keyId=l.ToHex(t.keyIdentifier)),(t.authorityCertIssuer||t.authorityCertSerialNumber)&&(this.certId={name:t.authorityCertIssuer||[],serialNumber:t.authorityCertSerialNumber?l.ToHex(t.authorityCertSerialNumber):""})}toTextObject(){const e=this.toTextObjectWithoutValue(),t=ci.parse(this.value,qi,this.parseOptions);return t.authorityCertIssuer&&(e["Authority Issuer"]=new Tl(t.authorityCertIssuer).toTextObject()),t.authorityCertSerialNumber&&(e["Authority Serial Number"]=t.authorityCertSerialNumber),t.keyIdentifier&&(e[""]=t.keyIdentifier),e}}$l.NAME="Authority Key Identifier";class Ml extends ll{constructor(...e){if(r.isBufferSource(e[0])){super(e[0],e[1]);const t=ci.parse(this.value,Ji,this.parseOptions);this.ca=t.cA,this.pathLength=t.pathLenConstraint}else{const t=new Ji({cA:e[0],pathLenConstraint:e[1]});super(Gi,e[2],ci.serialize(t)),this.ca=e[0],this.pathLength=e[1]}}toTextObject(){const e=this.toTextObjectWithoutValue();return this.ca&&(e.CA=this.ca),void 0!==this.pathLength&&(e["Path Length"]=this.pathLength),e}}Ml.NAME="Basic Constraints",e.ExtendedKeyUsage=void 0,function(e){e.serverAuth="1.3.6.1.5.5.7.3.1",e.clientAuth="1.3.6.1.5.5.7.3.2",e.codeSigning="1.3.6.1.5.5.7.3.3",e.emailProtection="1.3.6.1.5.5.7.3.4",e.timeStamping="1.3.6.1.5.5.7.3.8",e.ocspSigning="1.3.6.1.5.5.7.3.9"}(e.ExtendedKeyUsage||(e.ExtendedKeyUsage={}));class Kl extends ll{constructor(...e){if(r.isBufferSource(e[0])){super(e[0],e[1]);const t=ci.parse(this.value,En,this.parseOptions);this.usages=t.map(e=>e)}else{const t=new En(e[0]);super(Pn,e[1],ci.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.usages.map(e=>il.toString(e)).join(", "),e}}Kl.NAME="Extended Key Usages",e.KeyUsageFlags=void 0,function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(e.KeyUsageFlags||(e.KeyUsageFlags={}));class Fl extends ll{constructor(...e){if(r.isBufferSource(e[0])){super(e[0],e[1]);const t=ci.parse(this.value,Fn,this.parseOptions);this.usages=t.toNumber()}else{const t=new Fn(e[0]);super($n,e[1],ci.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=ci.parse(this.value,Fn,this.parseOptions);return e[""]=t.toJSON().join(", "),e}}Fl.NAME="Key Usages";class zl extends ll{static async create(e,t=!1,r=pl.get()){const i=await Hl.create(e,r),n=await i.getKeyIdentifier(r);return new zl(l.ToHex(n),t)}constructor(...e){if(r.isBufferSource(e[0])){super(e[0],e[1]);const t=ci.parse(this.value,ss,this.parseOptions);this.keyId=l.ToHex(t)}else{const t="string"==typeof e[0]?l.FromHex(e[0]):e[0],r=new ss(t);super(ns,e[1],ci.serialize(r)),this.keyId=l.ToHex(t)}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=ci.parse(this.value,ss,this.parseOptions);return e[""]=t,e}}zl.NAME="Subject Key Identifier";class Wl extends ll{constructor(...e){r.isBufferSource(e[0])?super(e[0],e[1]):super(Qn,e[1],new Tl(e[0]||[]).rawData)}onInit(e){super.onInit(e);const t=ci.parse(e.extnValue,es,this.parseOptions);this.names=new Tl(t)}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(const r in t)e[r]=t[r];return e}}Wl.NAME="Subject Alternative Name";class ql{static register(e,t){this.items.set(e,t)}static create(e,t){const r=new ll(e,t),i=this.items.get(r.type);return i?new i(e,t):r}}ql.items=new Map;class Gl extends ll{constructor(...e){var t;if(r.isBufferSource(e[0])){super(e[0],e[1]);const t=ci.parse(this.value,un,this.parseOptions);this.policies=t.map(e=>e.policyIdentifier)}else{const r=e[0],i=null!==(t=e[1])&&void 0!==t&&t,n=new un(r.map(e=>new ln({policyIdentifier:e})));super(rn,i,ci.serialize(n)),this.policies=r}}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Policy=this.policies.map(e=>new tl("",{},il.toString(e))),e}}Gl.NAME="Certificate Policies",ql.register(rn,Gl);class Jl extends ll{constructor(...e){var t;if(r.isBufferSource(e[0]))super(e[0],e[1]);else if(Array.isArray(e[0])&&"string"==typeof e[0][0]){const t=e[0].map(e=>new mn({distributionPoint:new vn({fullName:[new Ti({uniformResourceIdentifier:e})]})})),r=new bn(t);super(dn,e[1],ci.serialize(r))}else{const t=new bn(e[0]);super(dn,e[1],ci.serialize(t))}null!==(t=this.distributionPoints)&&void 0!==t||(this.distributionPoints=[])}onInit(e){super.onInit(e);const t=ci.parse(e.extnValue,bn,this.parseOptions);this.distributionPoints=t}toTextObject(){const e=this.toTextObjectWithoutValue();return e["Distribution Point"]=this.distributionPoints.map(e=>{var t;const r=new tl("");return(null===(t=e.distributionPoint)||void 0===t?void 0:t.fullName)&&(r[""]=e.distributionPoint.fullName.map(e=>new Il(e).toString()).join(", ")),e.reasons&&(r.Reasons=e.reasons.toString()),e.cRLIssuer&&(r["CRL Issuer"]=e.cRLIssuer.map(e=>e.toString()).join(", ")),r}),e}}Jl.NAME="CRL Distribution Points";class Xl extends ll{constructor(...e){var t,i,n,s;if(r.isBufferSource(e[0]))super(e[0],e[1]);else if(e[0]instanceof Fi){const t=new Fi(e[0]);super(Mi,e[1],ci.serialize(t))}else{const t=e[0],r=new Fi;Yl(r,t,Li,"ocsp"),Yl(r,t,Di,"caIssuers"),Yl(r,t,Ri,"timeStamping"),Yl(r,t,Vi,"caRepository"),super(Mi,e[1],ci.serialize(r))}null!==(t=this.ocsp)&&void 0!==t||(this.ocsp=[]),null!==(i=this.caIssuers)&&void 0!==i||(this.caIssuers=[]),null!==(n=this.timeStamping)&&void 0!==n||(this.timeStamping=[]),null!==(s=this.caRepository)&&void 0!==s||(this.caRepository=[])}onInit(e){super.onInit(e),this.ocsp=[],this.caIssuers=[],this.timeStamping=[],this.caRepository=[];ci.parse(e.extnValue,Fi,this.parseOptions).forEach(e=>{switch(e.accessMethod){case Li:this.ocsp.push(new Il(e.accessLocation));break;case Di:this.caIssuers.push(new Il(e.accessLocation));break;case Ri:this.timeStamping.push(new Il(e.accessLocation));break;case Vi:this.caRepository.push(new Il(e.accessLocation))}})}toTextObject(){const e=this.toTextObjectWithoutValue();return this.ocsp.length&&Zl(e,"OCSP",this.ocsp),this.caIssuers.length&&Zl(e,"CA Issuers",this.caIssuers),this.timeStamping.length&&Zl(e,"Time Stamping",this.timeStamping),this.caRepository.length&&Zl(e,"CA Repository",this.caRepository),e}}function Zl(e,t,r){if(1===r.length)e[t]=r[0].toTextObject();else{const i=new tl("");r.forEach((e,t)=>{const r=e.toTextObject(),n=`${r[tl.NAME]} ${t+1}`;let s=i[n];Array.isArray(s)||(s=[],i[n]=s),s.push(r)}),e[t]=i}}function Yl(e,t,r,i){const n=t[i];if(n){(Array.isArray(n)?n:[n]).forEach(t=>{"string"==typeof t&&(t=new Il("url",t)),e.push(new Ki({accessMethod:r,accessLocation:ci.parse(t.rawData,Ti)}))})}}Xl.NAME="Authority Info Access";class Ql extends ll{constructor(...e){r.isBufferSource(e[0])?super(e[0],e[1]):super(Vn,e[1],new Tl(e[0]||[]).rawData)}onInit(e){super.onInit(e);const t=ci.parse(e.extnValue,Zi,this.parseOptions);this.names=new Tl(t)}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(const r in t)e[r]=t[r];return e}}var eu;Ql.NAME="Issuer Alternative Name";class tu{constructor(e={}){_defineProperty(this,"attrId",""),_defineProperty(this,"attrValues",[]),Object.assign(e)}}di([ii({type:Sr.ObjectIdentifier})],tu.prototype,"attrId",void 0),di([ii({type:Sr.Any,repeated:"set"})],tu.prototype,"attrValues",void 0);let ru=eu=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,eu.prototype)}};var iu;ru=eu=di([ri({type:Ar.Sequence,itemType:tu})],ru);let nu=iu=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,iu.prototype)}};nu=iu=di([ri({type:Ar.Sequence,itemType:bo})],nu);class su{constructor(e={}){_defineProperty(this,"certId",""),_defineProperty(this,"certValue",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],su.prototype,"certId",void 0),di([ii({type:Sr.Any,context:0})],su.prototype,"certValue",void 0);class ou{constructor(e={}){_defineProperty(this,"crlId",""),_defineProperty(this,"crltValue",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],ou.prototype,"crlId",void 0),di([ii({type:Sr.Any,context:0})],ou.prototype,"crltValue",void 0);class au extends Br{}let cu=class{constructor(e={}){_defineProperty(this,"encryptionAlgorithm",new hs),_defineProperty(this,"encryptedData",new au),Object.assign(this,e)}};var lu,uu;di([ii({type:hs})],cu.prototype,"encryptionAlgorithm",void 0),di([ii({type:au})],cu.prototype,"encryptedData",void 0),function(e){e[e.v1=0]="v1"}(uu||(uu={}));class pu extends Br{}let hu=lu=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,lu.prototype)}};hu=lu=di([ri({type:Ar.Sequence,itemType:ts})],hu);let fu=class{constructor(e={}){_defineProperty(this,"version",uu.v1),_defineProperty(this,"privateKeyAlgorithm",new hs),_defineProperty(this,"privateKey",new pu),_defineProperty(this,"attributes",void 0),Object.assign(this,e)}};di([ii({type:Sr.Integer})],fu.prototype,"version",void 0),di([ii({type:hs})],fu.prototype,"privateKeyAlgorithm",void 0),di([ii({type:pu})],fu.prototype,"privateKey",void 0),di([ii({type:hu,implicit:!0,context:0,optional:!0})],fu.prototype,"attributes",void 0);let du=class extends fu{};du=di([ri({type:Ar.Sequence})],du);let yu=class extends cu{};yu=di([ri({type:Ar.Sequence})],yu);class gu{constructor(e={}){_defineProperty(this,"secretTypeId",""),_defineProperty(this,"secretValue",new ArrayBuffer(0)),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],gu.prototype,"secretTypeId",void 0),di([ii({type:Sr.Any,context:0})],gu.prototype,"secretValue",void 0);class vu{constructor(e={}){_defineProperty(this,"mac",new qa),_defineProperty(this,"macSalt",new Br),_defineProperty(this,"iterations",1),Object.assign(this,e)}}di([ii({type:qa})],vu.prototype,"mac",void 0),di([ii({type:Br})],vu.prototype,"macSalt",void 0),di([ii({type:Sr.Integer,defaultValue:1})],vu.prototype,"iterations",void 0);class mu{constructor(e={}){_defineProperty(this,"version",3),_defineProperty(this,"authSafe",new bo),_defineProperty(this,"macData",new vu),Object.assign(this,e)}}var bu;di([ii({type:Sr.Integer})],mu.prototype,"version",void 0),di([ii({type:bo})],mu.prototype,"authSafe",void 0),di([ii({type:vu,optional:!0})],mu.prototype,"macData",void 0);class wu{constructor(e={}){_defineProperty(this,"bagId",""),_defineProperty(this,"bagValue",new ArrayBuffer(0)),_defineProperty(this,"bagAttributes",void 0),Object.assign(this,e)}}di([ii({type:Sr.ObjectIdentifier})],wu.prototype,"bagId",void 0),di([ii({type:Sr.Any,context:0})],wu.prototype,"bagValue",void 0),di([ii({type:tu,repeated:"set",optional:!0})],wu.prototype,"bagAttributes",void 0);let Au=bu=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,bu.prototype)}};var Su,xu,Bu;Au=bu=di([ri({type:Ar.Sequence,itemType:wu})],Au);const ku="1.2.840.113549.1.9",Cu=`${ku}.7`,Pu=`${ku}.14`;let Eu=class extends xi{constructor(e={}){super(e),_defineProperty(this,"ia5String",void 0)}toString(){return this.ia5String||super.toString()}};di([ii({type:Sr.IA5String})],Eu.prototype,"ia5String",void 0),Eu=di([ri({type:Ar.Choice})],Eu);let Ou=class extends bo{};Ou=di([ri({type:Ar.Sequence})],Ou);let Nu=class extends mu{};Nu=di([ri({type:Ar.Sequence})],Nu);let Iu=class extends cu{};Iu=di([ri({type:Ar.Sequence})],Iu);let Tu=class{constructor(e=""){_defineProperty(this,"value",void 0),this.value=e}toString(){return this.value}};di([ii({type:Sr.IA5String})],Tu.prototype,"value",void 0),Tu=di([ri({type:Ar.Choice})],Tu);let ju=class extends Eu{};ju=di([ri({type:Ar.Choice})],ju);let _u=class extends xi{};_u=di([ri({type:Ar.Choice})],_u);let Uu=class{constructor(e=new Date){_defineProperty(this,"value",void 0),this.value=e}};di([ii({type:Sr.GeneralizedTime})],Uu.prototype,"value",void 0),Uu=di([ri({type:Ar.Choice})],Uu);let Lu=class extends xi{};Lu=di([ri({type:Ar.Choice})],Lu);let Du=class{constructor(e="M"){_defineProperty(this,"value",void 0),this.value=e}toString(){return this.value}};di([ii({type:Sr.PrintableString})],Du.prototype,"value",void 0),Du=di([ri({type:Ar.Choice})],Du);let Ru=class{constructor(e=""){_defineProperty(this,"value",void 0),this.value=e}toString(){return this.value}};di([ii({type:Sr.PrintableString})],Ru.prototype,"value",void 0),Ru=di([ri({type:Ar.Choice})],Ru);let Vu=class extends Ru{};Vu=di([ri({type:Ar.Choice})],Vu);let Hu=class extends xi{};Hu=di([ri({type:Ar.Choice})],Hu);let $u=class{constructor(e=""){_defineProperty(this,"value",void 0),this.value=e}toString(){return this.value}};di([ii({type:Sr.ObjectIdentifier})],$u.prototype,"value",void 0),$u=di([ri({type:Ar.Choice})],$u);let Mu=class extends ds{};Mu=di([ri({type:Ar.Choice})],Mu);let Ku=class{constructor(e=0){_defineProperty(this,"value",void 0),this.value=e}toString(){return this.value.toString()}};di([ii({type:Sr.Integer})],Ku.prototype,"value",void 0),Ku=di([ri({type:Ar.Choice})],Ku);let Fu=class extends Ls{};Fu=di([ri({type:Ar.Sequence})],Fu);let zu=class extends xi{};zu=di([ri({type:Ar.Choice})],zu);let Wu=Su=class extends ms{constructor(e){super(e),Object.setPrototypeOf(this,Su.prototype)}};Wu=Su=di([ri({type:Ar.Sequence})],Wu);let qu=xu=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,xu.prototype)}};qu=xu=di([ri({type:Ar.Set,itemType:_s})],qu);let Gu=class{constructor(e=""){_defineProperty(this,"value",void 0),this.value=e}toString(){return this.value}};di([ii({type:Sr.BmpString})],Gu.prototype,"value",void 0),Gu=di([ri({type:Ar.Choice})],Gu);let Ju=class extends hs{};Ju=di([ri({type:Ar.Sequence})],Ju);let Xu=Bu=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Bu.prototype)}};Xu=Bu=di([ri({type:Ar.Sequence,itemType:Ju})],Xu);class Zu extends cl{constructor(...e){let t,i;if(r.isBufferSource(e[0]))t=r.toArrayBuffer(e[0]),i=e[1];else{const i=e[0],n=Array.isArray(e[1])?e[1].map(e=>r.toArrayBuffer(e)):[];t=ci.serialize(new ts({type:i,values:n}))}super(t,ts,i)}onInit(e){this.type=e.type,this.values=e.values}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Value=this.values.map(e=>new tl("",{"":e})),e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty();return e[tl.NAME]===Zu.NAME&&(e[tl.NAME]=il.toString(this.type)),e}}Zu.NAME="Attribute";class Yu extends Zu{constructor(...e){var t;if(r.isBufferSource(e[0]))super(e[0],e[1]);else{const t=new zu({printableString:e[0]});super(Cu,[ci.serialize(t)])}null!==(t=this.password)&&void 0!==t||(this.password="")}onInit(e){if(super.onInit(e),this.values[0]){const e=ci.parse(this.values[0],zu,this.parseOptions);this.password=e.toString()}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[tl.VALUE]=this.password,e}}Yu.NAME="Challenge Password";class Qu extends Zu{constructor(...e){var t;if(r.isBufferSource(e[0]))super(e[0],e[1]);else{const t=e[0],r=new ms;for(const e of t)r.push(ci.parse(e.rawData,vs));super(Pu,[ci.serialize(r)])}null!==(t=this.items)&&void 0!==t||(this.items=[])}onInit(e){if(super.onInit(e),this.values[0]){const e=ci.parse(this.values[0],ms,this.parseOptions);this.items=e.map(e=>ql.create(ci.serialize(e),this.parseOptions))}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.items.map(e=>e.toTextObject());for(const r of t)e[r[tl.NAME]]=r;return e}}Qu.NAME="Extensions";class ep{static register(e,t){this.items.set(e,t)}static create(e,t){const r=new Zu(e,t),i=this.items.get(r.type);return i?new i(e,t):r}}ep.items=new Map;const tp="crypto.signatureFormatter";class rp{toAsnSignature(e,t){return r.toArrayBuffer(t)}toWebSignature(e,t){return r.toArrayBuffer(t)}}var ip;e.RsaAlgorithm=ip=class{static createPssParams(e,t){const r=ip.getHashAlgorithm(e);return r?new Wa({hashAlgorithm:r,maskGenAlgorithm:new hs({algorithm:Ha,parameters:ci.serialize(r)}),saltLength:t}):null}static getHashAlgorithm(e){const t=vc.resolve(Ac);return"string"==typeof e?t.toAsnAlgorithm({name:e}):"object"==typeof e&&e&&"name"in e?t.toAsnAlgorithm(e):null}toAsnAlgorithm(e){switch(e.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if(!("hash"in e))return new hs({algorithm:Sa,parameters:null});{let t;if("string"==typeof e.hash)t=e.hash;else{if(!e.hash||"object"!=typeof e.hash||!("name"in e.hash)||"string"!=typeof e.hash.name)throw new Error("Cannot get hash algorithm name");t=e.hash.name.toUpperCase()}switch(t.toLowerCase()){case"sha-1":return new hs({algorithm:Ea,parameters:null});case"sha-256":return new hs({algorithm:Na,parameters:null});case"sha-384":return new hs({algorithm:Ia,parameters:null});case"sha-512":return new hs({algorithm:Ta,parameters:null})}}break;case"rsa-pss":if("hash"in e){if(!("saltLength"in e)||"number"!=typeof e.saltLength)throw new Error("Cannot get 'saltLength' from 'alg' argument");const t=ip.createPssParams(e.hash,e.saltLength);if(!t)throw new Error("Cannot create PSS parameters");return new hs({algorithm:ka,parameters:ci.serialize(t)})}return new hs({algorithm:ka,parameters:null})}return null}toWebAlgorithm(e){switch(e.algorithm){case Sa:return{name:"RSASSA-PKCS1-v1_5"};case Ea:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case Na:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case Ia:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case Ta:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}};case ka:if(e.parameters){const t=ci.parse(e.parameters,Wa);return{name:"RSA-PSS",hash:vc.resolve(Ac).toWebAlgorithm(t.hashAlgorithm),saltLength:t.saltLength}}return{name:"RSA-PSS"}}return null}},e.RsaAlgorithm=ip=di([mc()],e.RsaAlgorithm),vc.registerSingleton(bc,e.RsaAlgorithm),e.ShaAlgorithm=class{toAsnAlgorithm(e){switch(e.name.toLowerCase()){case"sha-1":return new hs({algorithm:Ua});case"sha-256":return new hs({algorithm:Da});case"sha-384":return new hs({algorithm:Ra});case"sha-512":return new hs({algorithm:Va})}return null}toWebAlgorithm(e){switch(e.algorithm){case Ua:return{name:"SHA-1"};case Da:return{name:"SHA-256"};case Ra:return{name:"SHA-384"};case Va:return{name:"SHA-512"}}return null}},e.ShaAlgorithm=di([mc()],e.ShaAlgorithm),vc.registerSingleton(bc,e.ShaAlgorithm);class np{addPadding(e,t){const i=r.toUint8Array(t),n=new Uint8Array(e);return n.set(i,e-i.length),n.buffer}removePadding(e,t=!1){let i=r.toUint8Array(e);for(let e=0;e<i.length;e++)if(i[e]){i=i.slice(e);break}if(t&&i[0]>127){const e=new Uint8Array(i.length+1);return e.set(i,1),e.buffer}return i.buffer}toAsnSignature(e,t){if("ECDSA"===e.name){const i=e.namedCurve,n=np.namedCurveSize.get(i)||np.defaultNamedCurveSize,s=new wa,o=r.toUint8Array(t);return s.r=this.removePadding(o.slice(0,n),!0),s.s=this.removePadding(o.slice(n,n+n),!0),ci.serialize(s)}return null}toWebSignature(e,t){if("ECDSA"===e.name){const r=ci.parse(t,wa),i=e.namedCurve,n=np.namedCurveSize.get(i)||np.defaultNamedCurveSize;return function(...e){const t=e.map(e=>e.byteLength).reduce((e,t)=>e+t),r=new Uint8Array(t);let i=0;return e.map(e=>new Uint8Array(e)).forEach(e=>{for(const t of e)r[i++]=t}),r.buffer}(this.addPadding(n,this.removePadding(r.r)),this.addPadding(n,this.removePadding(r.s)))}return null}}np.namedCurveSize=new Map,np.defaultNamedCurveSize=32;const sp="1.3.101.110",op="1.3.101.111",ap="1.3.101.112",cp="1.3.101.113";var lp,up;e.EdAlgorithm=class{toAsnAlgorithm(e){let t=null;switch(e.name.toLowerCase()){case"ed25519":t=ap;break;case"x25519":t=sp;break;case"eddsa":switch(e.namedCurve.toLowerCase()){case"ed25519":t=ap;break;case"ed448":t=cp}break;case"ecdh-es":switch(e.namedCurve.toLowerCase()){case"x25519":t=sp;break;case"x448":t=op}}return t?new hs({algorithm:t}):null}toWebAlgorithm(e){switch(e.algorithm){case ap:return{name:"Ed25519"};case cp:return{name:"EdDSA",namedCurve:"Ed448"};case sp:return{name:"X25519"};case op:return{name:"ECDH-ES",namedCurve:"X448"}}return null}},e.EdAlgorithm=di([mc()],e.EdAlgorithm),vc.registerSingleton(bc,e.EdAlgorithm);let pp=lp=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,lp.prototype)}};pp=lp=di([ri({type:Ar.Sequence,itemType:hs})],pp);let hp=up=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,up.prototype)}};var fp,dp;hp=up=di([ri({type:Ar.Sequence,itemType:Sr.BitString})],hp),function(e){e[e.v1=0]="v1",e[e.v2=1]="v2"}(dp||(dp={}));let yp=class extends hs{};yp=di([ri({type:Ar.Sequence})],yp);let gp=class{constructor(){_defineProperty(this,"version",dp.v1),_defineProperty(this,"privateKeyAlgorithm",new hs),_defineProperty(this,"privateKey",new ArrayBuffer(0)),_defineProperty(this,"attributes",void 0),_defineProperty(this,"publicKey",void 0)}};di([ii({type:Sr.Integer})],gp.prototype,"version",void 0),di([ii({type:hs})],gp.prototype,"privateKeyAlgorithm",void 0),di([ii({type:Sr.OctetString})],gp.prototype,"privateKey",void 0),di([ii({type:hu,context:0,implicit:!0,optional:!0})],gp.prototype,"attributes",void 0),di([ii({type:Sr.BitString,context:1,implicit:!0,optional:!0})],gp.prototype,"publicKey",void 0),gp=di([ri({type:Ar.Sequence})],gp);let vp=class extends gp{};vp=di([ri({type:Ar.Sequence})],vp);let mp=fp=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,fp.prototype)}};var bp,wp;mp=fp=di([ri({type:Ar.Sequence,itemType:gp})],mp);let Ap=class extends hs{};Ap=di([ri({type:Ar.Sequence})],Ap);let Sp=bp=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,bp.prototype)}};Sp=bp=di([ri({type:Ar.Sequence,itemType:fs})],Sp);let xp=wp=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,wp.prototype)}};xp=wp=di([ri({type:Ar.Sequence,itemType:gp})],xp);const Bp="2.16.840.1.101.3.4.3",kp=`${Bp}.17`,Cp=`${Bp}.18`,Pp=`${Bp}.19`,Ep=`${Bp}.20`,Op=`${Bp}.21`,Np=`${Bp}.22`,Ip=`${Bp}.23`,Tp=`${Bp}.24`,jp=`${Bp}.25`,_p=`${Bp}.26`,Up=`${Bp}.27`,Lp=`${Bp}.28`,Dp=`${Bp}.29`,Rp=`${Bp}.30`,Vp=`${Bp}.31`;var Hp;e.MlDsaAlgorithm=class{toAsnAlgorithm(e){let t=null;switch(e.name.toLowerCase()){case"ml-dsa-44":t=kp;break;case"ml-dsa-65":t=Cp;break;case"ml-dsa-87":t=Pp}return t?new hs({algorithm:t}):null}toWebAlgorithm(e){switch(e.algorithm){case kp:return{name:"ML-DSA-44"};case Cp:return{name:"ML-DSA-65"};case Pp:return{name:"ML-DSA-87"}}return null}},e.MlDsaAlgorithm=di([mc()],e.MlDsaAlgorithm),vc.registerSingleton(bc,e.MlDsaAlgorithm),e.SlhDsaAlgorithm=class{toAsnAlgorithm(e){let t=null;switch(e.name.toLowerCase()){case"slh-dsa-sha2-128s":t=Ep;break;case"slh-dsa-sha2-128f":t=Op;break;case"slh-dsa-sha2-192s":t=Np;break;case"slh-dsa-sha2-192f":t=Ip;break;case"slh-dsa-sha2-256s":t=Tp;break;case"slh-dsa-sha2-256f":t=jp;break;case"slh-dsa-shake-128s":t=_p;break;case"slh-dsa-shake-128f":t=Up;break;case"slh-dsa-shake-192s":t=Lp;break;case"slh-dsa-shake-192f":t=Dp;break;case"slh-dsa-shake-256s":t=Rp;break;case"slh-dsa-shake-256f":t=Vp}return t?new hs({algorithm:t}):null}toWebAlgorithm(e){switch(e.algorithm){case Ep:return{name:"SLH-DSA-SHA2-128s"};case Op:return{name:"SLH-DSA-SHA2-128f"};case Np:return{name:"SLH-DSA-SHA2-192s"};case Ip:return{name:"SLH-DSA-SHA2-192f"};case Tp:return{name:"SLH-DSA-SHA2-256s"};case jp:return{name:"SLH-DSA-SHA2-256f"};case _p:return{name:"SLH-DSA-SHAKE-128s"};case Up:return{name:"SLH-DSA-SHAKE-128f"};case Lp:return{name:"SLH-DSA-SHAKE-192s"};case Dp:return{name:"SLH-DSA-SHAKE-192f"};case Rp:return{name:"SLH-DSA-SHAKE-256s"};case Vp:return{name:"SLH-DSA-SHAKE-256f"}}return null}},e.SlhDsaAlgorithm=di([mc()],e.SlhDsaAlgorithm),vc.registerSingleton(bc,e.SlhDsaAlgorithm);let $p=Hp=class extends ai{constructor(e){super(e),Object.setPrototypeOf(this,Hp.prototype)}};$p=Hp=di([ri({type:Ar.Sequence,itemType:ts})],$p);class Mp{constructor(e={}){_defineProperty(this,"version",0),_defineProperty(this,"subject",new Ei),_defineProperty(this,"subjectPKInfo",new fs),_defineProperty(this,"attributes",new $p),Object.assign(this,e)}}di([ii({type:Sr.Integer})],Mp.prototype,"version",void 0),di([ii({type:Ei})],Mp.prototype,"subject",void 0),di([ii({type:fs})],Mp.prototype,"subjectPKInfo",void 0),di([ii({type:$p,implicit:!0,context:0,optional:!0})],Mp.prototype,"attributes",void 0);class Kp{constructor(e={}){_defineProperty(this,"certificationRequestInfo",new Mp),_defineProperty(this,"certificationRequestInfoRaw",void 0),_defineProperty(this,"signatureAlgorithm",new hs),_defineProperty(this,"signature",new ArrayBuffer(0)),Object.assign(this,e)}}var Fp,zp,Wp,qp,Gp,Jp,Xp,Zp,Yp,Qp,eh,th,rh,ih,nh,sh,oh,ah,ch,lh,uh,ph,hh,fh,dh,yh,gh,vh,mh,bh,wh,Ah,Sh,xh;di([ii({type:Mp,raw:!0})],Kp.prototype,"certificationRequestInfo",void 0),di([ii({type:hs})],Kp.prototype,"signatureAlgorithm",void 0),di([ii({type:Sr.BitString})],Kp.prototype,"signature",void 0);class Bh extends Vl{get subjectName(){return wi(this,zp,"f")||Ai(this,zp,new gl(this.asn.certificationRequestInfo.subject),"f"),wi(this,zp,"f")}get subject(){return wi(this,Wp,"f")||Ai(this,Wp,this.subjectName.toString(),"f"),wi(this,Wp,"f")}get signatureAlgorithm(){if(!wi(this,qp,"f")){const e=vc.resolve(Ac);Ai(this,qp,e.toWebAlgorithm(this.asn.signatureAlgorithm),"f")}return wi(this,qp,"f")}get signature(){return wi(this,Gp,"f")||Ai(this,Gp,this.asn.signature,"f"),wi(this,Gp,"f")}get publicKey(){return wi(this,Jp,"f")||Ai(this,Jp,new Hl(this.asn.certificationRequestInfo.subjectPKInfo,this.parseOptions),"f"),wi(this,Jp,"f")}get attributes(){return wi(this,Xp,"f")||Ai(this,Xp,this.asn.certificationRequestInfo.attributes.map(e=>ep.create(ci.serialize(e),this.parseOptions)),"f"),wi(this,Xp,"f")}get extensions(){if(!wi(this,Zp,"f")){Ai(this,Zp,[],"f");const e=this.getAttribute(Pu);e instanceof Qu&&Ai(this,Zp,e.items,"f")}return wi(this,Zp,"f")}get tbs(){return wi(this,Fp,"f")||Ai(this,Fp,this.asn.certificationRequestInfoRaw||ci.serialize(this.asn.certificationRequestInfo),"f"),wi(this,Fp,"f")}constructor(e,t){const r=Vl.isAsnEncoded(e)?[e,Kp,t]:[e,t];super(r[0],r[1],r[2]),Fp.set(this,void 0),zp.set(this,void 0),Wp.set(this,void 0),qp.set(this,void 0),Gp.set(this,void 0),Jp.set(this,void 0),Xp.set(this,void 0),Zp.set(this,void 0),this.tag=Rl.CertificateRequestTag}onInit(e){}getAttribute(e){for(const t of this.attributes)if(t.type===e)return t;return null}getAttributes(e){return this.attributes.filter(t=>t.type===e)}getExtension(e){for(const t of this.extensions)if(t.type===e)return t;return null}getExtensions(e){return this.extensions.filter(t=>t.type===e)}async verify(e=pl.get()){const t={...this.publicKey.algorithm,...this.signatureAlgorithm},r=await this.publicKey.export(t,["verify"],e),i=vc.resolveAll(tp).reverse();let n=null;for(const e of i)if(n=e.toWebSignature(t,this.signature),n)break;if(!n)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return await e.subtle.verify(this.signatureAlgorithm,r,n,this.tbs)}toTextObject(){const e=this.toTextObjectEmpty(),t=ci.parse(this.rawData,Kp,this.parseOptions),r=t.certificationRequestInfo,i=new tl("",{Version:`${bs[r.version]} (${r.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const e=new tl("");for(const t of this.attributes){const r=t.toTextObject();e[r[tl.NAME]]=r}i.Attributes=e}return e.Data=i,e.Signature=new tl("",{Algorithm:nl.serializeAlgorithm(t.signatureAlgorithm),"":t.signature}),e}}Fp=new WeakMap,zp=new WeakMap,Wp=new WeakMap,qp=new WeakMap,Gp=new WeakMap,Jp=new WeakMap,Xp=new WeakMap,Zp=new WeakMap,Bh.NAME="PKCS#10 Certificate Request";function kh(e){let t=0;for(;t<e.length-1&&0===e[t];)t++;let r=e.slice(t);if(r.length||(r=new Uint8Array([0])),r[0]>127){const e=new Uint8Array(r.length+1);e[0]=0,e.set(r,1),r=e}return r.buffer}function Ch(e){return kh(r.toUint8Array(l.FromHex(e||"")))}function Ph(e){let t=r.toUint8Array(e);return t.length>1&&0===t[0]&&t[1]>127&&(t=t.slice(1)),l.ToHex(t)}class Eh extends Vl{get publicKey(){return wi(this,lh,"f")||Ai(this,lh,new Hl(this.asn.tbsCertificate.subjectPublicKeyInfo,this.parseOptions),"f"),wi(this,lh,"f")}get serialNumber(){return wi(this,Qp,"f")||Ai(this,Qp,Ph(this.asn.tbsCertificate.serialNumber),"f"),wi(this,Qp,"f")}get subjectName(){return wi(this,eh,"f")||Ai(this,eh,new gl(this.asn.tbsCertificate.subject),"f"),wi(this,eh,"f")}get subject(){return wi(this,th,"f")||Ai(this,th,this.subjectName.toString(),"f"),wi(this,th,"f")}get issuerName(){return wi(this,rh,"f")||Ai(this,rh,new gl(this.asn.tbsCertificate.issuer),"f"),wi(this,rh,"f")}get issuer(){return wi(this,ih,"f")||Ai(this,ih,this.issuerName.toString(),"f"),wi(this,ih,"f")}get notBefore(){if(!wi(this,nh,"f")){const e=this.asn.tbsCertificate.validity.notBefore.utcTime||this.asn.tbsCertificate.validity.notBefore.generalTime;if(!e)throw new Error("Cannot get 'notBefore' value");Ai(this,nh,e,"f")}return wi(this,nh,"f")}get notAfter(){if(!wi(this,sh,"f")){const e=this.asn.tbsCertificate.validity.notAfter.utcTime||this.asn.tbsCertificate.validity.notAfter.generalTime;if(!e)throw new Error("Cannot get 'notAfter' value");Ai(this,sh,e,"f")}return wi(this,sh,"f")}get signatureAlgorithm(){if(!wi(this,oh,"f")){const e=vc.resolve(Ac);Ai(this,oh,e.toWebAlgorithm(this.asn.signatureAlgorithm),"f")}return wi(this,oh,"f")}get signature(){return wi(this,ah,"f")||Ai(this,ah,this.asn.signatureValue,"f"),wi(this,ah,"f")}get extensions(){return wi(this,ch,"f")||(Ai(this,ch,[],"f"),this.asn.tbsCertificate.extensions&&Ai(this,ch,this.asn.tbsCertificate.extensions.map(e=>ql.create(ci.serialize(e),this.parseOptions)),"f")),wi(this,ch,"f")}get tbs(){return wi(this,Yp,"f")||Ai(this,Yp,this.asn.tbsCertificateRaw||ci.serialize(this.asn.tbsCertificate),"f"),wi(this,Yp,"f")}constructor(e,t){const r=Vl.isAsnEncoded(e)?[e,As,t]:[e,t];super(r[0],r[1],r[2]),Yp.set(this,void 0),Qp.set(this,void 0),eh.set(this,void 0),th.set(this,void 0),rh.set(this,void 0),ih.set(this,void 0),nh.set(this,void 0),sh.set(this,void 0),oh.set(this,void 0),ah.set(this,void 0),ch.set(this,void 0),lh.set(this,void 0),this.tag=Rl.CertificateTag}onInit(e){}getExtension(e){for(const t of this.extensions)if("string"==typeof e){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>"string"==typeof e?t.type===e:t instanceof e)}async verify(e={},t=pl.get()){let i,n;const s=e.publicKey;try{if(s)if("publicKey"in s)i={...s.publicKey.algorithm,...this.signatureAlgorithm},n=await s.publicKey.export(i,["verify"],t);else if(s instanceof Hl)i={...s.algorithm,...this.signatureAlgorithm},n=await s.export(i,["verify"],t);else if(r.isBufferSource(s)){const e=new Hl(s);i={...e.algorithm,...this.signatureAlgorithm},n=await e.export(i,["verify"],t)}else i={...s.algorithm,...this.signatureAlgorithm},n=s;else i={...this.publicKey.algorithm,...this.signatureAlgorithm},n=await this.publicKey.export(i,["verify"],t)}catch(e){return!1}const o=vc.resolveAll(tp).reverse();let a=null;for(const e of o)if(a=e.toWebSignature(i,this.signature),a)break;if(!a)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");const c=await t.subtle.verify(this.signatureAlgorithm,n,a,this.tbs);if(e.signatureOnly)return c;{const t=(e.date||new Date).getTime();return c&&this.notBefore.getTime()<t&&t<this.notAfter.getTime()}}async getThumbprint(e,t){let r,i="SHA-1";return e&&("object"==typeof e&&"subtle"in e?r=e:(i=e,r=t)),null!=r||(r=pl.get()),await r.subtle.digest(i,this.rawData)}async isSelfSigned(e=pl.get()){return this.subject===this.issuer&&await this.verify({signatureOnly:!0},e)}toTextObject(){const e=this.toTextObjectEmpty(),t=ci.parse(this.rawData,As,this.parseOptions),r=t.tbsCertificate,i=new tl("",{Version:`${bs[r.version]} (${r.version})`,"Serial Number":r.serialNumber,"Signature Algorithm":nl.serializeAlgorithm(r.signature),Issuer:this.issuer,Validity:new tl("",{"Not Before":r.validity.notBefore.getTime(),"Not After":r.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(r.issuerUniqueID&&(i["Issuer Unique ID"]=r.issuerUniqueID),r.subjectUniqueID&&(i["Subject Unique ID"]=r.subjectUniqueID),this.extensions.length){const e=new tl("");for(const t of this.extensions){const r=t.toTextObject();e[r[tl.NAME]]=r}i.Extensions=e}return e.Data=i,e.Signature=new tl("",{Algorithm:nl.serializeAlgorithm(t.signatureAlgorithm),"":t.signatureValue}),e}}Yp=new WeakMap,Qp=new WeakMap,eh=new WeakMap,th=new WeakMap,rh=new WeakMap,ih=new WeakMap,nh=new WeakMap,sh=new WeakMap,oh=new WeakMap,ah=new WeakMap,ch=new WeakMap,lh=new WeakMap,Eh.NAME="Certificate";class Oh extends Array{constructor(e,t){if(super(),uh.set(this,void 0),Vl.isAsnEncoded(e))this.import(e,t);else if(e instanceof Eh)this.push(e);else if(Array.isArray(e))for(const t of e)this.push(t)}export(e){const t=new Qo;t.version=1,t.encapContentInfo.eContentType="1.2.840.113549.1.7.1",t.encapContentInfo.eContent=new wo({single:new Br}),t.certificates=new mo(this.map(e=>new vo({certificate:ci.parse(e.rawData,As,wi(this,uh,"f"))})));const r=new bo({contentType:Xo,content:ci.serialize(t)}),i=ci.serialize(r);return"raw"===e?i:this.toString(e)}import(e,t){const r=Vl.toArrayBuffer(e),i=ci.parse(r,bo,t);if(i.contentType!==Xo)throw new TypeError("Cannot parse CMS package. Incoming data is not a SignedData object.");const n=ci.parse(i.content,Qo,t),s=[];for(const e of n.certificates||[])e.certificate&&s.push(new Eh(e.certificate,t));this.clear();for(const e of s)this.push(e);Ai(this,uh,t,"f")}clear(){for(;this.pop(););}toString(e="pem"){const t=this.export("raw");switch(e){case"pem":return Rl.encode(t,"CMS");case"pem-chain":return this.map(e=>e.toString("pem")).join("\n");case"asn":return ci.toString(t,wi(this,uh,"f"));case"hex":return l.ToHex(t);case"base64":return l.ToBase64(t);case"base64url":return l.ToBase64Url(t);case"text":return nl.serialize(this.toTextObject());default:throw TypeError("Argument 'format' is unsupported value")}}toTextObject(){const e=ci.parse(this.export("raw"),bo,wi(this,uh,"f")),t=ci.parse(e.content,Qo,wi(this,uh,"f"));return new tl("X509Certificates",{"Content Type":il.toString(e.contentType),Content:new tl("",{Version:`${Ps[t.version]} (${t.version})`,Certificates:new tl("",{Certificate:this.map(e=>e.toTextObject())})})})}}uh=new WeakMap;e.X509CrlReason=void 0,(gh=e.X509CrlReason||(e.X509CrlReason={}))[gh.unspecified=0]="unspecified",gh[gh.keyCompromise=1]="keyCompromise",gh[gh.cACompromise=2]="cACompromise",gh[gh.affiliationChanged=3]="affiliationChanged",gh[gh.superseded=4]="superseded",gh[gh.cessationOfOperation=5]="cessationOfOperation",gh[gh.certificateHold=6]="certificateHold",gh[gh.removeFromCRL=8]="removeFromCRL",gh[gh.privilegeWithdrawn=9]="privilegeWithdrawn",gh[gh.aACompromise=10]="aACompromise";class Nh extends cl{get serialNumber(){return wi(this,ph,"f")||Ai(this,ph,Ph(this.asn.userCertificate),"f"),wi(this,ph,"f")}get revocationDate(){return wi(this,hh,"f")||Ai(this,hh,this.asn.revocationDate.getTime(),"f"),wi(this,hh,"f")}get reason(){return void 0===wi(this,fh,"f")&&this.extensions,wi(this,fh,"f")}get invalidity(){return void 0===wi(this,dh,"f")&&this.extensions,wi(this,dh,"f")}get extensions(){return wi(this,yh,"f")||(Ai(this,yh,[],"f"),this.asn.crlEntryExtensions&&Ai(this,yh,this.asn.crlEntryExtensions.map(e=>{const t=ql.create(ci.serialize(e),this.parseOptions);switch(t.type){case xn:void 0===wi(this,fh,"f")&&Ai(this,fh,ci.parse(t.value,kn,this.parseOptions).reason,"f");break;case Ln:void 0===wi(this,dh,"f")&&Ai(this,dh,ci.parse(t.value,Dn,this.parseOptions).value,"f")}return t}),"f")),wi(this,yh,"f")}constructor(...e){let t,i;if(r.isBufferSource(e[0])?(t=r.toArrayBuffer(e[0]),i=e[1]):"string"==typeof e[0]?t=ci.serialize(new Ss({userCertificate:Ch(e[0]),revocationDate:new ds(e[1]),crlEntryExtensions:e[2]})):e[0]instanceof Ss&&(t=e[0],i=e[1]),!t)throw new TypeError("Cannot create X509CrlEntry instance. Wrong constructor arguments.");const n=t instanceof Ss?[t,i]:[t,Ss,i];super(n[0],n[1],n[2]),ph.set(this,void 0),hh.set(this,void 0),fh.set(this,void 0),dh.set(this,void 0),yh.set(this,void 0)}onInit(e){}}ph=new WeakMap,hh=new WeakMap,fh=new WeakMap,dh=new WeakMap,yh=new WeakMap;class Ih extends Vl{get version(){return this.asn.tbsCertList.version}get signatureAlgorithm(){if(!wi(this,mh,"f")){const e=vc.resolve(Ac);Ai(this,mh,e.toWebAlgorithm(this.asn.signatureAlgorithm),"f")}return wi(this,mh,"f")}get signature(){return this.asn.signature}get issuer(){return this.issuerName.toString()}get issuerName(){return wi(this,bh,"f")||Ai(this,bh,new gl(this.asn.tbsCertList.issuer),"f"),wi(this,bh,"f")}get thisUpdate(){if(!wi(this,wh,"f")){const e=this.asn.tbsCertList.thisUpdate.getTime();if(!e)throw new Error("Cannot get 'thisUpdate' value");Ai(this,wh,e,"f")}return wi(this,wh,"f")}get nextUpdate(){var e;return void 0===wi(this,Ah,"f")&&Ai(this,Ah,(null===(e=this.asn.tbsCertList.nextUpdate)||void 0===e?void 0:e.getTime())||void 0,"f"),wi(this,Ah,"f")}get entries(){var e;return wi(this,Sh,"f")||Ai(this,Sh,(null===(e=this.asn.tbsCertList.revokedCertificates)||void 0===e?void 0:e.map(e=>new Nh(e,this.parseOptions)))||[],"f"),wi(this,Sh,"f")}get extensions(){return wi(this,xh,"f")||(Ai(this,xh,[],"f"),this.asn.tbsCertList.crlExtensions&&Ai(this,xh,this.asn.tbsCertList.crlExtensions.map(e=>ql.create(ci.serialize(e),this.parseOptions)),"f")),wi(this,xh,"f")}get tbs(){return wi(this,vh,"f")||Ai(this,vh,this.asn.tbsCertListRaw||ci.serialize(this.asn.tbsCertList),"f"),wi(this,vh,"f")}get tbsCertListSignatureAlgorithm(){return this.asn.tbsCertList.signature}get certListSignatureAlgorithm(){return this.asn.signatureAlgorithm}constructor(e,t){const r=Vl.isAsnEncoded(e)?[e,Bs,t]:[e,t];super(r[0],r[1],r[2]),this.tag=Rl.CrlTag,vh.set(this,void 0),mh.set(this,void 0),bh.set(this,void 0),wh.set(this,void 0),Ah.set(this,void 0),Sh.set(this,void 0),xh.set(this,void 0)}onInit(e){}getExtension(e){for(const t of this.extensions)if("string"==typeof e){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>"string"==typeof e?t.type===e:t instanceof e)}async verify(e,t=pl.get()){if(!this.certListSignatureAlgorithm.isEqual(this.tbsCertListSignatureAlgorithm))throw new Error("algorithm identifier in the sequence tbsCertList and CertificateList mismatch");let r,i;const n=e.publicKey;try{n instanceof Eh?(r={...n.publicKey.algorithm,...n.signatureAlgorithm},i=await n.publicKey.export(r,["verify"])):n instanceof Hl?(r={...n.algorithm,...this.signatureAlgorithm},i=await n.export(r,["verify"])):(r={...n.algorithm,...this.signatureAlgorithm},i=n)}catch(e){return!1}const s=vc.resolveAll(tp).reverse();let o=null;for(const e of s)if(o=e.toWebSignature(r,this.signature),o)break;if(!o)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");return await t.subtle.verify(this.signatureAlgorithm,i,o,this.tbs)}async getThumbprint(e,t){let r,i="SHA-1";return e&&("object"==typeof e&&"subtle"in e?r=e:(i=e,r=t)),null!=r||(r=pl.get()),await r.subtle.digest(i,this.rawData)}findRevoked(e){const t=Ch("string"==typeof e?e:e.serialNumber);for(const e of this.asn.tbsCertList.revokedCertificates||[])if(r.isEqual(e.userCertificate,t))return new Nh(ci.serialize(e),this.parseOptions);return null}}vh=new WeakMap,mh=new WeakMap,bh=new WeakMap,wh=new WeakMap,Ah=new WeakMap,Sh=new WeakMap,xh=new WeakMap;return ql.register(Gi,Ml),ql.register(Pn,Kl),ql.register($n,Fl),ql.register(ns,zl),ql.register(zi,$l),ql.register(Qn,Wl),ql.register(dn,Jl),ql.register(Mi,Xl),ql.register(Vn,Ql),ep.register(Cu,Yu),ep.register(Pu,Qu),vc.registerSingleton(tp,rp),vc.registerSingleton(tp,np),np.namedCurveSize.set("P-256",32),np.namedCurveSize.set("K-256",32),np.namedCurveSize.set("P-384",48),np.namedCurveSize.set("P-521",66),e.AlgorithmProvider=wc,e.AsnData=cl,e.AsnDefaultSignatureFormatter=rp,e.AsnEcSignatureFormatter=np,e.Attribute=Zu,e.AttributeFactory=ep,e.AuthorityInfoAccessExtension=Xl,e.AuthorityKeyIdentifierExtension=$l,e.BasicConstraintsExtension=Ml,e.CRLDistributionPointsExtension=Jl,e.CertificatePolicyExtension=Gl,e.ChallengePasswordAttribute=Yu,e.CryptoProvider=ul,e.DN=Bl,e.DNS=xl,e.DefaultAlgorithmSerializer=rl,e.EMAIL=kl,e.ExtendedKeyUsageExtension=Kl,e.Extension=ll,e.ExtensionFactory=ql,e.ExtensionsAttribute=Qu,e.GUID=El,e.GeneralName=Il,e.GeneralNames=Tl,e.IP=Cl,e.IssuerAlternativeNameExtension=Ql,e.KeyUsagesExtension=Fl,e.Name=gl,e.NameIdentifier=fl,e.OidSerializer=il,e.PemConverter=Rl,e.PemData=Vl,e.Pkcs10CertificateRequest=Bh,e.Pkcs10CertificateRequestGenerator=class{static async create(e,t=pl.get()){if(!e.keys.privateKey)throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");if(!e.keys.publicKey)throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty");const r=await t.subtle.exportKey("spki",e.keys.publicKey),i=new Kp({certificationRequestInfo:new Mp({subjectPKInfo:ci.parse(r,fs)})});if(e.name){const t=e.name instanceof gl?e.name:new gl(e.name);i.certificationRequestInfo.subject=ci.parse(t.toArrayBuffer(),Ei)}if(e.attributes)for(const t of e.attributes)i.certificationRequestInfo.attributes.push(ci.parse(t.rawData,ts));if(e.extensions&&e.extensions.length){const t=new ts({type:Pu}),r=new ms;for(const t of e.extensions)r.push(ci.parse(t.rawData,vs));t.values.push(ci.serialize(r)),i.certificationRequestInfo.attributes.push(t)}const n={...e.signingAlgorithm,...e.keys.privateKey.algorithm},s=vc.resolve(Ac);i.signatureAlgorithm=s.toAsnAlgorithm(n);const o=ci.serialize(i.certificationRequestInfo),a=await t.subtle.sign(n,e.keys.privateKey,o),c=vc.resolveAll(tp).reverse();let l=null;for(const e of c)if(l=e.toAsnSignature(n,a),l)break;if(!l)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return i.signature=l,new Bh(ci.serialize(i))}},e.PublicKey=Hl,e.REGISTERED_ID=Nl,e.SubjectAlternativeNameExtension=Wl,e.SubjectKeyIdentifierExtension=zl,e.TextConverter=nl,e.TextObject=tl,e.UPN=Ol,e.URL=Pl,e.X509Certificate=Eh,e.X509CertificateGenerator=class{static async createSelfSigned(e,t=pl.get()){if(!e.keys.privateKey)throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");if(!e.keys.publicKey)throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty");return this.create({serialNumber:e.serialNumber,subject:e.name,issuer:e.name,notBefore:e.notBefore,notAfter:e.notAfter,publicKey:e.keys.publicKey,signingKey:e.keys.privateKey,signingAlgorithm:e.signingAlgorithm,extensions:e.extensions},t)}static async create(e,t=pl.get()){var i;let n;n=e.publicKey instanceof Hl?e.publicKey.rawData:"publicKey"in e.publicKey?e.publicKey.publicKey.rawData:r.isBufferSource(e.publicKey)?e.publicKey:await t.subtle.exportKey("spki",e.publicKey);const s=function(e,t=pl.get()){const i=r.toUint8Array(l.FromHex(e||""));return kh(i.length&&i.some(e=>e>0)?i:t.getRandomValues(new Uint8Array(16)))}(e.serialNumber,t),o=e.notBefore||new Date,a=e.notAfter||new Date(o.getTime()+31536e6),c=new As({tbsCertificate:new ws({version:bs.v3,serialNumber:s,validity:new ys({notBefore:o,notAfter:a}),extensions:new ms((null===(i=e.extensions)||void 0===i?void 0:i.map(e=>ci.parse(e.rawData,vs)))||[]),subjectPublicKeyInfo:ci.parse(n,fs)})});if(e.subject){const t=e.subject instanceof gl?e.subject:new gl(e.subject);c.tbsCertificate.subject=ci.parse(t.toArrayBuffer(),Ei)}if(e.issuer){const t=e.issuer instanceof gl?e.issuer:new gl(e.issuer);c.tbsCertificate.issuer=ci.parse(t.toArrayBuffer(),Ei)}const u={hash:"SHA-256"},p="signingKey"in e?{...u,...e.signingAlgorithm,...e.signingKey.algorithm}:{...u,...e.signingAlgorithm},h=vc.resolve(Ac);c.tbsCertificate.signature=c.signatureAlgorithm=h.toAsnAlgorithm(p);const f=ci.serialize(c.tbsCertificate),d="signingKey"in e?await t.subtle.sign(p,e.signingKey,f):e.signature,y=vc.resolveAll(tp).reverse();let g=null;for(const e of y)if(g=e.toAsnSignature(p,d),g)break;if(!g)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");return c.signatureValue=g,new Eh(ci.serialize(c))}},e.X509Certificates=Oh,e.X509ChainBuilder=class{constructor(e={}){this.certificates=[],e.certificates&&(this.certificates=e.certificates)}async build(e,t=pl.get()){const r=new Oh(e);let i=e;for(;i=await this.findIssuer(i,t);){const e=await i.getThumbprint(t);for(const i of r){if(u(e,await i.getThumbprint(t)))throw new Error("Cannot build a certificate chain. Circular dependency.")}r.push(i)}return r}async findIssuer(e,t=pl.get()){if(!await e.isSelfSigned(t)){const r=e.getExtension(zi);for(const i of this.certificates)if(i.subject===e.issuer){if(r)if(r.keyId){const e=i.getExtension(ns);if(e&&e.keyId!==r.keyId)continue}else if(r.certId){const e=i.getExtension(Qn);if(e&&(r.certId.serialNumber!==i.serialNumber||!u(ci.serialize(r.certId.name),ci.serialize(e))))continue}try{const r={...i.publicKey.algorithm,...e.signatureAlgorithm},n=await i.publicKey.export(r,["verify"],t);if(!await e.verify({publicKey:n,signatureOnly:!0},t))continue}catch(e){continue}return i}}return null}},e.X509Crl=Ih,e.X509CrlEntry=Nh,e.X509CrlGenerator=class{static async create(e,t=pl.get()){var r;const i=e.issuer instanceof gl?e.issuer:new gl(e.issuer),n=new Bs({tbsCertList:new xs({version:bs.v2,issuer:ci.parse(i.toArrayBuffer(),Ei),thisUpdate:new ds(e.thisUpdate||new Date)})});if(e.nextUpdate&&(n.tbsCertList.nextUpdate=new ds(e.nextUpdate)),e.extensions&&e.extensions.length&&(n.tbsCertList.crlExtensions=new ms(e.extensions.map(e=>ci.parse(e.rawData,vs))||[])),e.entries&&e.entries.length){n.tbsCertList.revokedCertificates=[];for(const t of e.entries){const i=Ch(t.serialNumber);if(n.tbsCertList.revokedCertificates.findIndex(e=>u(e.userCertificate,i))>-1)throw new Error(`Certificate serial number ${t.serialNumber} already exists in tbsCertList`);const s=new Ss({userCertificate:i,revocationDate:new ds(t.revocationDate||new Date)});if("extensions"in t&&(null===(r=t.extensions)||void 0===r?void 0:r.length)?s.crlEntryExtensions=t.extensions.map(e=>ci.parse(e.rawData,vs)):s.crlEntryExtensions=[],!(t instanceof Nh)&&(t.reason&&s.crlEntryExtensions.push(new vs({extnID:xn,critical:!1,extnValue:new Br(ci.serialize(new kn(t.reason)))})),t.invalidity&&s.crlEntryExtensions.push(new vs({extnID:Ln,critical:!1,extnValue:new Br(ci.serialize(new Dn(t.invalidity)))})),t.issuer)){const t=e.issuer instanceof gl?e.issuer:new gl(e.issuer);s.crlEntryExtensions.push(new vs({extnID:Qi,critical:!1,extnValue:new Br(ci.serialize(ci.parse(t.toArrayBuffer(),Ei)))}))}n.tbsCertList.revokedCertificates.push(s)}}const s={...e.signingAlgorithm,...e.signingKey.algorithm},o=vc.resolve(Ac);n.tbsCertList.signature=n.signatureAlgorithm=o.toAsnAlgorithm(s);const a=ci.serialize(n.tbsCertList),c=await t.subtle.sign(s,e.signingKey,a),l=vc.resolveAll(tp).reverse();let p=null;for(const e of l)if(p=e.toAsnSignature(s,c),p)break;if(!p)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");return n.signature=p,new Ih(ci.serialize(n))}},e.cryptoProvider=pl,e.diAlgorithm=bc,e.diAlgorithmProvider=Ac,e.diAsnSignatureFormatter=tp,e.idEd25519=ap,e.idEd448=cp,e.idX25519=sp,e.idX448=op,e}({});
|