@highstate/designer 0.2.2 → 0.3.3
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/BiOpBOhF.js +69 -0
- package/.output/public/_nuxt/Cbvq2xei.js +1 -0
- package/.output/public/_nuxt/DVgDGs8k.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/4e80df08-b017-4dd3-92a5-670b9c4b88d5.json +1 -0
- package/.output/public/_nuxt/entry.D7UJUp71.css +5 -0
- package/.output/public/_nuxt/error-404.SWzu_puR.css +1 -0
- package/.output/public/_nuxt/error-500.Bkv_zTjr.css +1 -0
- package/.output/public/_nuxt/rjBY3mWU.js +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/robots.txt +1 -0
- package/.output/server/chunks/_/error-500.mjs +8 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +85 -0
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6161 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/_trpc_.mjs +1067 -0
- package/.output/server/chunks/routes/api/_trpc_.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +341 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +7 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/buffer-stream.js +52 -0
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/index.js +60 -0
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/package.json +50 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/buffer-stream.js +52 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/index.js +61 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/package.json +47 -0
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/index.js +32 -0
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/package.json +37 -0
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/index.js +77 -0
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/package.json +42 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14027 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/admin.js +31 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +174 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-credentials.js +153 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-interface.js +84 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-number.js +25 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call.js +136 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +134 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +272 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-options.js +71 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel.js +68 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channelz.js +584 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +428 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client.js +433 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +26 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-filter.js +295 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +28 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/constants.js +64 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +43 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/deadline.js +109 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/duration.js +47 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/environment.js +22 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/error.js +41 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/experimental.js +52 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter-stack.js +82 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter.js +38 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/http_proxy.js +266 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/index.js +144 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/internal-channel.js +572 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +153 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +567 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +482 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +182 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer.js +117 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +294 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/logging.js +122 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/make-client.js +144 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/metadata.js +249 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/picker.js +86 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +349 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +105 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +51 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver.js +88 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-call.js +305 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +309 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/retrying-call.js +665 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-call.js +202 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-credentials.js +305 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +770 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server.js +1569 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/service-config.js +431 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/status-builder.js +68 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +100 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +202 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +526 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +92 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +137 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel.js +371 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +34 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/transport.js +662 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/uri-parser.js +126 -0
- package/.output/server/node_modules/@grpc/grpc-js/package.json +87 -0
- package/.output/server/node_modules/@grpc/grpc-js/proto/channelz.proto +564 -0
- package/.output/server/node_modules/@grpc/proto-loader/build/src/index.js +244 -0
- package/.output/server/node_modules/@grpc/proto-loader/build/src/util.js +89 -0
- package/.output/server/node_modules/@grpc/proto-loader/package.json +69 -0
- package/.output/server/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +795 -0
- package/.output/server/node_modules/@js-sdsl/ordered-map/package.json +138 -0
- package/.output/server/node_modules/@logdna/tail-file/index.js +3 -0
- package/.output/server/node_modules/@logdna/tail-file/lib/tail-file.js +326 -0
- package/.output/server/node_modules/@logdna/tail-file/package.json +162 -0
- package/.output/server/node_modules/@protobufjs/aspromise/index.js +52 -0
- package/.output/server/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/base64/index.js +139 -0
- package/.output/server/node_modules/@protobufjs/base64/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/codegen/index.js +99 -0
- package/.output/server/node_modules/@protobufjs/codegen/package.json +13 -0
- package/.output/server/node_modules/@protobufjs/eventemitter/index.js +76 -0
- package/.output/server/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/fetch/index.js +115 -0
- package/.output/server/node_modules/@protobufjs/fetch/package.json +25 -0
- package/.output/server/node_modules/@protobufjs/float/index.js +335 -0
- package/.output/server/node_modules/@protobufjs/float/package.json +26 -0
- package/.output/server/node_modules/@protobufjs/inquire/index.js +17 -0
- package/.output/server/node_modules/@protobufjs/inquire/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/path/index.js +65 -0
- package/.output/server/node_modules/@protobufjs/path/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/pool/index.js +48 -0
- package/.output/server/node_modules/@protobufjs/pool/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/utf8/index.js +105 -0
- package/.output/server/node_modules/@protobufjs/utf8/package.json +21 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/archive.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/asset.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/index.js +21 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/cmd.js +270 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/errors.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/events.js +47 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/index.js +27 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/localWorkspace.js +1049 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/minimumVersion.js +28 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteStack.js +130 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteWorkspace.js +131 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/server.js +170 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/stack.js +991 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/stackSettings.js +24 -0
- package/.output/server/node_modules/@pulumi/pulumi/errors.js +126 -0
- package/.output/server/node_modules/@pulumi/pulumi/log/index.js +132 -0
- package/.output/server/node_modules/@pulumi/pulumi/metadata.js +46 -0
- package/.output/server/node_modules/@pulumi/pulumi/output.js +677 -0
- package/.output/server/node_modules/@pulumi/pulumi/package.json +93 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/alias_pb.js +631 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_grpc_pb.js +61 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_pb.js +582 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/codegen/hcl_pb.js +808 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_grpc_pb.js +158 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_pb.js +1058 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_grpc_pb.js +510 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_pb.js +7222 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/plugin_pb.js +1159 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/provider_pb.js +11300 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_grpc_pb.js +310 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_pb.js +7447 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/source_pb.js +230 -0
- package/.output/server/node_modules/@pulumi/pulumi/resource.js +774 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/asyncIterableUtil.js +103 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/callbacks.js +456 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/config.js +129 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/debuggable.js +137 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/dependsOn.js +64 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/invoke.js +498 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/resource.js +928 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/rpc.js +844 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/settings.js +551 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/stack.js +276 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/state.js +187 -0
- package/.output/server/node_modules/@pulumi/pulumi/utils.js +89 -0
- package/.output/server/node_modules/@pulumi/pulumi/version.js +17 -0
- package/.output/server/node_modules/@pulumi/query/asyncQueryable.js +279 -0
- package/.output/server/node_modules/@pulumi/query/base.js +34 -0
- package/.output/server/node_modules/@pulumi/query/index.js +87 -0
- package/.output/server/node_modules/@pulumi/query/interfaces.js +24 -0
- package/.output/server/node_modules/@pulumi/query/operators.js +1269 -0
- package/.output/server/node_modules/@pulumi/query/package.json +22 -0
- package/.output/server/node_modules/@pulumi/query/sources.js +81 -0
- package/.output/server/node_modules/@pulumi/query/util.js +23 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/index.mjs +78 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +54 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +37 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +36 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +42 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +54 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +33 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +635 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +20 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +23 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +230 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +501 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +70 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +20 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +32 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +91 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +38 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +17 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +64 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +12 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +73 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +35 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +102 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +151 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +32 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +71 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +61 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +24 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +66 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +94 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +60 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +48 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +49 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +53 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +7 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +167 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +33 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +55 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +13 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +40 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +13 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +89 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +221 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +60 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +36 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +158 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/package.json +106 -0
- package/.output/server/node_modules/@sindresorhus/is/dist/index.js +434 -0
- package/.output/server/node_modules/@sindresorhus/is/package.json +96 -0
- package/.output/server/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
- package/.output/server/node_modules/@szmarczak/http-timer/package.json +72 -0
- package/.output/server/node_modules/@trpc/server/dist/http.mjs +7 -0
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +11 -0
- package/.output/server/node_modules/@trpc/server/dist/observable/observable.mjs +175 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/createProxy.mjs +73 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/TRPCError.mjs +78 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/formatter.mjs +5 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/getErrorShape.mjs +29 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.mjs +224 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +12 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +76 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/isAbortError.mjs +7 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +39 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs +569 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/initTRPC.mjs +80 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/middleware.mjs +90 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/parser.mjs +40 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs +194 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rootConfig.mjs +6 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/router.mjs +176 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rpc/codes.mjs +54 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/jsonl.mjs +631 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/sse.mjs +355 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/tracked.mjs +25 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +167 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +15 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +41 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +23 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +23 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +127 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/transformer.mjs +101 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/utils.mjs +83 -0
- package/.output/server/node_modules/@trpc/server/dist/vendor/unpromise/unpromise.mjs +289 -0
- package/.output/server/node_modules/@trpc/server/package.json +156 -0
- package/.output/server/node_modules/@unhead/dom/dist/index.mjs +197 -0
- package/.output/server/node_modules/@unhead/dom/package.json +40 -0
- package/.output/server/node_modules/@unhead/shared/dist/index.mjs +731 -0
- package/.output/server/node_modules/@unhead/shared/package.json +47 -0
- package/.output/server/node_modules/@unhead/ssr/dist/index.mjs +95 -0
- package/.output/server/node_modules/@unhead/ssr/package.json +40 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6690 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1404 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1789 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6654 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1669 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +857 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/acorn/dist/acorn.mjs +6145 -0
- package/.output/server/node_modules/acorn/package.json +50 -0
- package/.output/server/node_modules/better-lock/dist/better_lock.js +377 -0
- package/.output/server/node_modules/better-lock/dist/errors.js +136 -0
- package/.output/server/node_modules/better-lock/dist/index.js +28 -0
- package/.output/server/node_modules/better-lock/dist/internals.js +75 -0
- package/.output/server/node_modules/better-lock/dist/tools.js +109 -0
- package/.output/server/node_modules/better-lock/package.json +60 -0
- package/.output/server/node_modules/cacheable-lookup/package.json +45 -0
- package/.output/server/node_modules/cacheable-lookup/source/index.js +436 -0
- package/.output/server/node_modules/cacheable-request/package.json +56 -0
- package/.output/server/node_modules/cacheable-request/src/index.js +251 -0
- package/.output/server/node_modules/clone-response/package.json +41 -0
- package/.output/server/node_modules/clone-response/src/index.js +17 -0
- package/.output/server/node_modules/confbox/dist/index.mjs +1 -0
- package/.output/server/node_modules/confbox/dist/json5.mjs +14 -0
- package/.output/server/node_modules/confbox/dist/shared/confbox.9388d834.mjs +1 -0
- package/.output/server/node_modules/confbox/dist/shared/confbox.f9f03f05.mjs +7 -0
- package/.output/server/node_modules/confbox/dist/toml.mjs +239 -0
- package/.output/server/node_modules/confbox/dist/yaml.mjs +32 -0
- package/.output/server/node_modules/confbox/package.json +86 -0
- package/.output/server/node_modules/consola/dist/core.mjs +410 -0
- package/.output/server/node_modules/consola/package.json +101 -0
- package/.output/server/node_modules/cross-spawn/index.js +39 -0
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/.output/server/node_modules/cross-spawn/lib/parse.js +91 -0
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/.output/server/node_modules/cross-spawn/package.json +73 -0
- package/.output/server/node_modules/decompress-response/index.js +58 -0
- package/.output/server/node_modules/decompress-response/package.json +56 -0
- package/.output/server/node_modules/defer-to-connect/dist/source/index.js +47 -0
- package/.output/server/node_modules/defer-to-connect/package.json +71 -0
- package/.output/server/node_modules/dettle/dist/debounce.js +91 -0
- package/.output/server/node_modules/dettle/dist/index.js +5 -0
- package/.output/server/node_modules/dettle/dist/throttle.js +12 -0
- package/.output/server/node_modules/dettle/package.json +28 -0
- package/.output/server/node_modules/devalue/index.js +3 -0
- package/.output/server/node_modules/devalue/package.json +34 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +160 -0
- package/.output/server/node_modules/devalue/src/stringify.js +232 -0
- package/.output/server/node_modules/devalue/src/uneval.js +351 -0
- package/.output/server/node_modules/devalue/src/utils.js +113 -0
- package/.output/server/node_modules/dotenv/config.js +9 -0
- package/.output/server/node_modules/dotenv/lib/cli-options.js +11 -0
- package/.output/server/node_modules/dotenv/lib/env-options.js +24 -0
- package/.output/server/node_modules/dotenv/lib/main.js +361 -0
- package/.output/server/node_modules/dotenv/package.json +61 -0
- package/.output/server/node_modules/end-of-stream/index.js +94 -0
- package/.output/server/node_modules/end-of-stream/package.json +37 -0
- package/.output/server/node_modules/entities/lib/decode.js +536 -0
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/entities/package.json +90 -0
- package/.output/server/node_modules/esprima/dist/esprima.js +6709 -0
- package/.output/server/node_modules/esprima/package.json +112 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/execa/index.js +268 -0
- package/.output/server/node_modules/execa/lib/command.js +52 -0
- package/.output/server/node_modules/execa/lib/error.js +88 -0
- package/.output/server/node_modules/execa/lib/kill.js +115 -0
- package/.output/server/node_modules/execa/lib/promise.js +46 -0
- package/.output/server/node_modules/execa/lib/stdio.js +52 -0
- package/.output/server/node_modules/execa/lib/stream.js +97 -0
- package/.output/server/node_modules/execa/package.json +74 -0
- package/.output/server/node_modules/google-protobuf/google/protobuf/empty_pb.js +147 -0
- package/.output/server/node_modules/google-protobuf/google/protobuf/struct_pb.js +955 -0
- package/.output/server/node_modules/google-protobuf/google-protobuf.js +149 -0
- package/.output/server/node_modules/google-protobuf/package.json +35 -0
- package/.output/server/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
- package/.output/server/node_modules/got/dist/source/as-promise/index.js +176 -0
- package/.output/server/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
- package/.output/server/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
- package/.output/server/node_modules/got/dist/source/as-promise/types.js +42 -0
- package/.output/server/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
- package/.output/server/node_modules/got/dist/source/core/index.js +1505 -0
- package/.output/server/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
- package/.output/server/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
- package/.output/server/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
- package/.output/server/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
- package/.output/server/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
- package/.output/server/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
- package/.output/server/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
- package/.output/server/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
- package/.output/server/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
- package/.output/server/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
- package/.output/server/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
- package/.output/server/node_modules/got/dist/source/create.js +240 -0
- package/.output/server/node_modules/got/dist/source/index.js +132 -0
- package/.output/server/node_modules/got/dist/source/types.js +2 -0
- package/.output/server/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
- package/.output/server/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
- package/.output/server/node_modules/got/package.json +131 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/http-cache-semantics/index.js +674 -0
- package/.output/server/node_modules/http-cache-semantics/package.json +18 -0
- package/.output/server/node_modules/http2-wrapper/package.json +54 -0
- package/.output/server/node_modules/http2-wrapper/source/agent.js +670 -0
- package/.output/server/node_modules/http2-wrapper/source/auto.js +149 -0
- package/.output/server/node_modules/http2-wrapper/source/client-request.js +445 -0
- package/.output/server/node_modules/http2-wrapper/source/incoming-message.js +58 -0
- package/.output/server/node_modules/http2-wrapper/source/index.js +28 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/errors.js +45 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
- package/.output/server/node_modules/human-signals/build/src/core.js +273 -0
- package/.output/server/node_modules/human-signals/build/src/main.js +71 -0
- package/.output/server/node_modules/human-signals/build/src/realtime.js +19 -0
- package/.output/server/node_modules/human-signals/build/src/signals.js +35 -0
- package/.output/server/node_modules/human-signals/package.json +64 -0
- package/.output/server/node_modules/import-meta-resolve/index.js +47 -0
- package/.output/server/node_modules/import-meta-resolve/lib/errors.js +507 -0
- package/.output/server/node_modules/import-meta-resolve/lib/get-format.js +159 -0
- package/.output/server/node_modules/import-meta-resolve/lib/package-json-reader.js +177 -0
- package/.output/server/node_modules/import-meta-resolve/lib/resolve.js +1297 -0
- package/.output/server/node_modules/import-meta-resolve/lib/utils.js +47 -0
- package/.output/server/node_modules/import-meta-resolve/package.json +95 -0
- package/.output/server/node_modules/is-stream/index.js +28 -0
- package/.output/server/node_modules/is-stream/package.json +42 -0
- package/.output/server/node_modules/isexe/index.js +57 -0
- package/.output/server/node_modules/isexe/mode.js +41 -0
- package/.output/server/node_modules/isexe/package.json +31 -0
- package/.output/server/node_modules/isexe/windows.js +42 -0
- package/.output/server/node_modules/js-yaml/index.js +7 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/.output/server/node_modules/js-yaml/package.json +49 -0
- package/.output/server/node_modules/json-buffer/index.js +58 -0
- package/.output/server/node_modules/json-buffer/package.json +34 -0
- package/.output/server/node_modules/keyv/package.json +57 -0
- package/.output/server/node_modules/keyv/src/index.js +259 -0
- package/.output/server/node_modules/lodash.camelcase/index.js +599 -0
- package/.output/server/node_modules/lodash.camelcase/package.json +19 -0
- package/.output/server/node_modules/long/package.json +50 -0
- package/.output/server/node_modules/long/umd/index.js +1432 -0
- package/.output/server/node_modules/long/umd/package.json +3 -0
- package/.output/server/node_modules/lowercase-keys/index.js +10 -0
- package/.output/server/node_modules/lowercase-keys/package.json +38 -0
- package/.output/server/node_modules/merge-stream/index.js +41 -0
- package/.output/server/node_modules/merge-stream/package.json +19 -0
- package/.output/server/node_modules/mimic-fn/index.js +13 -0
- package/.output/server/node_modules/mimic-fn/package.json +42 -0
- package/.output/server/node_modules/mlly/dist/index.mjs +2606 -0
- package/.output/server/node_modules/mlly/package.json +50 -0
- package/.output/server/node_modules/normalize-url/index.js +216 -0
- package/.output/server/node_modules/normalize-url/package.json +50 -0
- package/.output/server/node_modules/npm-run-path/index.js +47 -0
- package/.output/server/node_modules/npm-run-path/package.json +44 -0
- package/.output/server/node_modules/nypm/dist/index.mjs +306 -0
- package/.output/server/node_modules/nypm/package.json +60 -0
- package/.output/server/node_modules/once/once.js +42 -0
- package/.output/server/node_modules/once/package.json +33 -0
- package/.output/server/node_modules/onetime/index.js +44 -0
- package/.output/server/node_modules/onetime/package.json +43 -0
- package/.output/server/node_modules/p-cancelable/index.js +111 -0
- package/.output/server/node_modules/p-cancelable/package.json +49 -0
- package/.output/server/node_modules/path-key/index.js +16 -0
- package/.output/server/node_modules/path-key/package.json +39 -0
- package/.output/server/node_modules/pathe/dist/index.mjs +1 -0
- package/.output/server/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
- package/.output/server/node_modules/pathe/package.json +48 -0
- package/.output/server/node_modules/pkg-types/dist/index.mjs +156 -0
- package/.output/server/node_modules/pkg-types/package.json +47 -0
- package/.output/server/node_modules/promise-make-counter/dist/index.js +24 -0
- package/.output/server/node_modules/promise-make-counter/package.json +32 -0
- package/.output/server/node_modules/promise-make-naked/dist/index.js +25 -0
- package/.output/server/node_modules/promise-make-naked/dist/utils.js +4 -0
- package/.output/server/node_modules/promise-make-naked/package.json +27 -0
- package/.output/server/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/api.json +118 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/type.json +202 -0
- package/.output/server/node_modules/protobufjs/index.js +4 -0
- package/.output/server/node_modules/protobufjs/package.json +112 -0
- package/.output/server/node_modules/protobufjs/src/common.js +399 -0
- package/.output/server/node_modules/protobufjs/src/converter.js +301 -0
- package/.output/server/node_modules/protobufjs/src/decoder.js +129 -0
- package/.output/server/node_modules/protobufjs/src/encoder.js +100 -0
- package/.output/server/node_modules/protobufjs/src/enum.js +198 -0
- package/.output/server/node_modules/protobufjs/src/field.js +377 -0
- package/.output/server/node_modules/protobufjs/src/index-light.js +104 -0
- package/.output/server/node_modules/protobufjs/src/index-minimal.js +36 -0
- package/.output/server/node_modules/protobufjs/src/index.js +12 -0
- package/.output/server/node_modules/protobufjs/src/mapfield.js +126 -0
- package/.output/server/node_modules/protobufjs/src/message.js +139 -0
- package/.output/server/node_modules/protobufjs/src/method.js +160 -0
- package/.output/server/node_modules/protobufjs/src/namespace.js +433 -0
- package/.output/server/node_modules/protobufjs/src/object.js +243 -0
- package/.output/server/node_modules/protobufjs/src/oneof.js +203 -0
- package/.output/server/node_modules/protobufjs/src/parse.js +893 -0
- package/.output/server/node_modules/protobufjs/src/reader.js +416 -0
- package/.output/server/node_modules/protobufjs/src/reader_buffer.js +51 -0
- package/.output/server/node_modules/protobufjs/src/root.js +368 -0
- package/.output/server/node_modules/protobufjs/src/roots.js +18 -0
- package/.output/server/node_modules/protobufjs/src/rpc/service.js +142 -0
- package/.output/server/node_modules/protobufjs/src/rpc.js +36 -0
- package/.output/server/node_modules/protobufjs/src/service.js +167 -0
- package/.output/server/node_modules/protobufjs/src/tokenize.js +416 -0
- package/.output/server/node_modules/protobufjs/src/type.js +589 -0
- package/.output/server/node_modules/protobufjs/src/types.js +196 -0
- package/.output/server/node_modules/protobufjs/src/util/longbits.js +200 -0
- package/.output/server/node_modules/protobufjs/src/util/minimal.js +438 -0
- package/.output/server/node_modules/protobufjs/src/util.js +212 -0
- package/.output/server/node_modules/protobufjs/src/verifier.js +177 -0
- package/.output/server/node_modules/protobufjs/src/wrappers.js +102 -0
- package/.output/server/node_modules/protobufjs/src/writer.js +465 -0
- package/.output/server/node_modules/protobufjs/src/writer_buffer.js +85 -0
- package/.output/server/node_modules/pump/index.js +86 -0
- package/.output/server/node_modules/pump/package.json +24 -0
- package/.output/server/node_modules/quick-lru/index.js +123 -0
- package/.output/server/node_modules/quick-lru/package.json +43 -0
- package/.output/server/node_modules/remeda/dist/chunk-23J5WHPE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-2H7222YL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-2TTHCYUC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3AO76THC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3MWN2VHC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3X47EJDR.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-54BCGHSM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5DU4ITSF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5G3KY7YR.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5K4XWC27.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5LYW332I.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5O3FBXU6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5VD5RID3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6GTAPB47.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6HBEBUDI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6IHL7GXT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6MJCR2TC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-73TZMTEA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7BKSRZNG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7EFS5WOU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7KI2QQIQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7LYAC624.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7QX4DO53.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7ROMSESG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-A3FCILQE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ANXBDSUI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ATQJ6737.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-AWX7RJXY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BLEEZ23Z.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BO3LQZNF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BONXESQ2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BQ7TSIFE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BTFWISLJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BYFE4FDX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BZNENX2T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C4ACUJGS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C4OSHTCI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C6IMN7SF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CAZXBO45.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CETFG6TX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CGDTCOHY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CGU6DJQK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-COZRMC32.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DAHUGBAA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DAQH7UR3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DEVKGLTN.js +2 -0
- package/.output/server/node_modules/remeda/dist/chunk-DH3BPT6T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DSLWSGID.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DUDVLQA2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-E3EM3KJY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-E5GMYZMA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EJCQEWX4.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EKGXROMD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EM24PB7A.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EMIEIAAH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ENOHV5LT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ENXBNJ36.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-F6MOVT3B.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FB2ENREB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FDH4IRIM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FFFVS7XT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FJ47D26D.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FMPZ2CLX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FTGV3QMT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FW6RZCGF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-G4OU46SC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-GJJNKHO2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-GK5I7C4J.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-H2MMZB4H.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HBSRBOZK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HJSE3ESO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HO4FFX2R.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HQOQUMZV.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HV3WACXG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-I3D2BSWJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-I76XIBD5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ICQWNDYD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IEE7G5JG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IFSMCGFE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IUVYQYF2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-J3IRE4DI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JET27MOQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JJZ7E4YG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JK3VNB42.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JWKJXNB2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JYNHUNML.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K26VP6CL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K3UJMX27.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K5HTIQFL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K5LCXBBG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KCAOR2LA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KIA3HX3M.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KQINSXIJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KSDEFWLH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LAI77QME.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LFEOZTJ2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LIVAT3FO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LKOWEUPS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-MD7HNZ54.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-MQWMWXZY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-N4JUOEMS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NGEN63UD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NJXNQM3G.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NMC53JVB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NMJS7ULY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NP7PEDI6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OC26KGXM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OEI2BOBZ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OIQJEOF7.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OWH4IQQW.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OYJAL6JK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PJOV2RDB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PULGOXDA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PWMUXL7T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PZOXR343.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-QEKOZYJ5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-R72GEKLP.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RAAYCPUM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RBODUO3Q.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RIKUOZVG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RLZQTLGN.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RTWSSDNQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RU7WR4KH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RUHQUI2Z.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RXDTYBQM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-S23N53O3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-S3CYJTB5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SFZGYJFI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SGAFZVQH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SIBGEYD6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SIQPZPLZ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SOGKZP3K.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-T5XG33UI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-TOHMEB3C.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U2GFW3LV.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U54ONDS6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U753ZCO5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UA6DVSZ3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UEZTW4YU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UIZMRUOL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UWLP4KOD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-V6HCOU6T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VBBPTWMC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VCURCCIJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VCYTMP4D.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VFKB5IBK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VFSOOVKJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VMV5GVZ5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VPCXVUT7.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-W2HQ33EO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-W3QI2BKC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WIMS2EYK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WT5BLBHJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WY3JJUR4.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WZSGNJRX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-X5E5CJJQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XBEN2OB2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XJHR6NID.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XMLUDZIW.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XSF7OVJO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XZ6COQKM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-Y67GVJD3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-YL2OFO3L.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-YVMG2XEU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ZF7KX2VP.js +1 -0
- package/.output/server/node_modules/remeda/dist/index.js +1 -0
- package/.output/server/node_modules/remeda/package.json +88 -0
- package/.output/server/node_modules/resolve-alpn/index.js +43 -0
- package/.output/server/node_modules/resolve-alpn/package.json +34 -0
- package/.output/server/node_modules/responselike/package.json +39 -0
- package/.output/server/node_modules/responselike/src/index.js +34 -0
- package/.output/server/node_modules/semver/classes/comparator.js +141 -0
- package/.output/server/node_modules/semver/classes/range.js +554 -0
- package/.output/server/node_modules/semver/classes/semver.js +302 -0
- package/.output/server/node_modules/semver/functions/clean.js +6 -0
- package/.output/server/node_modules/semver/functions/cmp.js +52 -0
- package/.output/server/node_modules/semver/functions/coerce.js +60 -0
- package/.output/server/node_modules/semver/functions/compare-build.js +7 -0
- package/.output/server/node_modules/semver/functions/compare-loose.js +3 -0
- package/.output/server/node_modules/semver/functions/compare.js +5 -0
- package/.output/server/node_modules/semver/functions/diff.js +65 -0
- package/.output/server/node_modules/semver/functions/eq.js +3 -0
- package/.output/server/node_modules/semver/functions/gt.js +3 -0
- package/.output/server/node_modules/semver/functions/gte.js +3 -0
- package/.output/server/node_modules/semver/functions/inc.js +19 -0
- package/.output/server/node_modules/semver/functions/lt.js +3 -0
- package/.output/server/node_modules/semver/functions/lte.js +3 -0
- package/.output/server/node_modules/semver/functions/major.js +3 -0
- package/.output/server/node_modules/semver/functions/minor.js +3 -0
- package/.output/server/node_modules/semver/functions/neq.js +3 -0
- package/.output/server/node_modules/semver/functions/parse.js +16 -0
- package/.output/server/node_modules/semver/functions/patch.js +3 -0
- package/.output/server/node_modules/semver/functions/prerelease.js +6 -0
- package/.output/server/node_modules/semver/functions/rcompare.js +3 -0
- package/.output/server/node_modules/semver/functions/rsort.js +3 -0
- package/.output/server/node_modules/semver/functions/satisfies.js +10 -0
- package/.output/server/node_modules/semver/functions/sort.js +3 -0
- package/.output/server/node_modules/semver/functions/valid.js +6 -0
- package/.output/server/node_modules/semver/index.js +89 -0
- package/.output/server/node_modules/semver/internal/constants.js +35 -0
- package/.output/server/node_modules/semver/internal/debug.js +9 -0
- package/.output/server/node_modules/semver/internal/identifiers.js +23 -0
- package/.output/server/node_modules/semver/internal/lrucache.js +40 -0
- package/.output/server/node_modules/semver/internal/parse-options.js +15 -0
- package/.output/server/node_modules/semver/internal/re.js +217 -0
- package/.output/server/node_modules/semver/package.json +77 -0
- package/.output/server/node_modules/semver/preload.js +2 -0
- package/.output/server/node_modules/semver/ranges/gtr.js +4 -0
- package/.output/server/node_modules/semver/ranges/intersects.js +7 -0
- package/.output/server/node_modules/semver/ranges/ltr.js +4 -0
- package/.output/server/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/.output/server/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/.output/server/node_modules/semver/ranges/min-version.js +61 -0
- package/.output/server/node_modules/semver/ranges/outside.js +80 -0
- package/.output/server/node_modules/semver/ranges/simplify.js +47 -0
- package/.output/server/node_modules/semver/ranges/subset.js +247 -0
- package/.output/server/node_modules/semver/ranges/to-comparators.js +8 -0
- package/.output/server/node_modules/semver/ranges/valid.js +11 -0
- package/.output/server/node_modules/shebang-command/index.js +19 -0
- package/.output/server/node_modules/shebang-command/package.json +34 -0
- package/.output/server/node_modules/shebang-regex/index.js +2 -0
- package/.output/server/node_modules/shebang-regex/package.json +35 -0
- package/.output/server/node_modules/signal-exit/index.js +202 -0
- package/.output/server/node_modules/signal-exit/package.json +38 -0
- package/.output/server/node_modules/signal-exit/signals.js +53 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/strip-final-newline/index.js +16 -0
- package/.output/server/node_modules/strip-final-newline/package.json +40 -0
- package/.output/server/node_modules/stubborn-fs/dist/attemptify.js +19 -0
- package/.output/server/node_modules/stubborn-fs/dist/constants.js +8 -0
- package/.output/server/node_modules/stubborn-fs/dist/handlers.js +36 -0
- package/.output/server/node_modules/stubborn-fs/dist/index.js +53 -0
- package/.output/server/node_modules/stubborn-fs/dist/retryify.js +46 -0
- package/.output/server/node_modules/stubborn-fs/dist/retryify_queue.js +62 -0
- package/.output/server/node_modules/stubborn-fs/package.json +28 -0
- package/.output/server/node_modules/tiny-readdir/dist/constants.js +9 -0
- package/.output/server/node_modules/tiny-readdir/dist/index.js +185 -0
- package/.output/server/node_modules/tiny-readdir/dist/utils.js +9 -0
- package/.output/server/node_modules/tiny-readdir/package.json +34 -0
- package/.output/server/node_modules/tinyexec/dist/main.js +578 -0
- package/.output/server/node_modules/tinyexec/package.json +66 -0
- package/.output/server/node_modules/tmp/lib/tmp.js +784 -0
- package/.output/server/node_modules/tmp/package.json +56 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +630 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +748 -0
- package/.output/server/node_modules/unhead/package.json +46 -0
- package/.output/server/node_modules/upath/build/code/upath.js +171 -0
- package/.output/server/node_modules/upath/package.json +60 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
- package/.output/server/node_modules/watcher/dist/constants.js +16 -0
- package/.output/server/node_modules/watcher/dist/enums.js +35 -0
- package/.output/server/node_modules/watcher/dist/lazy_map_set.js +81 -0
- package/.output/server/node_modules/watcher/dist/utils.js +120 -0
- package/.output/server/node_modules/watcher/dist/watcher.js +396 -0
- package/.output/server/node_modules/watcher/dist/watcher_handler.js +248 -0
- package/.output/server/node_modules/watcher/dist/watcher_locker.js +139 -0
- package/.output/server/node_modules/watcher/dist/watcher_locks_resolver.js +42 -0
- package/.output/server/node_modules/watcher/dist/watcher_poller.js +116 -0
- package/.output/server/node_modules/watcher/dist/watcher_stats.js +29 -0
- package/.output/server/node_modules/watcher/package.json +37 -0
- package/.output/server/node_modules/which/package.json +43 -0
- package/.output/server/node_modules/which/which.js +125 -0
- package/.output/server/node_modules/wrappy/package.json +29 -0
- package/.output/server/node_modules/wrappy/wrappy.js +33 -0
- package/.output/server/node_modules/zod/lib/index.mjs +4382 -0
- package/.output/server/node_modules/zod/package.json +122 -0
- package/.output/server/package.json +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Cbvq2xei.js","./rjBY3mWU.js","./error-404.SWzu_puR.css","./DVgDGs8k.js","./error-500.Bkv_zTjr.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
/**
|
|
3
|
+
* @vue/shared v3.5.13
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**//*! #__NO_SIDE_EFFECTS__ */function pf(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ge={},Jo=[],Tn=()=>{},LS=()=>!1,Rs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vf=e=>e.startsWith("onUpdate:"),ot=Object.assign,yf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zS=Object.prototype.hasOwnProperty,Ye=(e,t)=>zS.call(e,t),Ce=Array.isArray,Qo=e=>Xl(e)==="[object Map]",cy=e=>Xl(e)==="[object Set]",xe=e=>typeof e=="function",et=e=>typeof e=="string",ci=e=>typeof e=="symbol",Ze=e=>e!==null&&typeof e=="object",bf=e=>(Ze(e)||xe(e))&&xe(e.then)&&xe(e.catch),dy=Object.prototype.toString,Xl=e=>dy.call(e),BS=e=>Xl(e).slice(8,-1),fy=e=>Xl(e)==="[object Object]",wf=e=>et(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,er=pf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},HS=/-(\w)/g,Lt=Zl(e=>e.replace(HS,(t,n)=>n?n.toUpperCase():"")),FS=/\B([A-Z])/g,zi=Zl(e=>e.replace(FS,"-$1").toLowerCase()),yr=Zl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ru=Zl(e=>e?`on${yr(e)}`:""),$t=(e,t)=>!Object.is(e,t),Vu=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},hy=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},GS=e=>{const t=parseFloat(e);return isNaN(t)?e:t},my=e=>{const t=et(e)?Number(e):NaN;return isNaN(t)?e:t};let rm;const Jl=()=>rm||(rm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ft(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=et(i)?YS(i):ft(i);if(o)for(const r in o)t[r]=o[r]}return t}else if(et(e)||Ze(e))return e}const WS=/;(?![^(]*\))/g,US=/:([^]+)/,jS=/\/\*[^]*?\*\//g;function YS(e){const t={};return e.replace(jS,"").split(WS).forEach(n=>{if(n){const i=n.split(US);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function jt(e){let t="";if(et(e))t=e;else if(Ce(e))for(let n=0;n<e.length;n++){const i=jt(e[n]);i&&(t+=i+" ")}else if(Ze(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function _f(e){if(!e)return null;let{class:t,style:n}=e;return t&&!et(t)&&(e.class=jt(t)),n&&(e.style=ft(n)),e}const KS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qS=pf(KS);function gy(e){return!!e||e===""}const py=e=>!!(e&&e.__v_isRef===!0),Jn=e=>et(e)?e:e==null?"":Ce(e)||Ze(e)&&(e.toString===dy||!xe(e.toString))?py(e)?Jn(e.value):JSON.stringify(e,vy,2):String(e),vy=(e,t)=>py(t)?vy(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o],r)=>(n[Lu(i,r)+" =>"]=o,n),{})}:cy(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lu(n))}:ci(t)?Lu(t):Ze(t)&&!Ce(t)&&!fy(t)?String(t):t,Lu=(e,t="")=>{var n;return ci(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
+
* @vue/reactivity v3.5.13
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/let Ot;class yy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ot,!t&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ot;try{return Ot=this,t()}finally{Ot=n}}}on(){Ot=this}off(){Ot=this.parent}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Bi(e){return new yy(e)}function br(){return Ot}function it(e,t=!1){Ot&&Ot.cleanups.push(e)}let qe;const zu=new WeakSet;class by{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ot&&Ot.active&&Ot.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zu.has(this)&&(zu.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||_y(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sm(this),Sy(this);const t=qe,n=vn;qe=this,vn=!0;try{return this.fn()}finally{Cy(this),qe=t,vn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)xf(t);this.deps=this.depsTail=void 0,sm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zu.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vc(this)&&this.run()}get dirty(){return Vc(this)}}let wy=0,Xr,Zr;function _y(e,t=!1){if(e.flags|=8,t){e.next=Zr,Zr=e;return}e.next=Xr,Xr=e}function Sf(){wy++}function Cf(){if(--wy>0)return;if(Zr){let t=Zr;for(Zr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xr;){let t=Xr;for(Xr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function Sy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Cy(e){let t,n=e.depsTail,i=n;for(;i;){const o=i.prevDep;i.version===-1?(i===n&&(n=o),xf(i),XS(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=n}function Vc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(xy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function xy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===us))return;e.globalVersion=us;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Vc(e)){e.flags&=-3;return}const n=qe,i=vn;qe=e,vn=!0;try{Sy(e);const o=e.fn(e._value);(t.version===0||$t(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{qe=n,vn=i,Cy(e),e.flags&=-3}}function xf(e,t=!1){const{dep:n,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)xf(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function XS(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let vn=!0;const Ey=[];function Hi(){Ey.push(vn),vn=!1}function Fi(){const e=Ey.pop();vn=e===void 0?!0:e}function sm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=qe;qe=void 0;try{t()}finally{qe=n}}}let us=0;class ZS{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ql{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!qe||!vn||qe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==qe)n=this.activeLink=new ZS(qe,this),qe.deps?(n.prevDep=qe.depsTail,qe.depsTail.nextDep=n,qe.depsTail=n):qe.deps=qe.depsTail=n,ky(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=qe.depsTail,n.nextDep=void 0,qe.depsTail.nextDep=n,qe.depsTail=n,qe.deps===n&&(qe.deps=i)}return n}trigger(t){this.version++,us++,this.notify(t)}notify(t){Sf();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Cf()}}}function ky(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)ky(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ja=new WeakMap,uo=Symbol(""),Lc=Symbol(""),cs=Symbol("");function kt(e,t,n){if(vn&&qe){let i=Ja.get(e);i||Ja.set(e,i=new Map);let o=i.get(n);o||(i.set(n,o=new Ql),o.map=i,o.key=n),o.track()}}function qn(e,t,n,i,o,r){const s=Ja.get(e);if(!s){us++;return}const a=l=>{l&&l.trigger()};if(Sf(),t==="clear")s.forEach(a);else{const l=Ce(e),u=l&&wf(n);if(l&&n==="length"){const c=Number(i);s.forEach((d,f)=>{(f==="length"||f===cs||!ci(f)&&f>=c)&&a(d)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),u&&a(s.get(cs)),t){case"add":l?u&&a(s.get("length")):(a(s.get(uo)),Qo(e)&&a(s.get(Lc)));break;case"delete":l||(a(s.get(uo)),Qo(e)&&a(s.get(Lc)));break;case"set":Qo(e)&&a(s.get(uo));break}}Cf()}function JS(e,t){const n=Ja.get(e);return n&&n.get(t)}function Vo(e){const t=_e(e);return t===e?t:(kt(t,"iterate",cs),un(e)?t:t.map(At))}function eu(e){return kt(e=_e(e),"iterate",cs),e}const QS={__proto__:null,[Symbol.iterator](){return Bu(this,Symbol.iterator,At)},concat(...e){return Vo(this).concat(...e.map(t=>Ce(t)?Vo(t):t))},entries(){return Bu(this,"entries",e=>(e[1]=At(e[1]),e))},every(e,t){return Wn(this,"every",e,t,void 0,arguments)},filter(e,t){return Wn(this,"filter",e,t,n=>n.map(At),arguments)},find(e,t){return Wn(this,"find",e,t,At,arguments)},findIndex(e,t){return Wn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wn(this,"findLast",e,t,At,arguments)},findLastIndex(e,t){return Wn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hu(this,"includes",e)},indexOf(...e){return Hu(this,"indexOf",e)},join(e){return Vo(this).join(e)},lastIndexOf(...e){return Hu(this,"lastIndexOf",e)},map(e,t){return Wn(this,"map",e,t,void 0,arguments)},pop(){return Mr(this,"pop")},push(...e){return Mr(this,"push",e)},reduce(e,...t){return am(this,"reduce",e,t)},reduceRight(e,...t){return am(this,"reduceRight",e,t)},shift(){return Mr(this,"shift")},some(e,t){return Wn(this,"some",e,t,void 0,arguments)},splice(...e){return Mr(this,"splice",e)},toReversed(){return Vo(this).toReversed()},toSorted(e){return Vo(this).toSorted(e)},toSpliced(...e){return Vo(this).toSpliced(...e)},unshift(...e){return Mr(this,"unshift",e)},values(){return Bu(this,"values",At)}};function Bu(e,t,n){const i=eu(e),o=i[t]();return i!==e&&!un(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.value&&(r.value=n(r.value)),r}),o}const eC=Array.prototype;function Wn(e,t,n,i,o,r){const s=eu(e),a=s!==e&&!un(e),l=s[t];if(l!==eC[t]){const d=l.apply(e,r);return a?At(d):d}let u=n;s!==e&&(a?u=function(d,f){return n.call(this,At(d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=l.call(s,u,i);return a&&o?o(c):c}function am(e,t,n,i){const o=eu(e);let r=n;return o!==e&&(un(e)?n.length>3&&(r=function(s,a,l){return n.call(this,s,a,l,e)}):r=function(s,a,l){return n.call(this,s,At(a),l,e)}),o[t](r,...i)}function Hu(e,t,n){const i=_e(e);kt(i,"iterate",cs);const o=i[t](...n);return(o===-1||o===!1)&&Af(n[0])?(n[0]=_e(n[0]),i[t](...n)):o}function Mr(e,t,n=[]){Hi(),Sf();const i=_e(e)[t].apply(e,n);return Cf(),Fi(),i}const tC=pf("__proto__,__v_isRef,__isVue"),Ay=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ci));function nC(e){ci(e)||(e=String(e));const t=_e(this);return kt(t,"has",e),t.hasOwnProperty(e)}class Dy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(o?r?fC:My:r?Ty:Iy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const s=Ce(t);if(!o){let l;if(s&&(l=QS[n]))return l;if(n==="hasOwnProperty")return nC}const a=Reflect.get(t,n,Ve(t)?t:i);return(ci(n)?Ay.has(n):tC(n))||(o||kt(t,"get",n),r)?a:Ve(a)?s&&wf(n)?a:a.value:Ze(a)?o?wr(a):at(a):a}}class Py extends Dy{constructor(t=!1){super(!1,t)}set(t,n,i,o){let r=t[n];if(!this._isShallow){const l=$i(r);if(!un(i)&&!$i(i)&&(r=_e(r),i=_e(i)),!Ce(t)&&Ve(r)&&!Ve(i))return l?!1:(r.value=i,!0)}const s=Ce(t)&&wf(n)?Number(n)<t.length:Ye(t,n),a=Reflect.set(t,n,i,Ve(t)?t:o);return t===_e(o)&&(s?$t(i,r)&&qn(t,"set",n,i):qn(t,"add",n,i)),a}deleteProperty(t,n){const i=Ye(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&i&&qn(t,"delete",n,void 0),o}has(t,n){const i=Reflect.has(t,n);return(!ci(n)||!Ay.has(n))&&kt(t,"has",n),i}ownKeys(t){return kt(t,"iterate",Ce(t)?"length":uo),Reflect.ownKeys(t)}}class iC extends Dy{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const oC=new Py,rC=new iC,sC=new Py(!0);const zc=e=>e,Js=e=>Reflect.getPrototypeOf(e);function aC(e,t,n){return function(...i){const o=this.__v_raw,r=_e(o),s=Qo(r),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...i),c=n?zc:t?Bc:At;return!t&&kt(r,"iterate",l?Lc:uo),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Qs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lC(e,t){const n={get(o){const r=this.__v_raw,s=_e(r),a=_e(o);e||($t(o,a)&&kt(s,"get",o),kt(s,"get",a));const{has:l}=Js(s),u=t?zc:e?Bc:At;if(l.call(s,o))return u(r.get(o));if(l.call(s,a))return u(r.get(a));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&kt(_e(o),"iterate",uo),Reflect.get(o,"size",o)},has(o){const r=this.__v_raw,s=_e(r),a=_e(o);return e||($t(o,a)&&kt(s,"has",o),kt(s,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const s=this,a=s.__v_raw,l=_e(a),u=t?zc:e?Bc:At;return!e&&kt(l,"iterate",uo),a.forEach((c,d)=>o.call(r,u(c),u(d),s))}};return ot(n,e?{add:Qs("add"),set:Qs("set"),delete:Qs("delete"),clear:Qs("clear")}:{add(o){!t&&!un(o)&&!$i(o)&&(o=_e(o));const r=_e(this);return Js(r).has.call(r,o)||(r.add(o),qn(r,"add",o,o)),this},set(o,r){!t&&!un(r)&&!$i(r)&&(r=_e(r));const s=_e(this),{has:a,get:l}=Js(s);let u=a.call(s,o);u||(o=_e(o),u=a.call(s,o));const c=l.call(s,o);return s.set(o,r),u?$t(r,c)&&qn(s,"set",o,r):qn(s,"add",o,r),this},delete(o){const r=_e(this),{has:s,get:a}=Js(r);let l=s.call(r,o);l||(o=_e(o),l=s.call(r,o)),a&&a.call(r,o);const u=r.delete(o);return l&&qn(r,"delete",o,void 0),u},clear(){const o=_e(this),r=o.size!==0,s=o.clear();return r&&qn(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=aC(o,e,t)}),n}function Ef(e,t){const n=lC(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(Ye(n,o)&&o in i?n:i,o,r)}const uC={get:Ef(!1,!1)},cC={get:Ef(!1,!0)},dC={get:Ef(!0,!1)};const Iy=new WeakMap,Ty=new WeakMap,My=new WeakMap,fC=new WeakMap;function hC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mC(e){return e.__v_skip||!Object.isExtensible(e)?0:hC(BS(e))}function at(e){return $i(e)?e:kf(e,!1,oC,uC,Iy)}function jo(e){return kf(e,!1,sC,cC,Ty)}function wr(e){return kf(e,!0,rC,dC,My)}function kf(e,t,n,i,o){if(!Ze(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const s=mC(e);if(s===0)return e;const a=new Proxy(e,s===2?i:n);return o.set(e,a),a}function oi(e){return $i(e)?oi(e.__v_raw):!!(e&&e.__v_isReactive)}function $i(e){return!!(e&&e.__v_isReadonly)}function un(e){return!!(e&&e.__v_isShallow)}function Af(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Mn(e){return!Ye(e,"__v_skip")&&Object.isExtensible(e)&&hy(e,"__v_skip",!0),e}const At=e=>Ze(e)?at(e):e,Bc=e=>Ze(e)?wr(e):e;function Ve(e){return e?e.__v_isRef===!0:!1}function ne(e){return Ny(e,!1)}function Se(e){return Ny(e,!0)}function Ny(e,t){return Ve(e)?e:new gC(e,t)}class gC{constructor(t,n){this.dep=new Ql,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:_e(t),this._value=n?t:At(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||un(t)||$i(t);t=i?t:_e(t),$t(t,n)&&(this._rawValue=t,this._value=i?t:At(t),this.dep.trigger())}}function Q(e){return Ve(e)?e.value:e}function Le(e){return xe(e)?e():Q(e)}const pC={get:(e,t,n)=>t==="__v_raw"?e:Q(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Ve(o)&&!Ve(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function Oy(e){return oi(e)?e:new Proxy(e,pC)}class vC{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ql,{get:i,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function $y(e){return new vC(e)}function Vs(e){const t=Ce(e)?new Array(e.length):{};for(const n in e)t[n]=Ry(e,n);return t}class yC{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return JS(_e(this._object),this._key)}}class bC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function de(e,t,n){return Ve(e)?e:xe(e)?new bC(e):Ze(e)&&arguments.length>1?Ry(e,t,n):ne(e)}function Ry(e,t,n){const i=e[t];return Ve(i)?i:new yC(e,t,n)}class wC{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ql(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=us-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&qe!==this)return _y(this,!0),!0}get value(){const t=this.dep.track();return xy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _C(e,t,n=!1){let i,o;return xe(e)?i=e:(i=e.get,o=e.set),new wC(i,o,n)}const ea={},Qa=new WeakMap;let eo;function SC(e,t=!1,n=eo){if(n){let i=Qa.get(n);i||Qa.set(n,i=[]),i.push(e)}}function CC(e,t,n=Ge){const{immediate:i,deep:o,once:r,scheduler:s,augmentJob:a,call:l}=n,u=w=>o?w:un(w)||o===!1||o===0?Xn(w,1):Xn(w);let c,d,f,h,g=!1,m=!1;if(Ve(e)?(d=()=>e.value,g=un(e)):oi(e)?(d=()=>u(e),g=!0):Ce(e)?(m=!0,g=e.some(w=>oi(w)||un(w)),d=()=>e.map(w=>{if(Ve(w))return w.value;if(oi(w))return u(w);if(xe(w))return l?l(w,2):w()})):xe(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){Hi();try{f()}finally{Fi()}}const w=eo;eo=c;try{return l?l(e,3,[h]):e(h)}finally{eo=w}}:d=Tn,t&&o){const w=d,M=o===!0?1/0:o;d=()=>Xn(w(),M)}const p=br(),y=()=>{c.stop(),p&&p.active&&yf(p.effects,c)};if(r&&t){const w=t;t=(...M)=>{w(...M),y()}}let S=m?new Array(e.length).fill(ea):ea;const v=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const M=c.run();if(o||g||(m?M.some((I,O)=>$t(I,S[O])):$t(M,S))){f&&f();const I=eo;eo=c;try{const O=[M,S===ea?void 0:m&&S[0]===ea?[]:S,h];l?l(t,3,O):t(...O),S=M}finally{eo=I}}}else c.run()};return a&&a(v),c=new by(d),c.scheduler=s?()=>s(v,!1):v,h=w=>SC(w,!1,c),f=c.onStop=()=>{const w=Qa.get(c);if(w){if(l)l(w,4);else for(const M of w)M();Qa.delete(c)}},t?i?v(!0):S=c.run():s?s(v.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Xn(e,t=1/0,n){if(t<=0||!Ze(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ve(e))Xn(e.value,t,n);else if(Ce(e))for(let i=0;i<e.length;i++)Xn(e[i],t,n);else if(cy(e)||Qo(e))e.forEach(i=>{Xn(i,t,n)});else if(fy(e)){for(const i in e)Xn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Xn(e[i],t,n)}return e}/**
|
|
11
|
+
* @vue/runtime-core v3.5.13
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/function Ls(e,t,n,i){try{return i?e(...i):e()}catch(o){_r(o,t,n)}}function yn(e,t,n,i){if(xe(e)){const o=Ls(e,t,n,i);return o&&bf(o)&&o.catch(r=>{_r(r,t,n)}),o}if(Ce(e)){const o=[];for(let r=0;r<e.length;r++)o.push(yn(e[r],t,n,i));return o}}function _r(e,t,n,i=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Ge;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(r){Hi(),Ls(r,null,10,[e,l,u]),Fi();return}}xC(e,n,o,i,s)}function xC(e,t,n,i=!0,o=!1){if(o)throw e;console.error(e)}const Rt=[];let xn=-1;const tr=[];let wi=null,Wo=0;const Vy=Promise.resolve();let el=null;function Ue(e){const t=el||Vy;return e?t.then(this?e.bind(this):e):t}function EC(e){let t=xn+1,n=Rt.length;for(;t<n;){const i=t+n>>>1,o=Rt[i],r=ds(o);r<e||r===e&&o.flags&2?t=i+1:n=i}return t}function Df(e){if(!(e.flags&1)){const t=ds(e),n=Rt[Rt.length-1];!n||!(e.flags&2)&&t>=ds(n)?Rt.push(e):Rt.splice(EC(t),0,e),e.flags|=1,Ly()}}function Ly(){el||(el=Vy.then(zy))}function Hc(e){Ce(e)?tr.push(...e):wi&&e.id===-1?wi.splice(Wo+1,0,e):e.flags&1||(tr.push(e),e.flags|=1),Ly()}function lm(e,t,n=xn+1){for(;n<Rt.length;n++){const i=Rt[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;Rt.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function tl(e){if(tr.length){const t=[...new Set(tr)].sort((n,i)=>ds(n)-ds(i));if(tr.length=0,wi){wi.push(...t);return}for(wi=t,Wo=0;Wo<wi.length;Wo++){const n=wi[Wo];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}wi=null,Wo=0}}const ds=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zy(e){try{for(xn=0;xn<Rt.length;xn++){const t=Rt[xn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ls(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;xn<Rt.length;xn++){const t=Rt[xn];t&&(t.flags&=-2)}xn=-1,Rt.length=0,tl(),el=null,(Rt.length||tr.length)&&zy()}}let vt=null,By=null;function nl(e){const t=vt;return vt=e,By=e&&e.type.__scopeId||null,t}function $e(e,t=vt,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&xm(-1);const r=nl(t);let s;try{s=e(...o)}finally{nl(r),i._d&&xm(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function en(e,t){if(vt===null)return e;const n=su(vt),i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,s,a,l=Ge]=t[o];r&&(xe(r)&&(r={mounted:r,updated:r}),r.deep&&Xn(s),i.push({dir:r,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function En(e,t,n,i){const o=e.dirs,r=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];r&&(a.oldValue=r[s].value);let l=a.dir[i];l&&(Hi(),yn(l,n,8,[e.el,a,e,t]),Fi())}}const Hy=Symbol("_vte"),Fy=e=>e.__isTeleport,Jr=e=>e&&(e.disabled||e.disabled===""),um=e=>e&&(e.defer||e.defer===""),cm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,dm=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Fc=(e,t)=>{const n=e&&e.to;return et(n)?t?t(n):null:n},Gy={name:"Teleport",__isTeleport:!0,process(e,t,n,i,o,r,s,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:g,createText:m,createComment:p}}=u,y=Jr(t.props);let{shapeFlag:S,children:v,dynamicChildren:w}=t;if(e==null){const M=t.el=m(""),I=t.anchor=m("");h(M,n,i),h(I,n,i);const O=(N,$)=>{S&16&&(o&&o.isCE&&(o.ce._teleportTarget=N),c(v,N,$,o,r,s,a,l))},V=()=>{const N=t.target=Fc(t.props,g),$=Wy(N,t,m,h);N&&(s!=="svg"&&cm(N)?s="svg":s!=="mathml"&&dm(N)&&(s="mathml"),y||(O(N,$),Ta(t,!1)))};y&&(O(n,I),Ta(t,!0)),um(t.props)?Nt(()=>{V(),t.el.__isMounted=!0},r):V()}else{if(um(t.props)&&!e.el.__isMounted){Nt(()=>{Gy.process(e,t,n,i,o,r,s,a,l,u),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const M=t.anchor=e.anchor,I=t.target=e.target,O=t.targetAnchor=e.targetAnchor,V=Jr(e.props),N=V?n:I,$=V?M:O;if(s==="svg"||cm(I)?s="svg":(s==="mathml"||dm(I))&&(s="mathml"),w?(f(e.dynamicChildren,w,N,o,r,s,a),Lf(e,t,!0)):l||d(e,t,N,$,o,r,s,a,!1),y)V?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ta(t,n,M,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const H=t.target=Fc(t.props,g);H&&ta(t,H,null,u,0)}else V&&ta(t,I,O,u,1);Ta(t,y)}},remove(e,t,n,{um:i,o:{remove:o}},r){const{shapeFlag:s,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(o(u),o(c)),r&&o(l),s&16){const h=r||!Jr(f);for(let g=0;g<a.length;g++){const m=a[g];i(m,t,n,h,!!m.dynamicChildren)}}},move:ta,hydrate:kC};function ta(e,t,n,{o:{insert:i},m:o},r=2){r===0&&i(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:u,props:c}=e,d=r===2;if(d&&i(s,t,n),(!d||Jr(c))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,n,2);d&&i(a,t,n)}function kC(e,t,n,i,o,r,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:u,createText:c}},d){const f=t.target=Fc(t.props,l);if(f){const h=Jr(t.props),g=f._lpa||f.firstChild;if(t.shapeFlag&16)if(h)t.anchor=d(s(e),t,a(e),n,i,o,r),t.targetStart=g,t.targetAnchor=g&&s(g);else{t.anchor=s(e);let m=g;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,f._lpa=t.targetAnchor&&s(t.targetAnchor);break}}m=s(m)}t.targetAnchor||Wy(f,t,c,u),d(g&&s(g),t,f,n,i,o,r)}Ta(t,h)}return t.anchor&&s(t.anchor)}const AC=Gy;function Ta(e,t){const n=e.ctx;if(n&&n.ut){let i,o;for(t?(i=e.el,o=e.anchor):(i=e.targetStart,o=e.targetAnchor);i&&i!==o;)i.nodeType===1&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function Wy(e,t,n,i){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[Hy]=r,e&&(i(o,e),i(r,e)),r}const _i=Symbol("_leaveCb"),na=Symbol("_enterCb");function Uy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _t(()=>{e.isMounted=!0}),zt(()=>{e.isUnmounting=!0}),e}const rn=[Function,Array],jy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rn,onEnter:rn,onAfterEnter:rn,onEnterCancelled:rn,onBeforeLeave:rn,onLeave:rn,onAfterLeave:rn,onLeaveCancelled:rn,onBeforeAppear:rn,onAppear:rn,onAfterAppear:rn,onAppearCancelled:rn},Yy=e=>{const t=e.subTree;return t.component?Yy(t.component):t},DC={name:"BaseTransition",props:jy,setup(e,{slots:t}){const n=Bt(),i=Uy();return()=>{const o=t.default&&Pf(t.default(),!0);if(!o||!o.length)return;const r=Ky(o),s=_e(e),{mode:a}=s;if(i.isLeaving)return Fu(r);const l=fm(r);if(!l)return Fu(r);let u=fs(l,s,i,n,d=>u=d);l.type!==gt&&bo(l,u);let c=n.subTree&&fm(n.subTree);if(c&&c.type!==gt&&!An(l,c)&&Yy(n).type!==gt){let d=fs(c,s,i,n);if(bo(c,d),a==="out-in"&&l.type!==gt)return i.isLeaving=!0,d.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Fu(r);a==="in-out"&&l.type!==gt?d.delayLeave=(f,h,g)=>{const m=qy(i,c);m[String(c.key)]=c,f[_i]=()=>{h(),f[_i]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function Ky(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==gt){t=n;break}}return t}const PC=DC;function qy(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function fs(e,t,n,i,o){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:p,onAppear:y,onAfterAppear:S,onAppearCancelled:v}=t,w=String(e.key),M=qy(n,e),I=(N,$)=>{N&&yn(N,i,9,$)},O=(N,$)=>{const H=$[1];I(N,$),Ce(N)?N.every(E=>E.length<=1)&&H():N.length<=1&&H()},V={mode:s,persisted:a,beforeEnter(N){let $=l;if(!n.isMounted)if(r)$=p||l;else return;N[_i]&&N[_i](!0);const H=M[w];H&&An(e,H)&&H.el[_i]&&H.el[_i](),I($,[N])},enter(N){let $=u,H=c,E=d;if(!n.isMounted)if(r)$=y||u,H=S||c,E=v||d;else return;let W=!1;const b=N[na]=P=>{W||(W=!0,P?I(E,[N]):I(H,[N]),V.delayedLeave&&V.delayedLeave(),N[na]=void 0)};$?O($,[N,b]):b()},leave(N,$){const H=String(e.key);if(N[na]&&N[na](!0),n.isUnmounting)return $();I(f,[N]);let E=!1;const W=N[_i]=b=>{E||(E=!0,$(),b?I(m,[N]):I(g,[N]),N[_i]=void 0,M[H]===e&&delete M[H])};M[H]=e,h?O(h,[N,W]):W()},clone(N){const $=fs(N,t,n,i,o);return o&&o($),$}};return V}function Fu(e){if(zs(e))return e=$n(e),e.children=null,e}function fm(e){if(!zs(e))return Fy(e.type)&&e.children?Ky(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&xe(n.default))return n.default()}}function bo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,bo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pf(e,t=!1,n){let i=[],o=0;for(let r=0;r<e.length;r++){let s=e[r];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===be?(s.patchFlag&128&&o++,i=i.concat(Pf(s.children,t,a))):(t||s.type!==gt)&&i.push(a!=null?$n(s,{key:a}):s)}if(o>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function Pe(e,t){return xe(e)?ot({name:e.name},t,{setup:e}):e}function If(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hs(e,t,n,i,o=!1){if(Ce(e)){e.forEach((g,m)=>hs(g,t&&(Ce(t)?t[m]:t),n,i,o));return}if(co(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&hs(e,t,n,i.component.subTree);return}const r=i.shapeFlag&4?su(i.component):i.el,s=o?null:r,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Ge?a.refs={}:a.refs,d=a.setupState,f=_e(d),h=d===Ge?()=>!1:g=>Ye(f,g);if(u!=null&&u!==l&&(et(u)?(c[u]=null,h(u)&&(d[u]=null)):Ve(u)&&(u.value=null)),xe(l))Ls(l,a,12,[s,c]);else{const g=et(l),m=Ve(l);if(g||m){const p=()=>{if(e.f){const y=g?h(l)?d[l]:c[l]:l.value;o?Ce(y)&&yf(y,r):Ce(y)?y.includes(r)||y.push(r):g?(c[l]=[r],h(l)&&(d[l]=c[l])):(l.value=[r],e.k&&(c[e.k]=l.value))}else g?(c[l]=s,h(l)&&(d[l]=s)):m&&(l.value=s,e.k&&(c[e.k]=s))};s?(p.id=-1,Nt(p,n)):p()}}}let hm=!1;const Lo=()=>{hm||(console.error("Hydration completed but contains mismatches."),hm=!0)},IC=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",TC=e=>e.namespaceURI.includes("MathML"),ia=e=>{if(e.nodeType===1){if(IC(e))return"svg";if(TC(e))return"mathml"}},Yo=e=>e.nodeType===8;function MC(e){const{mt:t,p:n,o:{patchProp:i,createText:o,nextSibling:r,parentNode:s,remove:a,insert:l,createComment:u}}=e,c=(v,w)=>{if(!w.hasChildNodes()){n(null,v,w),tl(),w._vnode=v;return}d(w.firstChild,v,null,null,null),tl(),w._vnode=v},d=(v,w,M,I,O,V=!1)=>{V=V||!!w.dynamicChildren;const N=Yo(v)&&v.data==="[",$=()=>m(v,w,M,I,O,N),{type:H,ref:E,shapeFlag:W,patchFlag:b}=w;let P=v.nodeType;w.el=v,b===-2&&(V=!1,w.dynamicChildren=null);let C=null;switch(H){case Ti:P!==3?w.children===""?(l(w.el=o(""),s(v),v),C=v):C=$():(v.data!==w.children&&(Lo(),v.data=w.children),C=r(v));break;case gt:S(v)?(C=r(v),y(w.el=v.content.firstChild,v,M)):P!==8||N?C=$():C=r(v);break;case Ma:if(N&&(v=r(v),P=v.nodeType),P===1||P===3){C=v;const F=!w.children.length;for(let B=0;B<w.staticCount;B++)F&&(w.children+=C.nodeType===1?C.outerHTML:C.data),B===w.staticCount-1&&(w.anchor=C),C=r(C);return N?r(C):C}else $();break;case be:N?C=g(v,w,M,I,O,V):C=$();break;default:if(W&1)(P!==1||w.type.toLowerCase()!==v.tagName.toLowerCase())&&!S(v)?C=$():C=f(v,w,M,I,O,V);else if(W&6){w.slotScopeIds=O;const F=s(v);if(N?C=p(v):Yo(v)&&v.data==="teleport start"?C=p(v,v.data,"teleport end"):C=r(v),t(w,F,null,M,I,ia(F),V),co(w)&&!w.type.__asyncResolved){let B;N?(B=k(be),B.anchor=C?C.previousSibling:F.lastChild):B=v.nodeType===3?Zt(""):k("div"),B.el=v,w.component.subTree=B}}else W&64?P!==8?C=$():C=w.type.hydrate(v,w,M,I,O,V,e,h):W&128&&(C=w.type.hydrate(v,w,M,I,ia(s(v)),O,V,e,d))}return E!=null&&hs(E,null,I,w),C},f=(v,w,M,I,O,V)=>{V=V||!!w.dynamicChildren;const{type:N,props:$,patchFlag:H,shapeFlag:E,dirs:W,transition:b}=w,P=N==="input"||N==="option";if(P||H!==-1){W&&En(w,null,M,"created");let C=!1;if(S(v)){C=yb(null,b)&&M&&M.vnode.props&&M.vnode.props.appear;const B=v.content.firstChild;C&&b.beforeEnter(B),y(B,v,M),w.el=v=B}if(E&16&&!($&&($.innerHTML||$.textContent))){let B=h(v.firstChild,w,v,M,I,O,V);for(;B;){oa(v,1)||Lo();const R=B;B=B.nextSibling,a(R)}}else if(E&8){let B=w.children;B[0]===`
|
|
15
|
+
`&&(v.tagName==="PRE"||v.tagName==="TEXTAREA")&&(B=B.slice(1)),v.textContent!==B&&(oa(v,0)||Lo(),v.textContent=w.children)}if($){if(P||!V||H&48){const B=v.tagName.includes("-");for(const R in $)(P&&(R.endsWith("value")||R==="indeterminate")||Rs(R)&&!er(R)||R[0]==="."||B)&&i(v,R,null,$[R],void 0,M)}else if($.onClick)i(v,"onClick",null,$.onClick,void 0,M);else if(H&4&&oi($.style))for(const B in $.style)$.style[B]}let F;(F=$&&$.onVnodeBeforeMount)&&sn(F,M,w),W&&En(w,null,M,"beforeMount"),((F=$&&$.onVnodeMounted)||W||C)&&Ab(()=>{F&&sn(F,M,w),C&&b.enter(v),W&&En(w,null,M,"mounted")},I)}return v.nextSibling},h=(v,w,M,I,O,V,N)=>{N=N||!!w.dynamicChildren;const $=w.children,H=$.length;for(let E=0;E<H;E++){const W=N?$[E]:$[E]=Jt($[E]),b=W.type===Ti;v?(b&&!N&&E+1<H&&Jt($[E+1]).type===Ti&&(l(o(v.data.slice(W.children.length)),M,r(v)),v.data=W.children),v=d(v,W,I,O,V,N)):b&&!W.children?l(W.el=o(""),M):(oa(M,1)||Lo(),n(null,W,M,null,I,O,ia(M),V))}return v},g=(v,w,M,I,O,V)=>{const{slotScopeIds:N}=w;N&&(O=O?O.concat(N):N);const $=s(v),H=h(r(v),w,$,M,I,O,V);return H&&Yo(H)&&H.data==="]"?r(w.anchor=H):(Lo(),l(w.anchor=u("]"),$,H),H)},m=(v,w,M,I,O,V)=>{if(oa(v.parentElement,1)||Lo(),w.el=null,V){const H=p(v);for(;;){const E=r(v);if(E&&E!==H)a(E);else break}}const N=r(v),$=s(v);return a(v),n(null,w,$,N,M,I,ia($),O),M&&(M.vnode.el=w.el,ru(M,w.el)),N},p=(v,w="[",M="]")=>{let I=0;for(;v;)if(v=r(v),v&&Yo(v)&&(v.data===w&&I++,v.data===M)){if(I===0)return r(v);I--}return v},y=(v,w,M)=>{const I=w.parentNode;I&&I.replaceChild(v,w);let O=M;for(;O;)O.vnode.el===w&&(O.vnode.el=O.subTree.el=v),O=O.parent},S=v=>v.nodeType===1&&v.tagName==="TEMPLATE";return[c,d]}const mm="data-allow-mismatch",NC={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function oa(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(mm);)e=e.parentElement;const n=e&&e.getAttribute(mm);if(n==null)return!1;if(n==="")return!0;{const i=n.split(",");return t===0&&i.includes("children")?!0:n.split(",").includes(NC[t])}}Jl().requestIdleCallback;Jl().cancelIdleCallback;function OC(e,t){if(Yo(e)&&e.data==="["){let n=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Yo(i))if(i.data==="]"){if(--n===0)break}else i.data==="["&&n++;i=i.nextSibling}}else t(e)}const co=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function gm(e){xe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:o=200,hydrate:r,timeout:s,suspensible:a=!0,onError:l}=e;let u=null,c,d=0;const f=()=>(d++,u=null,h()),h=()=>{let g;return u||(g=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((p,y)=>{l(m,()=>p(f()),()=>y(m),d+1)});throw m}).then(m=>g!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Pe({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(g,m,p){const y=r?()=>{const S=r(p,v=>OC(g,v));S&&(m.bum||(m.bum=[])).push(S)}:p;c?y():h().then(()=>!m.isUnmounted&&y())},get __asyncResolved(){return c},setup(){const g=pt;if(If(g),c)return()=>Gu(c,g);const m=v=>{u=null,_r(v,g,13,!i)};if(a&&g.suspense||lr)return h().then(v=>()=>Gu(v,g)).catch(v=>(m(v),()=>i?k(i,{error:v}):null));const p=ne(!1),y=ne(),S=ne(!!o);return o&&setTimeout(()=>{S.value=!1},o),s!=null&&setTimeout(()=>{if(!p.value&&!y.value){const v=new Error(`Async component timed out after ${s}ms.`);m(v),y.value=v}},s),h().then(()=>{p.value=!0,g.parent&&zs(g.parent.vnode)&&g.parent.update()}).catch(v=>{m(v),y.value=v}),()=>{if(p.value&&c)return Gu(c,g);if(y.value&&i)return k(i,{error:y.value});if(n&&!S.value)return k(n)}}})}function Gu(e,t){const{ref:n,props:i,children:o,ce:r}=t.vnode,s=k(e,i,o);return s.ref=n,s.ce=r,delete t.vnode.ce,s}const zs=e=>e.type.__isKeepAlive;function $C(e,t){Zy(e,"a",t)}function Xy(e,t){Zy(e,"da",t)}function Zy(e,t,n=pt){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(tu(t,i,n),n){let o=n.parent;for(;o&&o.parent;)zs(o.parent.vnode)&&RC(i,t,n,o),o=o.parent}}function RC(e,t,n,i){const o=tu(t,e,i,!0);Hs(()=>{yf(i[t],o)},n)}function tu(e,t,n=pt,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{Hi();const a=So(n),l=yn(t,n,e,s);return a(),Fi(),l});return i?o.unshift(r):o.push(r),r}}const di=e=>(t,n=pt)=>{(!lr||e==="sp")&&tu(e,(...i)=>t(...i),n)},Bs=di("bm"),_t=di("m"),VC=di("bu"),Tf=di("u"),zt=di("bum"),Hs=di("um"),LC=di("sp"),zC=di("rtg"),BC=di("rtc");function Jy(e,t=pt){tu("ec",e,t)}const Mf="components",HC="directives";function Qy(e,t){return Nf(Mf,e,!0,t)||e}const eb=Symbol.for("v-ndc");function nu(e){return et(e)?Nf(Mf,e,!1)||e:e||eb}function No(e){return Nf(HC,e)}function Nf(e,t,n=!0,i=!1){const o=vt||pt;if(o){const r=o.type;if(e===Mf){const a=Dx(r,!1);if(a&&(a===t||a===Lt(t)||a===yr(Lt(t))))return r}const s=pm(o[e]||r[e],t)||pm(o.appContext[e],t);return!s&&i?r:s}}function pm(e,t){return e&&(e[t]||e[Lt(t)]||e[yr(Lt(t))])}function ri(e,t,n,i){let o;const r=n&&n[i],s=Ce(e);if(s||et(e)){const a=s&&oi(e);let l=!1;a&&(l=!un(e),e=eu(e)),o=new Array(e.length);for(let u=0,c=e.length;u<c;u++)o[u]=t(l?At(e[u]):e[u],u,void 0,r&&r[u])}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,r&&r[a])}else if(Ze(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,r&&r[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];o[l]=t(e[c],c,l,r&&r[l])}}else o=[];return n&&(n[i]=o),o}function cn(e,t,n={},i,o){if(vt.ce||vt.parent&&co(vt.parent)&&vt.parent.ce)return t!=="default"&&(n.name=t),se(),Oe(be,null,[k("slot",n,i&&i())],64);let r=e[t];r&&r._c&&(r._d=!1),se();const s=r&&tb(r(n)),a=n.key||s&&s.key,l=Oe(be,{key:(a&&!ci(a)?a:`_${t}`)+(!s&&i?"_fb":"")},s||(i?i():[]),s&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function tb(e){return e.some(t=>_o(t)?!(t.type===gt||t.type===be&&!tb(t.children)):!0)?e:null}const Gc=e=>e?Tb(e)?su(e):Gc(e.parent):null,Qr=ot(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gc(e.parent),$root:e=>Gc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>$f(e),$forceUpdate:e=>e.f||(e.f=()=>{Df(e.update)}),$nextTick:e=>e.n||(e.n=Ue.bind(e.proxy)),$watch:e=>ux.bind(e)}),Wu=(e,t)=>e!==Ge&&!e.__isScriptSetup&&Ye(e,t),FC={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Wu(i,t))return s[t]=1,i[t];if(o!==Ge&&Ye(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&Ye(u,t))return s[t]=3,r[t];if(n!==Ge&&Ye(n,t))return s[t]=4,n[t];Wc&&(s[t]=0)}}const c=Qr[t];let d,f;if(c)return t==="$attrs"&&kt(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ge&&Ye(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,Ye(f,t))return f[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return Wu(o,t)?(o[t]=n,!0):i!==Ge&&Ye(i,t)?(i[t]=n,!0):Ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:r}},s){let a;return!!n[s]||e!==Ge&&Ye(e,s)||Wu(t,s)||(a=r[0])&&Ye(a,s)||Ye(i,s)||Ye(Qr,s)||Ye(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nb(){return ib().slots}function Of(){return ib().attrs}function ib(){const e=Bt();return e.setupContext||(e.setupContext=Nb(e))}function il(e){return Ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ob(e,t){return!e||!t?e||t:Ce(e)&&Ce(t)?e.concat(t):ot({},il(e),il(t))}function rb(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function GC(e){const t=Bt();let n=e();return qc(),bf(n)&&(n=n.catch(i=>{throw So(t),i})),[n,()=>So(t)]}let Wc=!0;function WC(e){const t=$f(e),n=e.proxy,i=e.ctx;Wc=!1,t.beforeCreate&&vm(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:g,activated:m,deactivated:p,beforeDestroy:y,beforeUnmount:S,destroyed:v,unmounted:w,render:M,renderTracked:I,renderTriggered:O,errorCaptured:V,serverPrefetch:N,expose:$,inheritAttrs:H,components:E,directives:W,filters:b}=t;if(u&&UC(u,i,null),s)for(const F in s){const B=s[F];xe(B)&&(i[F]=B.bind(n))}if(o){const F=o.call(n,n);Ze(F)&&(e.data=at(F))}if(Wc=!0,r)for(const F in r){const B=r[F],R=xe(B)?B.bind(n,n):xe(B.get)?B.get.bind(n,n):Tn,L=!xe(B)&&xe(B.set)?B.set.bind(n):Tn,U=z({get:R,set:L});Object.defineProperty(i,F,{enumerable:!0,configurable:!0,get:()=>U.value,set:j=>U.value=j})}if(a)for(const F in a)sb(a[F],i,n,F);if(l){const F=xe(l)?l.call(n):l;Reflect.ownKeys(F).forEach(B=>{rt(B,F[B])})}c&&vm(c,e,"c");function C(F,B){Ce(B)?B.forEach(R=>F(R.bind(n))):B&&F(B.bind(n))}if(C(Bs,d),C(_t,f),C(VC,h),C(Tf,g),C($C,m),C(Xy,p),C(Jy,V),C(BC,I),C(zC,O),C(zt,S),C(Hs,w),C(LC,N),Ce($))if($.length){const F=e.exposed||(e.exposed={});$.forEach(B=>{Object.defineProperty(F,B,{get:()=>n[B],set:R=>n[B]=R})})}else e.exposed||(e.exposed={});M&&e.render===Tn&&(e.render=M),H!=null&&(e.inheritAttrs=H),E&&(e.components=E),W&&(e.directives=W),N&&If(e)}function UC(e,t,n=Tn){Ce(e)&&(e=Uc(e));for(const i in e){const o=e[i];let r;Ze(o)?"default"in o?r=je(o.from||i,o.default,!0):r=je(o.from||i):r=je(o),Ve(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[i]=r}}function vm(e,t,n){yn(Ce(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function sb(e,t,n,i){let o=i.includes(".")?wb(n,i):()=>n[i];if(et(e)){const r=t[e];xe(r)&&ae(o,r)}else if(xe(e))ae(o,e.bind(n));else if(Ze(e))if(Ce(e))e.forEach(r=>sb(r,t,n,i));else{const r=xe(e.handler)?e.handler.bind(n):t[e.handler];xe(r)&&ae(o,r,e)}}function $f(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!i?l=t:(l={},o.length&&o.forEach(u=>ol(l,u,s,!0)),ol(l,t,s)),Ze(t)&&r.set(t,l),l}function ol(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&ol(e,r,n,!0),o&&o.forEach(s=>ol(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=jC[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const jC={data:ym,props:bm,emits:bm,methods:Gr,computed:Gr,beforeCreate:Tt,created:Tt,beforeMount:Tt,mounted:Tt,beforeUpdate:Tt,updated:Tt,beforeDestroy:Tt,beforeUnmount:Tt,destroyed:Tt,unmounted:Tt,activated:Tt,deactivated:Tt,errorCaptured:Tt,serverPrefetch:Tt,components:Gr,directives:Gr,watch:KC,provide:ym,inject:YC};function ym(e,t){return t?e?function(){return ot(xe(e)?e.call(this,this):e,xe(t)?t.call(this,this):t)}:t:e}function YC(e,t){return Gr(Uc(e),Uc(t))}function Uc(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Tt(e,t){return e?[...new Set([].concat(e,t))]:t}function Gr(e,t){return e?ot(Object.create(null),e,t):t}function bm(e,t){return e?Ce(e)&&Ce(t)?[...new Set([...e,...t])]:ot(Object.create(null),il(e),il(t??{})):t}function KC(e,t){if(!e)return t;if(!t)return e;const n=ot(Object.create(null),e);for(const i in t)n[i]=Tt(e[i],t[i]);return n}function ab(){return{app:null,config:{isNativeTag:LS,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let qC=0;function XC(e,t){return function(i,o=null){xe(i)||(i=ot({},i)),o!=null&&!Ze(o)&&(o=null);const r=ab(),s=new WeakSet,a=[];let l=!1;const u=r.app={_uid:qC++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Ob,get config(){return r.config},set config(c){},use(c,...d){return s.has(c)||(c&&xe(c.install)?(s.add(c),c.install(u,...d)):xe(c)&&(s.add(c),c(u,...d))),u},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),u},component(c,d){return d?(r.components[c]=d,u):r.components[c]},directive(c,d){return d?(r.directives[c]=d,u):r.directives[c]},mount(c,d,f){if(!l){const h=u._ceVNode||k(i,o);return h.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),d&&t?t(h,c):e(h,c,f),l=!0,u._container=c,c.__vue_app__=u,su(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(yn(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return r.provides[c]=d,u},runWithContext(c){const d=fo;fo=u;try{return c()}finally{fo=d}}};return u}}let fo=null;function rt(e,t){if(pt){let n=pt.provides;const i=pt.parent&&pt.parent.provides;i===n&&(n=pt.provides=Object.create(i)),n[e]=t}}function je(e,t,n=!1){const i=pt||vt;if(i||fo){const o=fo?fo._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&xe(t)?t.call(i&&i.proxy):t}}function Rf(){return!!(pt||vt||fo)}const lb={},ub=()=>Object.create(lb),cb=e=>Object.getPrototypeOf(e)===lb;function ZC(e,t,n,i=!1){const o={},r=ub();e.propsDefaults=Object.create(null),db(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=i?o:jo(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function JC(e,t,n,i){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,a=_e(o),[l]=e.propsOptions;let u=!1;if((i||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(ou(e.emitsOptions,f))continue;const h=t[f];if(l)if(Ye(r,f))h!==r[f]&&(r[f]=h,u=!0);else{const g=Lt(f);o[g]=jc(l,a,g,h,e,!1)}else h!==r[f]&&(r[f]=h,u=!0)}}}else{db(e,t,o,r)&&(u=!0);let c;for(const d in a)(!t||!Ye(t,d)&&((c=zi(d))===d||!Ye(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(o[d]=jc(l,a,d,void 0,e,!0)):delete o[d]);if(r!==a)for(const d in r)(!t||!Ye(t,d))&&(delete r[d],u=!0)}u&&qn(e.attrs,"set","")}function db(e,t,n,i){const[o,r]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(er(l))continue;const u=t[l];let c;o&&Ye(o,c=Lt(l))?!r||!r.includes(c)?n[c]=u:(a||(a={}))[c]=u:ou(e.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,s=!0)}if(r){const l=_e(n),u=a||Ge;for(let c=0;c<r.length;c++){const d=r[c];n[d]=jc(o,l,d,u[d],e,!Ye(u,d))}}return s}function jc(e,t,n,i,o,r){const s=e[n];if(s!=null){const a=Ye(s,"default");if(a&&i===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&xe(l)){const{propsDefaults:u}=o;if(n in u)i=u[n];else{const c=So(o);i=u[n]=l.call(null,t),c()}}else i=l;o.ce&&o.ce._setProp(n,i)}s[0]&&(r&&!a?i=!1:s[1]&&(i===""||i===zi(n))&&(i=!0))}return i}const QC=new WeakMap;function fb(e,t,n=!1){const i=n?QC:t.propsCache,o=i.get(e);if(o)return o;const r=e.props,s={},a=[];let l=!1;if(!xe(e)){const c=d=>{l=!0;const[f,h]=fb(d,t,!0);ot(s,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!l)return Ze(e)&&i.set(e,Jo),Jo;if(Ce(r))for(let c=0;c<r.length;c++){const d=Lt(r[c]);wm(d)&&(s[d]=Ge)}else if(r)for(const c in r){const d=Lt(c);if(wm(d)){const f=r[c],h=s[d]=Ce(f)||xe(f)?{type:f}:ot({},f),g=h.type;let m=!1,p=!0;if(Ce(g))for(let y=0;y<g.length;++y){const S=g[y],v=xe(S)&&S.name;if(v==="Boolean"){m=!0;break}else v==="String"&&(p=!1)}else m=xe(g)&&g.name==="Boolean";h[0]=m,h[1]=p,(m||Ye(h,"default"))&&a.push(d)}}const u=[s,a];return Ze(e)&&i.set(e,u),u}function wm(e){return e[0]!=="$"&&!er(e)}const hb=e=>e[0]==="_"||e==="$stable",Vf=e=>Ce(e)?e.map(Jt):[Jt(e)],ex=(e,t,n)=>{if(t._n)return t;const i=$e((...o)=>Vf(t(...o)),n);return i._c=!1,i},mb=(e,t,n)=>{const i=e._ctx;for(const o in e){if(hb(o))continue;const r=e[o];if(xe(r))t[o]=ex(o,r,i);else if(r!=null){const s=Vf(r);t[o]=()=>s}}},gb=(e,t)=>{const n=Vf(t);e.slots.default=()=>n},pb=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},tx=(e,t,n)=>{const i=e.slots=ub();if(e.vnode.shapeFlag&32){const o=t._;o?(pb(i,t,n),n&&hy(i,"_",o,!0)):mb(t,i)}else t&&gb(e,t)},nx=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=Ge;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:pb(o,t,n):(r=!t.$stable,mb(t,o)),s=t}else t&&(gb(e,t),s={default:1});if(r)for(const a in o)!hb(a)&&s[a]==null&&delete o[a]},Nt=Ab;function ix(e){return vb(e)}function ox(e){return vb(e,MC)}function vb(e,t){const n=Jl();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Tn,insertStaticContent:g}=e,m=(A,_,x,D=null,T=null,G=null,K=void 0,Y=null,Z=!!_.dynamicChildren)=>{if(A===_)return;A&&!An(A,_)&&(D=le(A),j(A,T,G,!0),A=null),_.patchFlag===-2&&(Z=!1,_.dynamicChildren=null);const{type:q,ref:fe,shapeFlag:te}=_;switch(q){case Ti:p(A,_,x,D);break;case gt:y(A,_,x,D);break;case Ma:A==null&&S(_,x,D,K);break;case be:E(A,_,x,D,T,G,K,Y,Z);break;default:te&1?M(A,_,x,D,T,G,K,Y,Z):te&6?W(A,_,x,D,T,G,K,Y,Z):(te&64||te&128)&&q.process(A,_,x,D,T,G,K,Y,Z,me)}fe!=null&&T&&hs(fe,A&&A.ref,G,_||A,!_)},p=(A,_,x,D)=>{if(A==null)i(_.el=a(_.children),x,D);else{const T=_.el=A.el;_.children!==A.children&&u(T,_.children)}},y=(A,_,x,D)=>{A==null?i(_.el=l(_.children||""),x,D):_.el=A.el},S=(A,_,x,D)=>{[A.el,A.anchor]=g(A.children,_,x,D,A.el,A.anchor)},v=({el:A,anchor:_},x,D)=>{let T;for(;A&&A!==_;)T=f(A),i(A,x,D),A=T;i(_,x,D)},w=({el:A,anchor:_})=>{let x;for(;A&&A!==_;)x=f(A),o(A),A=x;o(_)},M=(A,_,x,D,T,G,K,Y,Z)=>{_.type==="svg"?K="svg":_.type==="math"&&(K="mathml"),A==null?I(_,x,D,T,G,K,Y,Z):N(A,_,T,G,K,Y,Z)},I=(A,_,x,D,T,G,K,Y)=>{let Z,q;const{props:fe,shapeFlag:te,transition:oe,dirs:ve}=A;if(Z=A.el=s(A.type,G,fe&&fe.is,fe),te&8?c(Z,A.children):te&16&&V(A.children,Z,null,D,T,Uu(A,G),K,Y),ve&&En(A,null,D,"created"),O(Z,A,A.scopeId,K,D),fe){for(const Ke in fe)Ke!=="value"&&!er(Ke)&&r(Z,Ke,null,fe[Ke],G,D);"value"in fe&&r(Z,"value",null,fe.value,G),(q=fe.onVnodeBeforeMount)&&sn(q,D,A)}ve&&En(A,null,D,"beforeMount");const Ie=yb(T,oe);Ie&&oe.beforeEnter(Z),i(Z,_,x),((q=fe&&fe.onVnodeMounted)||Ie||ve)&&Nt(()=>{q&&sn(q,D,A),Ie&&oe.enter(Z),ve&&En(A,null,D,"mounted")},T)},O=(A,_,x,D,T)=>{if(x&&h(A,x),D)for(let G=0;G<D.length;G++)h(A,D[G]);if(T){let G=T.subTree;if(_===G||xb(G.type)&&(G.ssContent===_||G.ssFallback===_)){const K=T.vnode;O(A,K,K.scopeId,K.slotScopeIds,T.parent)}}},V=(A,_,x,D,T,G,K,Y,Z=0)=>{for(let q=Z;q<A.length;q++){const fe=A[q]=Y?Si(A[q]):Jt(A[q]);m(null,fe,_,x,D,T,G,K,Y)}},N=(A,_,x,D,T,G,K)=>{const Y=_.el=A.el;let{patchFlag:Z,dynamicChildren:q,dirs:fe}=_;Z|=A.patchFlag&16;const te=A.props||Ge,oe=_.props||Ge;let ve;if(x&&Ki(x,!1),(ve=oe.onVnodeBeforeUpdate)&&sn(ve,x,_,A),fe&&En(_,A,x,"beforeUpdate"),x&&Ki(x,!0),(te.innerHTML&&oe.innerHTML==null||te.textContent&&oe.textContent==null)&&c(Y,""),q?$(A.dynamicChildren,q,Y,x,D,Uu(_,T),G):K||B(A,_,Y,null,x,D,Uu(_,T),G,!1),Z>0){if(Z&16)H(Y,te,oe,x,T);else if(Z&2&&te.class!==oe.class&&r(Y,"class",null,oe.class,T),Z&4&&r(Y,"style",te.style,oe.style,T),Z&8){const Ie=_.dynamicProps;for(let Ke=0;Ke<Ie.length;Ke++){const Fe=Ie[Ke],Kt=te[Fe],xt=oe[Fe];(xt!==Kt||Fe==="value")&&r(Y,Fe,Kt,xt,T,x)}}Z&1&&A.children!==_.children&&c(Y,_.children)}else!K&&q==null&&H(Y,te,oe,x,T);((ve=oe.onVnodeUpdated)||fe)&&Nt(()=>{ve&&sn(ve,x,_,A),fe&&En(_,A,x,"updated")},D)},$=(A,_,x,D,T,G,K)=>{for(let Y=0;Y<_.length;Y++){const Z=A[Y],q=_[Y],fe=Z.el&&(Z.type===be||!An(Z,q)||Z.shapeFlag&70)?d(Z.el):x;m(Z,q,fe,null,D,T,G,K,!0)}},H=(A,_,x,D,T)=>{if(_!==x){if(_!==Ge)for(const G in _)!er(G)&&!(G in x)&&r(A,G,_[G],null,T,D);for(const G in x){if(er(G))continue;const K=x[G],Y=_[G];K!==Y&&G!=="value"&&r(A,G,Y,K,T,D)}"value"in x&&r(A,"value",_.value,x.value,T)}},E=(A,_,x,D,T,G,K,Y,Z)=>{const q=_.el=A?A.el:a(""),fe=_.anchor=A?A.anchor:a("");let{patchFlag:te,dynamicChildren:oe,slotScopeIds:ve}=_;ve&&(Y=Y?Y.concat(ve):ve),A==null?(i(q,x,D),i(fe,x,D),V(_.children||[],x,fe,T,G,K,Y,Z)):te>0&&te&64&&oe&&A.dynamicChildren?($(A.dynamicChildren,oe,x,T,G,K,Y),(_.key!=null||T&&_===T.subTree)&&Lf(A,_,!0)):B(A,_,x,fe,T,G,K,Y,Z)},W=(A,_,x,D,T,G,K,Y,Z)=>{_.slotScopeIds=Y,A==null?_.shapeFlag&512?T.ctx.activate(_,x,D,K,Z):b(_,x,D,T,G,K,Z):P(A,_,Z)},b=(A,_,x,D,T,G,K)=>{const Y=A.component=xx(A,D,T);if(zs(A)&&(Y.ctx.renderer=me),Ex(Y,!1,K),Y.asyncDep){if(T&&T.registerDep(Y,C,K),!A.el){const Z=Y.subTree=k(gt);y(null,Z,_,x)}}else C(Y,A,_,x,T,G,K)},P=(A,_,x)=>{const D=_.component=A.component;if(mx(A,_,x))if(D.asyncDep&&!D.asyncResolved){F(D,_,x);return}else D.next=_,D.update();else _.el=A.el,D.vnode=_},C=(A,_,x,D,T,G,K)=>{const Y=()=>{if(A.isMounted){let{next:te,bu:oe,u:ve,parent:Ie,vnode:Ke}=A;{const qt=bb(A);if(qt){te&&(te.el=Ke.el,F(A,te,K)),qt.asyncDep.then(()=>{A.isUnmounted||Y()});return}}let Fe=te,Kt;Ki(A,!1),te?(te.el=Ke.el,F(A,te,K)):te=Ke,oe&&Vu(oe),(Kt=te.props&&te.props.onVnodeBeforeUpdate)&&sn(Kt,Ie,te,Ke),Ki(A,!0);const xt=ju(A),fn=A.subTree;A.subTree=xt,m(fn,xt,d(fn.el),le(fn),A,T,G),te.el=xt.el,Fe===null&&ru(A,xt.el),ve&&Nt(ve,T),(Kt=te.props&&te.props.onVnodeUpdated)&&Nt(()=>sn(Kt,Ie,te,Ke),T)}else{let te;const{el:oe,props:ve}=_,{bm:Ie,m:Ke,parent:Fe,root:Kt,type:xt}=A,fn=co(_);if(Ki(A,!1),Ie&&Vu(Ie),!fn&&(te=ve&&ve.onVnodeBeforeMount)&&sn(te,Fe,_),Ki(A,!0),oe&&we){const qt=()=>{A.subTree=ju(A),we(oe,A.subTree,A,T,null)};fn&&xt.__asyncHydrate?xt.__asyncHydrate(oe,A,qt):qt()}else{Kt.ce&&Kt.ce._injectChildStyle(xt);const qt=A.subTree=ju(A);m(null,qt,x,D,A,T,G),_.el=qt.el}if(Ke&&Nt(Ke,T),!fn&&(te=ve&&ve.onVnodeMounted)){const qt=_;Nt(()=>sn(te,Fe,qt),T)}(_.shapeFlag&256||Fe&&co(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&A.a&&Nt(A.a,T),A.isMounted=!0,_=x=D=null}};A.scope.on();const Z=A.effect=new by(Y);A.scope.off();const q=A.update=Z.run.bind(Z),fe=A.job=Z.runIfDirty.bind(Z);fe.i=A,fe.id=A.uid,Z.scheduler=()=>Df(fe),Ki(A,!0),q()},F=(A,_,x)=>{_.component=A;const D=A.vnode.props;A.vnode=_,A.next=null,JC(A,_.props,D,x),nx(A,_.children,x),Hi(),lm(A),Fi()},B=(A,_,x,D,T,G,K,Y,Z=!1)=>{const q=A&&A.children,fe=A?A.shapeFlag:0,te=_.children,{patchFlag:oe,shapeFlag:ve}=_;if(oe>0){if(oe&128){L(q,te,x,D,T,G,K,Y,Z);return}else if(oe&256){R(q,te,x,D,T,G,K,Y,Z);return}}ve&8?(fe&16&&ee(q,T,G),te!==q&&c(x,te)):fe&16?ve&16?L(q,te,x,D,T,G,K,Y,Z):ee(q,T,G,!0):(fe&8&&c(x,""),ve&16&&V(te,x,D,T,G,K,Y,Z))},R=(A,_,x,D,T,G,K,Y,Z)=>{A=A||Jo,_=_||Jo;const q=A.length,fe=_.length,te=Math.min(q,fe);let oe;for(oe=0;oe<te;oe++){const ve=_[oe]=Z?Si(_[oe]):Jt(_[oe]);m(A[oe],ve,x,null,T,G,K,Y,Z)}q>fe?ee(A,T,G,!0,!1,te):V(_,x,D,T,G,K,Y,Z,te)},L=(A,_,x,D,T,G,K,Y,Z)=>{let q=0;const fe=_.length;let te=A.length-1,oe=fe-1;for(;q<=te&&q<=oe;){const ve=A[q],Ie=_[q]=Z?Si(_[q]):Jt(_[q]);if(An(ve,Ie))m(ve,Ie,x,null,T,G,K,Y,Z);else break;q++}for(;q<=te&&q<=oe;){const ve=A[te],Ie=_[oe]=Z?Si(_[oe]):Jt(_[oe]);if(An(ve,Ie))m(ve,Ie,x,null,T,G,K,Y,Z);else break;te--,oe--}if(q>te){if(q<=oe){const ve=oe+1,Ie=ve<fe?_[ve].el:D;for(;q<=oe;)m(null,_[q]=Z?Si(_[q]):Jt(_[q]),x,Ie,T,G,K,Y,Z),q++}}else if(q>oe)for(;q<=te;)j(A[q],T,G,!0),q++;else{const ve=q,Ie=q,Ke=new Map;for(q=Ie;q<=oe;q++){const Xt=_[q]=Z?Si(_[q]):Jt(_[q]);Xt.key!=null&&Ke.set(Xt.key,q)}let Fe,Kt=0;const xt=oe-Ie+1;let fn=!1,qt=0;const Tr=new Array(xt);for(q=0;q<xt;q++)Tr[q]=0;for(q=ve;q<=te;q++){const Xt=A[q];if(Kt>=xt){j(Xt,T,G,!0);continue}let Sn;if(Xt.key!=null)Sn=Ke.get(Xt.key);else for(Fe=Ie;Fe<=oe;Fe++)if(Tr[Fe-Ie]===0&&An(Xt,_[Fe])){Sn=Fe;break}Sn===void 0?j(Xt,T,G,!0):(Tr[Sn-Ie]=q+1,Sn>=qt?qt=Sn:fn=!0,m(Xt,_[Sn],x,null,T,G,K,Y,Z),Kt++)}const im=fn?rx(Tr):Jo;for(Fe=im.length-1,q=xt-1;q>=0;q--){const Xt=Ie+q,Sn=_[Xt],om=Xt+1<fe?_[Xt+1].el:D;Tr[q]===0?m(null,Sn,x,om,T,G,K,Y,Z):fn&&(Fe<0||q!==im[Fe]?U(Sn,x,om,2):Fe--)}}},U=(A,_,x,D,T=null)=>{const{el:G,type:K,transition:Y,children:Z,shapeFlag:q}=A;if(q&6){U(A.component.subTree,_,x,D);return}if(q&128){A.suspense.move(_,x,D);return}if(q&64){K.move(A,_,x,me);return}if(K===be){i(G,_,x);for(let te=0;te<Z.length;te++)U(Z[te],_,x,D);i(A.anchor,_,x);return}if(K===Ma){v(A,_,x);return}if(D!==2&&q&1&&Y)if(D===0)Y.beforeEnter(G),i(G,_,x),Nt(()=>Y.enter(G),T);else{const{leave:te,delayLeave:oe,afterLeave:ve}=Y,Ie=()=>i(G,_,x),Ke=()=>{te(G,()=>{Ie(),ve&&ve()})};oe?oe(G,Ie,Ke):Ke()}else i(G,_,x)},j=(A,_,x,D=!1,T=!1)=>{const{type:G,props:K,ref:Y,children:Z,dynamicChildren:q,shapeFlag:fe,patchFlag:te,dirs:oe,cacheIndex:ve}=A;if(te===-2&&(T=!1),Y!=null&&hs(Y,null,x,A,!0),ve!=null&&(_.renderCache[ve]=void 0),fe&256){_.ctx.deactivate(A);return}const Ie=fe&1&&oe,Ke=!co(A);let Fe;if(Ke&&(Fe=K&&K.onVnodeBeforeUnmount)&&sn(Fe,_,A),fe&6)re(A.component,x,D);else{if(fe&128){A.suspense.unmount(x,D);return}Ie&&En(A,null,_,"beforeUnmount"),fe&64?A.type.remove(A,_,x,me,D):q&&!q.hasOnce&&(G!==be||te>0&&te&64)?ee(q,_,x,!1,!0):(G===be&&te&384||!T&&fe&16)&&ee(Z,_,x),D&&J(A)}(Ke&&(Fe=K&&K.onVnodeUnmounted)||Ie)&&Nt(()=>{Fe&&sn(Fe,_,A),Ie&&En(A,null,_,"unmounted")},x)},J=A=>{const{type:_,el:x,anchor:D,transition:T}=A;if(_===be){X(x,D);return}if(_===Ma){w(A);return}const G=()=>{o(x),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(A.shapeFlag&1&&T&&!T.persisted){const{leave:K,delayLeave:Y}=T,Z=()=>K(x,G);Y?Y(A.el,G,Z):Z()}else G()},X=(A,_)=>{let x;for(;A!==_;)x=f(A),o(A),A=x;o(_)},re=(A,_,x)=>{const{bum:D,scope:T,job:G,subTree:K,um:Y,m:Z,a:q}=A;_m(Z),_m(q),D&&Vu(D),T.stop(),G&&(G.flags|=8,j(K,A,_,x)),Y&&Nt(Y,_),Nt(()=>{A.isUnmounted=!0},_),_&&_.pendingBranch&&!_.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===_.pendingId&&(_.deps--,_.deps===0&&_.resolve())},ee=(A,_,x,D=!1,T=!1,G=0)=>{for(let K=G;K<A.length;K++)j(A[K],_,x,D,T)},le=A=>{if(A.shapeFlag&6)return le(A.component.subTree);if(A.shapeFlag&128)return A.suspense.next();const _=f(A.anchor||A.el),x=_&&_[Hy];return x?f(x):_};let ue=!1;const pe=(A,_,x)=>{A==null?_._vnode&&j(_._vnode,null,null,!0):m(_._vnode||null,A,_,null,null,null,x),_._vnode=A,ue||(ue=!0,lm(),tl(),ue=!1)},me={p:m,um:j,m:U,r:J,mt:b,mc:V,pc:B,pbc:$,n:le,o:e};let ce,we;return t&&([ce,we]=t(me)),{render:pe,hydrate:ce,createApp:XC(pe,ce)}}function Uu({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ki({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function yb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Lf(e,t,n=!1){const i=e.children,o=t.children;if(Ce(i)&&Ce(o))for(let r=0;r<i.length;r++){const s=i[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Si(o[r]),a.el=s.el),!n&&a.patchFlag!==-2&&Lf(s,a)),a.type===Ti&&(a.el=s.el)}}function rx(e){const t=e.slice(),n=[0];let i,o,r,s,a;const l=e.length;for(i=0;i<l;i++){const u=e[i];if(u!==0){if(o=n[n.length-1],e[o]<u){t[i]=o,n.push(i);continue}for(r=0,s=n.length-1;r<s;)a=r+s>>1,e[n[a]]<u?r=a+1:s=a;u<e[n[r]]&&(r>0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function bb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:bb(t)}function _m(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const sx=Symbol.for("v-scx"),ax=()=>je(sx);function dn(e,t){return iu(e,null,t)}function lx(e,t){return iu(e,null,{flush:"sync"})}function ae(e,t,n){return iu(e,t,n)}function iu(e,t,n=Ge){const{immediate:i,deep:o,flush:r,once:s}=n,a=ot({},n),l=t&&i||!t&&r!=="post";let u;if(lr){if(r==="sync"){const h=ax();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Tn,h.resume=Tn,h.pause=Tn,h}}const c=pt;a.call=(h,g,m)=>yn(h,c,g,m);let d=!1;r==="post"?a.scheduler=h=>{Nt(h,c&&c.suspense)}:r!=="sync"&&(d=!0,a.scheduler=(h,g)=>{g?h():Df(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=CC(e,t,a);return lr&&(u?u.push(f):l&&f()),f}function ux(e,t,n){const i=this.proxy,o=et(e)?e.includes(".")?wb(i,e):()=>i[e]:e.bind(i,i);let r;xe(t)?r=t:(r=t.handler,n=t);const s=So(this),a=iu(o,r.bind(i),n);return s(),a}function wb(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o<n.length&&i;o++)i=i[n[o]];return i}}function _b(e,t,n=Ge){const i=Bt(),o=Lt(t),r=zi(t),s=Sb(e,o),a=$y((l,u)=>{let c,d=Ge,f;return lx(()=>{const h=e[o];$t(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const g=n.set?n.set(h):h;if(!$t(g,c)&&!(d!==Ge&&$t(h,d)))return;const m=i.vnode.props;m&&(t in m||o in m||r in m)&&(`onUpdate:${t}`in m||`onUpdate:${o}`in m||`onUpdate:${r}`in m)||(c=h,u()),i.emit(`update:${t}`,g),$t(h,g)&&$t(h,d)&&!$t(g,f)&&u(),d=h,f=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||Ge:a,done:!1}:{done:!0}}}},a}const Sb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Lt(t)}Modifiers`]||e[`${zi(t)}Modifiers`];function cx(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Ge;let o=n;const r=t.startsWith("update:"),s=r&&Sb(i,t.slice(7));s&&(s.trim&&(o=n.map(c=>et(c)?c.trim():c)),s.number&&(o=n.map(GS)));let a,l=i[a=Ru(t)]||i[a=Ru(Lt(t))];!l&&r&&(l=i[a=Ru(zi(t))]),l&&yn(l,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,yn(u,e,6,o)}}function Cb(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!xe(e)){const l=u=>{const c=Cb(u,t,!0);c&&(a=!0,ot(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(Ze(e)&&i.set(e,null),null):(Ce(r)?r.forEach(l=>s[l]=null):ot(s,r),Ze(e)&&i.set(e,s),s)}function ou(e,t){return!e||!Rs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ye(e,t[0].toLowerCase()+t.slice(1))||Ye(e,zi(t))||Ye(e,t))}function ju(e){const{type:t,vnode:n,proxy:i,withProxy:o,propsOptions:[r],slots:s,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:g,inheritAttrs:m}=e,p=nl(e);let y,S;try{if(n.shapeFlag&4){const w=o||i,M=w;y=Jt(u.call(M,w,c,d,h,f,g)),S=a}else{const w=t;y=Jt(w.length>1?w(d,{attrs:a,slots:s,emit:l}):w(d,null)),S=t.props?a:fx(a)}}catch(w){es.length=0,_r(w,e,1),y=k(gt)}let v=y;if(S&&m!==!1){const w=Object.keys(S),{shapeFlag:M}=v;w.length&&M&7&&(r&&w.some(vf)&&(S=hx(S,r)),v=$n(v,S,!1,!0))}return n.dirs&&(v=$n(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&bo(v,n.transition),y=v,nl(p),y}function dx(e,t=!0){let n;for(let i=0;i<e.length;i++){const o=e[i];if(_o(o)){if(o.type!==gt||o.children==="v-if"){if(n)return;n=o}}else return}return n}const fx=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rs(n))&&((t||(t={}))[n]=e[n]);return t},hx=(e,t)=>{const n={};for(const i in e)(!vf(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function mx(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Sm(i,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(s[f]!==i[f]&&!ou(u,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:i===s?!1:i?s?Sm(i,s,u):!0:!!s;return!1}function Sm(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const r=i[o];if(t[r]!==e[r]&&!ou(n,r))return!0}return!1}function ru({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const xb=e=>e.__isSuspense;let Yc=0;const gx={name:"Suspense",__isSuspense:!0,process(e,t,n,i,o,r,s,a,l,u){if(e==null)px(t,n,i,o,r,s,a,l,u);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}vx(e,t,n,i,o,s,a,l,u)}},hydrate:yx,normalize:bx},Eb=gx;function ms(e,t){const n=e.props&&e.props[t];xe(n)&&n()}function px(e,t,n,i,o,r,s,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=kb(e,o,i,t,d,n,r,s,a,l);u(null,f.pendingBranch=e.ssContent,d,null,i,f,r,s),f.deps>0?(ms(e,"onPending"),ms(e,"onFallback"),u(null,e.ssFallback,t,n,i,null,r,s),nr(f,e.ssFallback)):f.resolve(!1,!0)}function vx(e,t,n,i,o,r,s,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:g,pendingBranch:m,isInFallback:p,isHydrating:y}=d;if(m)d.pendingBranch=f,An(f,m)?(l(m,f,d.hiddenContainer,null,o,d,r,s,a),d.deps<=0?d.resolve():p&&(y||(l(g,h,n,i,o,null,r,s,a),nr(d,h)))):(d.pendingId=Yc++,y?(d.isHydrating=!1,d.activeBranch=m):u(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),p?(l(null,f,d.hiddenContainer,null,o,d,r,s,a),d.deps<=0?d.resolve():(l(g,h,n,i,o,null,r,s,a),nr(d,h))):g&&An(f,g)?(l(g,f,n,i,o,d,r,s,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,o,d,r,s,a),d.deps<=0&&d.resolve()));else if(g&&An(f,g))l(g,f,n,i,o,d,r,s,a),nr(d,f);else if(ms(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Yc++,l(null,f,d.hiddenContainer,null,o,d,r,s,a),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:v}=d;S>0?setTimeout(()=>{d.pendingId===v&&d.fallback(h)},S):S===0&&d.fallback(h)}}function kb(e,t,n,i,o,r,s,a,l,u,c=!1){const{p:d,m:f,um:h,n:g,o:{parentNode:m,remove:p}}=u;let y;const S=wx(e);S&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const v=e.props?my(e.props.timeout):void 0,w=r,M={vnode:e,parent:t,parentComponent:n,namespace:s,container:i,hiddenContainer:o,deps:0,pendingId:Yc++,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(I=!1,O=!1){const{vnode:V,activeBranch:N,pendingBranch:$,pendingId:H,effects:E,parentComponent:W,container:b}=M;let P=!1;M.isHydrating?M.isHydrating=!1:I||(P=N&&$.transition&&$.transition.mode==="out-in",P&&(N.transition.afterLeave=()=>{H===M.pendingId&&(f($,b,r===w?g(N):r,0),Hc(E))}),N&&(m(N.el)===b&&(r=g(N)),h(N,W,M,!0)),P||f($,b,r,0)),nr(M,$),M.pendingBranch=null,M.isInFallback=!1;let C=M.parent,F=!1;for(;C;){if(C.pendingBranch){C.effects.push(...E),F=!0;break}C=C.parent}!F&&!P&&Hc(E),M.effects=[],S&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!O&&t.resolve()),ms(V,"onResolve")},fallback(I){if(!M.pendingBranch)return;const{vnode:O,activeBranch:V,parentComponent:N,container:$,namespace:H}=M;ms(O,"onFallback");const E=g(V),W=()=>{M.isInFallback&&(d(null,I,$,E,N,null,H,a,l),nr(M,I))},b=I.transition&&I.transition.mode==="out-in";b&&(V.transition.afterLeave=W),M.isInFallback=!0,h(V,N,null,!0),b||W()},move(I,O,V){M.activeBranch&&f(M.activeBranch,I,O,V),M.container=I},next(){return M.activeBranch&&g(M.activeBranch)},registerDep(I,O,V){const N=!!M.pendingBranch;N&&M.deps++;const $=I.vnode.el;I.asyncDep.catch(H=>{_r(H,I,0)}).then(H=>{if(I.isUnmounted||M.isUnmounted||M.pendingId!==I.suspenseId)return;I.asyncResolved=!0;const{vnode:E}=I;Xc(I,H,!1),$&&(E.el=$);const W=!$&&I.subTree.el;O(I,E,m($||I.subTree.el),$?null:g(I.subTree),M,s,V),W&&p(W),ru(I,E.el),N&&--M.deps===0&&M.resolve()})},unmount(I,O){M.isUnmounted=!0,M.activeBranch&&h(M.activeBranch,n,I,O),M.pendingBranch&&h(M.pendingBranch,n,I,O)}};return M}function yx(e,t,n,i,o,r,s,a,l){const u=t.suspense=kb(t,i,n,e.parentNode,document.createElement("div"),null,o,r,s,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,r,s);return u.deps===0&&u.resolve(!1,!0),c}function bx(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=Cm(i?n.default:n),e.ssFallback=i?Cm(n.fallback):k(gt)}function Cm(e){let t;if(xe(e)){const n=wo&&e._c;n&&(e._d=!1,se()),e=e(),n&&(e._d=!0,t=Pt,Db())}return Ce(e)&&(e=dx(e)),e=Jt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Ab(e,t){t&&t.pendingBranch?Ce(e)?t.effects.push(...e):t.effects.push(e):Hc(e)}function nr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,i&&i.subTree===n&&(i.vnode.el=o,ru(i,o))}function wx(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const be=Symbol.for("v-fgt"),Ti=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),Ma=Symbol.for("v-stc"),es=[];let Pt=null;function se(e=!1){es.push(Pt=e?null:[])}function Db(){es.pop(),Pt=es[es.length-1]||null}let wo=1;function xm(e,t=!1){wo+=e,e<0&&Pt&&t&&(Pt.hasOnce=!0)}function Pb(e){return e.dynamicChildren=wo>0?Pt||Jo:null,Db(),wo>0&&Pt&&Pt.push(e),e}function Ae(e,t,n,i,o,r){return Pb(nt(e,t,n,i,o,r,!0))}function Oe(e,t,n,i,o){return Pb(k(e,t,n,i,o,!0))}function _o(e){return e?e.__v_isVNode===!0:!1}function An(e,t){return e.type===t.type&&e.key===t.key}const Ib=({key:e})=>e??null,Na=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?et(e)||Ve(e)||xe(e)?{i:vt,r:e,k:t,f:!!n}:e:null);function nt(e,t=null,n=null,i=0,o=null,r=e===be?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ib(t),ref:t&&Na(t),scopeId:By,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:vt};return a?(Bf(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=et(n)?8:16),wo>0&&!s&&Pt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Pt.push(l),l}const k=_x;function _x(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===eb)&&(e=gt),_o(e)){const a=$n(e,t,!0);return n&&Bf(a,n),wo>0&&!r&&Pt&&(a.shapeFlag&6?Pt[Pt.indexOf(e)]=a:Pt.push(a)),a.patchFlag=-2,a}if(Px(e)&&(e=e.__vccOpts),t){t=zf(t);let{class:a,style:l}=t;a&&!et(a)&&(t.class=jt(a)),Ze(l)&&(Af(l)&&!Ce(l)&&(l=ot({},l)),t.style=ft(l))}const s=et(e)?1:xb(e)?128:Fy(e)?64:Ze(e)?4:xe(e)?2:0;return nt(e,t,n,i,o,s,r,!0)}function zf(e){return e?Af(e)||cb(e)?ot({},e):e:null}function $n(e,t,n=!1,i=!1){const{props:o,ref:r,patchFlag:s,children:a,transition:l}=e,u=t?Ee(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ib(u),ref:t&&t.ref?n&&r?Ce(r)?r.concat(Na(t)):[r,Na(t)]:Na(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$n(e.ssContent),ssFallback:e.ssFallback&&$n(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&bo(c,l.clone(c)),c}function Zt(e=" ",t=0){return k(Ti,null,e,t)}function dt(e="",t=!1){return t?(se(),Oe(gt,null,e)):k(gt,null,e)}function Jt(e){return e==null||typeof e=="boolean"?k(gt):Ce(e)?k(be,null,e.slice()):_o(e)?Si(e):k(Ti,null,String(e))}function Si(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$n(e)}function Bf(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Ce(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),Bf(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!cb(t)?t._ctx=vt:o===3&&vt&&(vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xe(t)?(t={default:t,_ctx:vt},n=32):(t=String(t),i&64?(n=16,t=[Zt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ee(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const o in i)if(o==="class")t.class!==i.class&&(t.class=jt([t.class,i.class]));else if(o==="style")t.style=ft([t.style,i.style]);else if(Rs(o)){const r=t[o],s=i[o];s&&r!==s&&!(Ce(r)&&r.includes(s))&&(t[o]=r?[].concat(r,s):s)}else o!==""&&(t[o]=i[o])}return t}function sn(e,t,n,i=null){yn(e,t,7,[n,i])}const Sx=ab();let Cx=0;function xx(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||Sx,r={uid:Cx++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new yy(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:fb(i,o),emitsOptions:Cb(i,o),emit:null,emitted:null,propsDefaults:Ge,inheritAttrs:i.inheritAttrs,ctx:Ge,data:Ge,props:Ge,attrs:Ge,slots:Ge,refs:Ge,setupState:Ge,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=cx.bind(null,r),e.ce&&e.ce(r),r}let pt=null;const Bt=()=>pt||vt;let rl,Kc;{const e=Jl(),t=(n,i)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(i),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};rl=t("__VUE_INSTANCE_SETTERS__",n=>pt=n),Kc=t("__VUE_SSR_SETTERS__",n=>lr=n)}const So=e=>{const t=pt;return rl(e),e.scope.on(),()=>{e.scope.off(),rl(t)}},qc=()=>{pt&&pt.scope.off(),rl(null)};function Tb(e){return e.vnode.shapeFlag&4}let lr=!1;function Ex(e,t=!1,n=!1){t&&Kc(t);const{props:i,children:o}=e.vnode,r=Tb(e);ZC(e,i,r,t),tx(e,o,n);const s=r?kx(e,t):void 0;return t&&Kc(!1),s}function kx(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,FC);const{setup:i}=n;if(i){Hi();const o=e.setupContext=i.length>1?Nb(e):null,r=So(e),s=Ls(i,e,0,[e.props,o]),a=bf(s);if(Fi(),r(),(a||e.sp)&&!co(e)&&If(e),a){if(s.then(qc,qc),t)return s.then(l=>{Xc(e,l,t)}).catch(l=>{_r(l,e,0)});e.asyncDep=s}else Xc(e,s,t)}else Mb(e,t)}function Xc(e,t,n){xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ze(t)&&(e.setupState=Oy(t)),Mb(e,n)}let Em;function Mb(e,t,n){const i=e.type;if(!e.render){if(!t&&Em&&!i.render){const o=i.template||$f(e).template;if(o){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=i,u=ot(ot({isCustomElement:r,delimiters:a},s),l);i.render=Em(o,u)}}e.render=i.render||Tn}{const o=So(e);Hi();try{WC(e)}finally{Fi(),o()}}}const Ax={get(e,t){return kt(e,"get",""),e[t]}};function Nb(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ax),slots:e.slots,emit:e.emit,expose:t}}function su(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oy(Mn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qr)return Qr[n](e)},has(t,n){return n in t||n in Qr}})):e.proxy}function Dx(e,t=!0){return xe(e)?e.displayName||e.name:e.name||t&&e.__name}function Px(e){return xe(e)&&"__vccOpts"in e}const z=(e,t)=>_C(e,t,lr);function Me(e,t,n){const i=arguments.length;return i===2?Ze(t)&&!Ce(t)?_o(t)?k(e,null,[t]):k(e,t):k(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&_o(n)&&(n=[n]),k(e,t,n))}function Ix(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if($t(n[i],t[i]))return!1;return wo>0&&Pt&&Pt.push(e),!0}const Ob="3.5.13";/**
|
|
16
|
+
* @vue/runtime-dom v3.5.13
|
|
17
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
|
+
* @license MIT
|
|
19
|
+
**/let Zc;const km=typeof window<"u"&&window.trustedTypes;if(km)try{Zc=km.createPolicy("vue",{createHTML:e=>e})}catch{}const $b=Zc?e=>Zc.createHTML(e):e=>e,Tx="http://www.w3.org/2000/svg",Mx="http://www.w3.org/1998/Math/MathML",Yn=typeof document<"u"?document:null,Am=Yn&&Yn.createElement("template"),Nx={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?Yn.createElementNS(Tx,e):t==="mathml"?Yn.createElementNS(Mx,e):n?Yn.createElement(e,{is:n}):Yn.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Yn.createTextNode(e),createComment:e=>Yn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Am.innerHTML=$b(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const a=Am.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},hi="transition",Nr="animation",ur=Symbol("_vtc"),Rb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Vb=ot({},jy,Rb),Ox=e=>(e.displayName="Transition",e.props=Vb,e),Co=Ox((e,{slots:t})=>Me(PC,Lb(e),t)),qi=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},Dm=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function Lb(e){const t={};for(const E in e)E in Rb||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=$x(o),m=g&&g[0],p=g&&g[1],{onBeforeEnter:y,onEnter:S,onEnterCancelled:v,onLeave:w,onLeaveCancelled:M,onBeforeAppear:I=y,onAppear:O=S,onAppearCancelled:V=v}=t,N=(E,W,b,P)=>{E._enterCancelled=P,pi(E,W?c:a),pi(E,W?u:s),b&&b()},$=(E,W)=>{E._isLeaving=!1,pi(E,d),pi(E,h),pi(E,f),W&&W()},H=E=>(W,b)=>{const P=E?O:S,C=()=>N(W,E,b);qi(P,[W,C]),Pm(()=>{pi(W,E?l:r),Cn(W,E?c:a),Dm(P)||Im(W,i,m,C)})};return ot(t,{onBeforeEnter(E){qi(y,[E]),Cn(E,r),Cn(E,s)},onBeforeAppear(E){qi(I,[E]),Cn(E,l),Cn(E,u)},onEnter:H(!1),onAppear:H(!0),onLeave(E,W){E._isLeaving=!0;const b=()=>$(E,W);Cn(E,d),E._enterCancelled?(Cn(E,f),Jc()):(Jc(),Cn(E,f)),Pm(()=>{E._isLeaving&&(pi(E,d),Cn(E,h),Dm(w)||Im(E,i,p,b))}),qi(w,[E,b])},onEnterCancelled(E){N(E,!1,void 0,!0),qi(v,[E])},onAppearCancelled(E){N(E,!0,void 0,!0),qi(V,[E])},onLeaveCancelled(E){$(E),qi(M,[E])}})}function $x(e){if(e==null)return null;if(Ze(e))return[Yu(e.enter),Yu(e.leave)];{const t=Yu(e);return[t,t]}}function Yu(e){return my(e)}function Cn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ur]||(e[ur]=new Set)).add(t)}function pi(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[ur];n&&(n.delete(t),n.size||(e[ur]=void 0))}function Pm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rx=0;function Im(e,t,n,i){const o=e._endId=++Rx,r=()=>{o===e._endId&&i()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=zb(e,t);if(!s)return i();const u=s+"end";let c=0;const d=()=>{e.removeEventListener(u,f),r()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function zb(e,t){const n=window.getComputedStyle(e),i=g=>(n[g]||"").split(", "),o=i(`${hi}Delay`),r=i(`${hi}Duration`),s=Tm(o,r),a=i(`${Nr}Delay`),l=i(`${Nr}Duration`),u=Tm(a,l);let c=null,d=0,f=0;t===hi?s>0&&(c=hi,d=s,f=r.length):t===Nr?u>0&&(c=Nr,d=u,f=l.length):(d=Math.max(s,u),c=d>0?s>u?hi:Nr:null,f=c?c===hi?r.length:l.length:0);const h=c===hi&&/\b(transform|all)(,|$)/.test(i(`${hi}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function Tm(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>Mm(n)+Mm(e[i])))}function Mm(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Jc(){return document.body.offsetHeight}function Vx(e,t,n){const i=e[ur];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sl=Symbol("_vod"),Bb=Symbol("_vsh"),Sr={beforeMount(e,{value:t},{transition:n}){e[sl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Or(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Or(e,!0),i.enter(e)):i.leave(e,()=>{Or(e,!1)}):Or(e,t))},beforeUnmount(e,{value:t}){Or(e,t)}};function Or(e,t){e.style.display=t?e[sl]:"none",e[Bb]=!t}const Lx=Symbol(""),zx=/(^|;)\s*display\s*:/;function Bx(e,t,n){const i=e.style,o=et(n);let r=!1;if(n&&!o){if(t)if(et(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Oa(i,a,"")}else for(const s in t)n[s]==null&&Oa(i,s,"");for(const s in n)s==="display"&&(r=!0),Oa(i,s,n[s])}else if(o){if(t!==n){const s=i[Lx];s&&(n+=";"+s),i.cssText=n,r=zx.test(n)}}else t&&e.removeAttribute("style");sl in e&&(e[sl]=r?i.display:"",e[Bb]&&(i.display="none"))}const Nm=/\s*!important$/;function Oa(e,t,n){if(Ce(n))n.forEach(i=>Oa(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Hx(e,t);Nm.test(n)?e.setProperty(zi(i),n.replace(Nm,""),"important"):e[i]=n}}const Om=["Webkit","Moz","ms"],Ku={};function Hx(e,t){const n=Ku[t];if(n)return n;let i=Lt(t);if(i!=="filter"&&i in e)return Ku[t]=i;i=yr(i);for(let o=0;o<Om.length;o++){const r=Om[o]+i;if(r in e)return Ku[t]=r}return t}const $m="http://www.w3.org/1999/xlink";function Rm(e,t,n,i,o,r=qS(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS($m,t.slice(6,t.length)):e.setAttributeNS($m,t,n):n==null||r&&!gy(n)?e.removeAttribute(t):e.setAttribute(t,r?"":ci(n)?String(n):n)}function Vm(e,t,n,i,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?$b(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=gy(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(o||t)}function Fx(e,t,n,i){e.addEventListener(t,n,i)}function Gx(e,t,n,i){e.removeEventListener(t,n,i)}const Lm=Symbol("_vei");function Wx(e,t,n,i,o=null){const r=e[Lm]||(e[Lm]={}),s=r[t];if(i&&s)s.value=i;else{const[a,l]=Ux(t);if(i){const u=r[t]=Kx(i,o);Fx(e,a,u,l)}else s&&(Gx(e,a,s,l),r[t]=void 0)}}const zm=/(?:Once|Passive|Capture)$/;function Ux(e){let t;if(zm.test(e)){t={};let i;for(;i=e.match(zm);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):zi(e.slice(2)),t]}let qu=0;const jx=Promise.resolve(),Yx=()=>qu||(jx.then(()=>qu=0),qu=Date.now());function Kx(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;yn(qx(i,n.value),t,5,[i])};return n.value=e,n.attached=Yx(),n}function qx(e,t){if(Ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const Bm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xx=(e,t,n,i,o,r)=>{const s=o==="svg";t==="class"?Vx(e,i,s):t==="style"?Bx(e,n,i):Rs(t)?vf(t)||Wx(e,t,n,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zx(e,t,i,s))?(Vm(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rm(e,t,i,s,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!et(i))?Vm(e,Lt(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Rm(e,t,i,s))};function Zx(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bm(t)&&xe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Bm(t)&&et(n)?!1:t in e}const Hb=new WeakMap,Fb=new WeakMap,al=Symbol("_moveCb"),Hm=Symbol("_enterCb"),Jx=e=>(delete e.props.mode,e),Qx=Jx({name:"TransitionGroup",props:ot({},Vb,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Bt(),i=Uy();let o,r;return Tf(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!iE(o[0].el,n.vnode.el,s))return;o.forEach(eE),o.forEach(tE);const a=o.filter(nE);Jc(),a.forEach(l=>{const u=l.el,c=u.style;Cn(u,s),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[al]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[al]=null,pi(u,s))};u.addEventListener("transitionend",d)})}),()=>{const s=_e(e),a=Lb(s);let l=s.tag||be;if(o=[],r)for(let u=0;u<r.length;u++){const c=r[u];c.el&&c.el instanceof Element&&(o.push(c),bo(c,fs(c,a,i,n)),Hb.set(c,c.el.getBoundingClientRect()))}r=t.default?Pf(t.default()):[];for(let u=0;u<r.length;u++){const c=r[u];c.key!=null&&bo(c,fs(c,a,i,n))}return k(l,null,r)}}}),Hf=Qx;function eE(e){const t=e.el;t[al]&&t[al](),t[Hm]&&t[Hm]()}function tE(e){Fb.set(e,e.el.getBoundingClientRect())}function nE(e){const t=Hb.get(e),n=Fb.get(e),i=t.left-n.left,o=t.top-n.top;if(i||o){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${i}px,${o}px)`,r.transitionDuration="0s",e}}function iE(e,t,n){const i=e.cloneNode(),o=e[ur];o&&o.forEach(a=>{a.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&i.classList.add(a)),i.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(i);const{hasTransform:s}=zb(i);return r.removeChild(i),s}const Gb=ot({patchProp:Xx},Nx);let ts,Fm=!1;function Wb(){return ts||(ts=ix(Gb))}function oE(){return ts=Fm?ts:ox(Gb),Fm=!0,ts}const Xu=(...e)=>{Wb().render(...e)},rE=(...e)=>{const t=Wb().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=jb(i);if(!o)return;const r=t._component;!xe(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Ub(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},sE=(...e)=>{const t=oE().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=jb(i);if(o)return n(o,!0,Ub(o))},t};function Ub(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jb(e){return et(e)?document.querySelector(e):e}const aE=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,lE=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,uE=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function cE(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){dE(e);return}return t}function dE(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ll(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const i=n.toLowerCase();if(i==="true")return!0;if(i==="false")return!1;if(i==="undefined")return;if(i==="null")return null;if(i==="nan")return Number.NaN;if(i==="infinity")return Number.POSITIVE_INFINITY;if(i==="-infinity")return Number.NEGATIVE_INFINITY}if(!uE.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(aE.test(e)||lE.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,cE)}return JSON.parse(e)}catch(i){if(t.strict)throw i;return e}}const fE=/#/g,hE=/&/g,mE=/\//g,gE=/=/g,Ff=/\+/g,pE=/%5e/gi,vE=/%60/gi,yE=/%7c/gi,bE=/%20/gi;function wE(e){return encodeURI(""+e).replace(yE,"|")}function Qc(e){return wE(typeof e=="string"?e:JSON.stringify(e)).replace(Ff,"%2B").replace(bE,"+").replace(fE,"%23").replace(hE,"%26").replace(vE,"`").replace(pE,"^").replace(mE,"%2F")}function Zu(e){return Qc(e).replace(gE,"%3D")}function ul(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function _E(e){return ul(e.replace(Ff," "))}function SE(e){return ul(e.replace(Ff," "))}function Yb(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const i=n.match(/([^=]+)=?(.*)/)||[];if(i.length<2)continue;const o=_E(i[1]);if(o==="__proto__"||o==="constructor")continue;const r=SE(i[2]||"");t[o]===void 0?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}return t}function CE(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Zu(e)}=${Qc(n)}`).join("&"):`${Zu(e)}=${Qc(t)}`:Zu(e)}function Kb(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>CE(t,e[t])).filter(Boolean).join("&")}const xE=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,EE=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,kE=/^([/\\]\s*){2,}[^/\\]/,AE=/^[\s\0]*(blob|data|javascript|vbscript):$/i,DE=/\/$|\/\?|\/#/,PE=/^\.?\//;function Cr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?xE.test(e):EE.test(e)||(t.acceptRelative?kE.test(e):!1)}function IE(e){return!!e&&AE.test(e)}function ed(e="",t){return t?DE.test(e):e.endsWith("/")}function Gf(e="",t){if(!t)return(ed(e)?e.slice(0,-1):e)||"/";if(!ed(e,!0))return e||"/";let n=e,i="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),i=e.slice(o));const[r,...s]=n.split("?");return((r.endsWith("/")?r.slice(0,-1):r)||"/")+(s.length>0?`?${s.join("?")}`:"")+i}function td(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ed(e,!0))return e||"/";let n=e,i="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),i=e.slice(o),!n))return i;const[r,...s]=n.split("?");return r+"/"+(s.length>0?`?${s.join("?")}`:"")+i}function TE(e=""){return e.startsWith("/")}function Gm(e=""){return TE(e)?e:"/"+e}function ME(e,t){if(Xb(t)||Cr(e))return e;const n=Gf(t);return e.startsWith(n)?e:au(n,e)}function NE(e,t){if(Xb(t))return e;const n=Gf(t);if(!e.startsWith(n))return e;const i=e.slice(n.length);return i[0]==="/"?i:"/"+i}function qb(e,t){const n=RE(e),i={...Yb(n.search),...t};return n.search=Kb(i),Qb(n)}function Xb(e){return!e||e==="/"}function OE(e){return e&&e!=="/"}function au(e,...t){let n=e||"";for(const i of t.filter(o=>OE(o)))if(n){const o=i.replace(PE,"");n=td(n)+o}else n=i;return n}function Zb(...e){var s,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),i=[];let o=0;for(const c of n)if(!(!c||c==="/")){for(const[d,f]of c.split(t).entries())if(!(!f||f===".")){if(f===".."){if(i.length===1&&Cr(i[0]))continue;i.pop(),o--;continue}if(d===1&&((s=i[i.length-1])!=null&&s.endsWith(":/"))){i[i.length-1]+="/"+f;continue}i.push(f),o++}}let r=i.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!r.startsWith("/")?r="/"+r:(l=n[0])!=null&&l.startsWith("./")&&!r.startsWith("./")&&(r="./"+r):r="../".repeat(-1*o)+r,(u=n[n.length-1])!=null&&u.endsWith("/")&&!r.endsWith("/")&&(r+="/"),r}function $E(e,t,n={}){return n.trailingSlash||(e=td(e),t=td(t)),n.leadingSlash||(e=Gm(e),t=Gm(t)),n.encoding||(e=ul(e),t=ul(t)),e===t}const Jb=Symbol.for("ufo:protocolRelative");function RE(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Cr(e,{acceptRelative:!0}))return Wm(e);const[,i="",o,r=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=r.match(/([^#/?]*)(.*)?/)||[];i==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=Wm(a);return{protocol:i.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:l,search:u,hash:c,[Jb]:!i}}function Wm(e=""){const[t="",n="",i=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:i}}function Qb(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",i=e.hash||"",o=e.auth?e.auth+"@":"",r=e.host||"";return(e.protocol||e[Jb]?(e.protocol||"")+"//":"")+o+r+t+n+i}class VE extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function LE(e){var l,u,c,d,f;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((d=e.options)==null?void 0:d.method)||"GET",i=((f=e.request)==null?void 0:f.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(i)}`,r=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${o}: ${r}${t?` ${t}`:""}`,a=new VE(s,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[g]}});return a}const zE=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Um(e="GET"){return zE.has(e.toUpperCase())}function BE(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const HE=new Set(["image/svg","application/xml","application/xhtml","application/html"]),FE=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function GE(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return FE.test(t)?"json":HE.has(t)||t.startsWith("text/")?"text":"blob"}function WE(e,t,n,i){const o=UE((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,i);let r;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(r={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:r,params:r,headers:o}}function UE(e,t,n){if(!t)return new n(e);const i=new n(t);if(e)for(const[o,r]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))i.set(o,r);return i}async function ra(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const jE=new Set([408,409,425,429,500,502,503,504]),YE=new Set([101,204,205,304]);function ew(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:i=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=Um(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):jE.has(d))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),r(a.request,{...a.options,retry:c-1})}}const u=LE(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,r),u}const r=async function(l,u={}){const c={request:l,options:WE(l,u,e.defaults,n),response:void 0,error:void 0};c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&await ra(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=ME(c.request,c.options.baseURL)),c.options.query&&(c.request=qb(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Um(c.options.method)&&(BE(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let d;if(!c.options.signal&&c.options.timeout){const h=new i;d=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,h.abort(g)},c.options.timeout),c.options.signal=h.signal}try{c.response=await t(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await ra(c,c.options.onRequestError),await o(c)}finally{d&&clearTimeout(d)}if((c.response.body||c.response._bodyInit)&&!YE.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||GE(c.response.headers.get("content-type")||"");switch(h){case"json":{const g=await c.response.text(),m=c.options.parseResponse||ll;c.response._data=m(g);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await ra(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await ra(c,c.options.onResponseError),await o(c)):c.response},s=async function(l,u){return(await r(l,u))._data};return s.raw=r,s.native=(...a)=>t(...a),s.create=(a={},l={})=>ew({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),s}const cl=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),KE=cl.fetch?(...e)=>cl.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),qE=cl.Headers,XE=cl.AbortController,ZE=ew({fetch:KE,Headers:qE,AbortController:XE}),JE=ZE,QE=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},dl=QE().app,ek=()=>dl.baseURL,tk=()=>dl.buildAssetsDir,Wf=(...e)=>Zb(tw(),tk(),...e),tw=(...e)=>{const t=dl.cdnURL||dl.baseURL;return e.length?Zb(t,...e):t};globalThis.__buildAssetsURL=Wf,globalThis.__publicAssetsURL=tw;globalThis.$fetch||(globalThis.$fetch=JE.create({baseURL:ek()}));function nd(e,t={},n){for(const i in e){const o=e[i],r=n?`${n}:${i}`:i;typeof o=="object"&&o!==null?nd(o,t,r):typeof o=="function"&&(t[r]=o)}return t}const nk={run:e=>e()},ik=()=>nk,nw=typeof console.createTask<"u"?console.createTask:ik;function ok(e,t){const n=t.shift(),i=nw(n);return e.reduce((o,r)=>o.then(()=>i.run(()=>r(...t))),Promise.resolve())}function rk(e,t){const n=t.shift(),i=nw(n);return Promise.all(e.map(o=>i.run(()=>o(...t))))}function Ju(e,t){for(const n of[...e])n(t)}class sk{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,i={}){if(!t||typeof n!="function")return()=>{};const o=t;let r;for(;this._deprecatedHooks[t];)r=this._deprecatedHooks[t],t=r.to;if(r&&!i.allowDeprecated){let s=r.message;s||(s=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let i,o=(...r)=>(typeof i=="function"&&i(),i=void 0,o=void 0,n(...r));return i=this.hook(t,o),i}removeHook(t,n){if(this._hooks[t]){const i=this._hooks[t].indexOf(n);i!==-1&&this._hooks[t].splice(i,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const i=this._hooks[t]||[];delete this._hooks[t];for(const o of i)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=nd(t),i=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of i.splice(0,i.length))o()}}removeHooks(t){const n=nd(t);for(const i in n)this.removeHook(i,n[i])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(ok,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(rk,t,...n)}callHookWith(t,n,...i){const o=this._before||this._after?{name:n,args:i,context:{}}:void 0;this._before&&Ju(this._before,o);const r=t(n in this._hooks?[...this._hooks[n]]:[],i);return r instanceof Promise?r.finally(()=>{this._after&&o&&Ju(this._after,o)}):(this._after&&o&&Ju(this._after,o),r)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function iw(){return new sk}function ak(e={}){let t,n=!1;const i=s=>{if(t&&t!==s)throw new Error("Context conflict")};let o;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?o=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const r=()=>{if(o&&t===void 0){const s=o.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=r();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>r(),set:(s,a)=>{a||i(s),t=s,n=!0},unset:()=>{t=void 0,n=!1},call:(s,a)=>{i(s),t=s;try{return o?o.run(s,a):a()}finally{n||(t=void 0)}},async callAsync(s,a){t=s;const l=()=>{t=s},u=()=>t===s?l:void 0;id.add(u);try{const c=o?o.run(s,a):a();return n||(t=void 0),await c}finally{id.delete(u)}}}}function lk(e={}){const t={};return{get(n,i={}){return t[n]||(t[n]=ak({...e,...i})),t[n]}}}const fl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},jm="__unctx__",uk=fl[jm]||(fl[jm]=lk()),ck=(e,t={})=>uk.get(e,t),Ym="__unctx_async_handlers__",id=fl[Ym]||(fl[Ym]=new Set);function ns(e){const t=[];for(const o of id){const r=o();r&&t.push(r)}const n=()=>{for(const o of t)o()};let i=e();return i&&typeof i=="object"&&"catch"in i&&(i=i.catch(o=>{throw n(),o})),[i,n]}const NG={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Ko={value:null,errorValue:null,deep:!0},dk=null,fk="#__nuxt",ow="nuxt-app",Km=36e5,hk="vite:preloadError";function rw(e=ow){return ck(e,{asyncContext:!1})}const mk="__nuxt_plugin";function gk(e){var o;let t=0;const n={_id:e.id||ow||"nuxt-app",_scope:Bi(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.14.1592"},get vue(){return n.vueApp.version}},payload:jo({...((o=e.ssrContext)==null?void 0:o.payload)||{},data:jo({}),state:at({}),once:new Set,_errors:jo({})}),static:{data:{}},runWithContext(r){return n._scope.active&&!br()?n._scope.run(()=>qm(n,r)):qm(n,r)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let r=!1;return()=>{if(!r&&(r=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:jo({}),_payloadRevivers:{},...e};{const r=window.__NUXT__;if(r)for(const s in r)switch(s){case"data":case"state":case"_errors":Object.assign(n.payload[s],r[s]);break;default:n.payload[s]=r[s]}}n.hooks=iw(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(r,s)=>{const a="$"+r;sa(n,a,s),sa(n.vueApp.config.globalProperties,a,s)},sa(n.vueApp,"$nuxt",n),sa(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(hk,s=>{n.callHook("app:chunkError",{error:s.payload}),(n.isHydrating||s.payload.message.includes("Unable to preload CSS"))&&s.preventDefault()}),window.useNuxtApp=window.useNuxtApp||lt;const r=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",r)}const i=n.payload.config;return n.provide("config",i),n}function pk(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function vk(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const i in n)e.provide(i,n[i])}}async function yk(e,t){const n=[],i=[],o=[],r=[];let s=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(d=>t.some(f=>f._name===d)&&!n.includes(d)))??[];if(u.length>0)i.push([new Set(u),l]);else{const d=vk(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(i.map(async([f,h])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(s++,await a(h)))})))});l.parallel?o.push(d.catch(f=>r.push(f))):await d}}for(const l of t)pk(e,l);for(const l of t)await a(l);if(await Promise.all(o),s)for(let l=0;l<s;l++)await Promise.all(o);if(r.length)throw r[0]}function Yt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[mk]:!0,_name:t})}const bk=Yt;function qm(e,t,n){const i=()=>t();return rw(e._id).set(e),e.vueApp.runWithContext(i)}function wk(e){var n;let t;return Rf()&&(t=(n=Bt())==null?void 0:n.appContext.app.$nuxt),t=t||rw(e).tryUse(),t||null}function lt(e){const t=wk(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function gs(e){return lt().$config}function sa(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const Xm=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function _k(e,t){t?t={...Xm,...t}:t=Xm;const n=sw(t);return n.dispatch(e),n.toString()}const Sk=Object.freeze(["prototype","__proto__","constructor"]);function sw(e){let t="",n=new Map;const i=o=>{t+=o};return{toString(){return t},getContext(){return n},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const r=Object.prototype.toString.call(o);let s="";const a=r.length;a<10?s="unknown:["+r+"]":s=r.slice(8,a-1),s=s.toLowerCase();let l=null;if((l=n.get(o))===void 0)n.set(o,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return i("buffer:"),i(o.toString("utf8"));if(s!=="object"&&s!=="function"&&s!=="asyncfunction")this[s]?this[s](o):e.ignoreUnknown||this.unkown(o,s);else{let u=Object.keys(o);e.unorderedObjects&&(u=u.sort());let c=[];e.respectType!==!1&&!Zm(o)&&(c=Sk),e.excludeKeys&&(u=u.filter(f=>!e.excludeKeys(f)),c=c.filter(f=>!e.excludeKeys(f))),i("object:"+(u.length+c.length)+":");const d=f=>{this.dispatch(f),i(":"),e.excludeValues||this.dispatch(o[f]),i(",")};for(const f of u)d(f);for(const f of c)d(f)}},array(o,r){if(r=r===void 0?e.unorderedArrays!==!1:r,i("array:"+o.length+":"),!r||o.length<=1){for(const l of o)this.dispatch(l);return}const s=new Map,a=o.map(l=>{const u=sw(e);u.dispatch(l);for(const[c,d]of u.getContext())s.set(c,d);return u.toString()});return n=s,a.sort(),this.array(a,!1)},date(o){return i("date:"+o.toJSON())},symbol(o){return i("symbol:"+o.toString())},unkown(o,r){if(i(r),!!o&&(i(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return i("error:"+o.toString())},boolean(o){return i("bool:"+o)},string(o){i("string:"+o.length+":"),i(o)},function(o){i("fn:"),Zm(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return i("number:"+o)},xml(o){return i("xml:"+o.toString())},null(){return i("Null")},undefined(){return i("Undefined")},regexp(o){return i("regex:"+o.toString())},uint8array(o){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return i("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return i("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return i("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return i("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return i("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return i("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return i("url:"+o.toString())},map(o){i("map:");const r=[...o];return this.array(r,e.unorderedSets!==!1)},set(o){i("set:");const r=[...o];return this.array(r,e.unorderedSets!==!1)},file(o){return i("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return i("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
|
20
|
+
Use "options.replacer" or "options.ignoreUnknown"
|
|
21
|
+
`)},domwindow(){return i("domwindow")},bigint(o){return i("bigint:"+o.toString())},process(){return i("process")},timer(){return i("timer")},pipe(){return i("pipe")},tcp(){return i("tcp")},udp(){return i("udp")},tty(){return i("tty")},statwatcher(){return i("statwatcher")},securecontext(){return i("securecontext")},connection(){return i("connection")},zlib(){return i("zlib")},context(){return i("context")},nodescript(){return i("nodescript")},httpparser(){return i("httpparser")},dataview(){return i("dataview")},signal(){return i("signal")},fsevent(){return i("fsevent")},tlswrap(){return i("tlswrap")}}}const aw="[native code] }",Ck=aw.length;function Zm(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-Ck)===aw}var xk=Object.defineProperty,Ek=(e,t,n)=>t in e?xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qo=(e,t,n)=>(Ek(e,typeof t!="symbol"?t+"":t,n),n);class Mi{constructor(t,n){qo(this,"words"),qo(this,"sigBytes"),t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||kk).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const i=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=i<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Mi([...this.words])}}const kk={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const i=e.words[n>>>2]>>>24-n%4*8&255;t.push((i>>>4).toString(16),(i&15).toString(16))}return t.join("")}},Ak={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let i=0;i<e.sigBytes;i+=3){const o=e.words[i>>>2]>>>24-i%4*8&255,r=e.words[i+1>>>2]>>>24-(i+1)%4*8&255,s=e.words[i+2>>>2]>>>24-(i+2)%4*8&255,a=o<<16|r<<8|s;for(let l=0;l<4&&i*8+l*6<e.sigBytes*8;l++)n.push(t.charAt(a>>>6*(3-l)&63))}return n.join("")}},Dk={parse(e){const t=e.length,n=[];for(let i=0;i<t;i++)n[i>>>2]|=(e.charCodeAt(i)&255)<<24-i%4*8;return new Mi(n,t)}},Pk={parse(e){return Dk.parse(unescape(encodeURIComponent(e)))}};class Ik{constructor(){qo(this,"_data",new Mi),qo(this,"_nDataBytes",0),qo(this,"_minBufferSize",0),qo(this,"blockSize",512/32)}reset(){this._data=new Mi,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=Pk.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,i=this._data.sigBytes/(this.blockSize*4);t?i=Math.ceil(i):i=Math.max((i|0)-this._minBufferSize,0);const o=i*this.blockSize,r=Math.min(o*4,this._data.sigBytes);if(o){for(let s=0;s<o;s+=this.blockSize)this._doProcessBlock(this._data.words,s);n=this._data.words.splice(0,o),this._data.sigBytes-=r}return new Mi(n,r)}}class Tk extends Ik{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}var Mk=Object.defineProperty,Nk=(e,t,n)=>t in e?Mk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ok=(e,t,n)=>(Nk(e,t+"",n),n);const Jm=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$k=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Xi=[];class Rk extends Tk{constructor(){super(...arguments),Ok(this,"_hash",new Mi([...Jm]))}reset(){super.reset(),this._hash=new Mi([...Jm])}_doProcessBlock(t,n){const i=this._hash.words;let o=i[0],r=i[1],s=i[2],a=i[3],l=i[4],u=i[5],c=i[6],d=i[7];for(let f=0;f<64;f++){if(f<16)Xi[f]=t[n+f]|0;else{const v=Xi[f-15],w=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3,M=Xi[f-2],I=(M<<15|M>>>17)^(M<<13|M>>>19)^M>>>10;Xi[f]=w+Xi[f-7]+I+Xi[f-16]}const h=l&u^~l&c,g=o&r^o&s^r&s,m=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),p=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),y=d+p+h+$k[f]+Xi[f],S=m+g;d=c,c=u,u=l,l=a+y|0,a=s,s=r,r=o,o=y+S|0}i[0]=i[0]+o|0,i[1]=i[1]+r|0,i[2]=i[2]+s|0,i[3]=i[3]+a|0,i[4]=i[4]+l|0,i[5]=i[5]+u|0,i[6]=i[6]+c|0,i[7]=i[7]+d|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,i=this._data.sigBytes*8;return this._data.words[i>>>5]|=128<<24-i%32,this._data.words[(i+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(i+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function Vk(e){return new Rk().finalize(e).toString(Ak)}function Lk(e,t={}){const n=typeof e=="string"?e:_k(e,t);return Vk(n).slice(0,10)}function zk(e,t){return{ctx:{table:e},matchAll:n=>uw(n,e)}}function lw(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([i,o])=>[i,lw(o)])):new Map(Object.entries(e[n]));return t}function Bk(e){return zk(lw(e))}function uw(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const i=[];for(const[r,s]of Qm(t.wildcard))(e===r||e.startsWith(r+"/"))&&i.push(s);for(const[r,s]of Qm(t.dynamic))if(e.startsWith(r+"/")){const a="/"+e.slice(r.length).split("/").splice(2).join("/");i.push(...uw(a,s))}const o=t.static.get(e);return o&&i.push(o),i.filter(Boolean)}function Qm(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Qu(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function od(e,t,n=".",i){if(!Qu(t))return od(e,{},n,i);const o=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const s=e[r];s!=null&&(i&&i(o,r,s,n)||(Array.isArray(s)&&Array.isArray(o[r])?o[r]=[...s,...o[r]]:Qu(s)&&Qu(o[r])?o[r]=od(s,o[r],(n?`${n}.`:"")+r.toString(),i):o[r]=s))}return o}function Hk(e){return(...t)=>t.reduce((n,i)=>od(n,i,"",e),{})}const Fk=Hk();function Gk(e,t){try{return t in e}catch{return!1}}var Wk=Object.defineProperty,Uk=(e,t,n)=>t in e?Wk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,to=(e,t,n)=>(Uk(e,typeof t!="symbol"?t+"":t,n),n);class rd extends Error{constructor(t,n={}){super(t,n),to(this,"statusCode",500),to(this,"fatal",!1),to(this,"unhandled",!1),to(this,"statusMessage"),to(this,"data"),to(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:sd(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=cw(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}to(rd,"__h3_error__",!0);function jk(e){if(typeof e=="string")return new rd(e);if(Yk(e))return e;const t=new rd(e.message??e.statusMessage??"",{cause:e.cause||e});if(Gk(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=sd(e.statusCode,t.statusCode):e.status&&(t.statusCode=sd(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;cw(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Yk(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const Kk=/[^\u0009\u0020-\u007E]/g;function cw(e=""){return e.replace(Kk,"")}function sd(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const dw=Symbol("route"),xo=()=>{var e;return(e=lt())==null?void 0:e.$router},fw=()=>Rf()?je(dw,lt()._route):lt()._route;const qk=()=>{try{if(lt()._processingMiddleware)return!0}catch{return!1}return!1},Xk=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Zk(e):xo().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=Object.entries(u).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d.toLowerCase()}=${f}`).join(", ");return open(n,l,c),Promise.resolve()}const i=Cr(n,{acceptRelative:!0}),o=(t==null?void 0:t.external)||i;if(o){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&IE(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const r=qk();if(!o&&r)return e;const s=xo(),a=lt();return o?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,r?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)};function Zk(e){return qb(e.path||"",e.query||{})+(e.hash||"")}const hw="__nuxt_error",Uf=()=>de(lt().payload,"error"),Jk=e=>{const t=lu(e);try{const n=lt(),i=Uf();n.hooks.callHook("app:error",t),i.value=i.value||t}catch{throw t}return t},Qk=async(e={})=>{const t=lt(),n=Uf();t.callHook("app:error:cleared",e),e.redirect&&await xo().replace(e.redirect),n.value=dk},eA=e=>!!e&&typeof e=="object"&&hw in e,lu=e=>{const t=jk(e);return Object.defineProperty(t,hw,{value:!0,configurable:!1,writable:!1}),t},tA=!1;/*!
|
|
22
|
+
* pinia v2.3.0
|
|
23
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
24
|
+
* @license MIT
|
|
25
|
+
*/let mw;const Fs=e=>mw=e,gw=Symbol();function ad(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var is;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(is||(is={}));function nA(){const e=Bi(!0),t=e.run(()=>ne({}));let n=[],i=[];const o=Mn({install(r){Fs(o),o._a=r,r.provide(gw,o),r.config.globalProperties.$pinia=o,i.forEach(s=>n.push(s)),i=[]},use(r){return!this._a&&!tA?i.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const pw=()=>{};function eg(e,t,n,i=pw){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),i())};return!n&&br()&&it(o),o}function zo(e,...t){e.slice().forEach(n=>{n(...t)})}const iA=e=>e(),tg=Symbol(),ec=Symbol();function ld(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,i)=>e.set(i,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],o=e[n];ad(o)&&ad(i)&&e.hasOwnProperty(n)&&!Ve(i)&&!oi(i)?e[n]=ld(o,i):e[n]=i}return e}const oA=Symbol();function rA(e){return!ad(e)||!e.hasOwnProperty(oA)}const{assign:vi}=Object;function sA(e){return!!(Ve(e)&&e.effect)}function aA(e,t,n,i){const{state:o,actions:r,getters:s}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=Vs(n.state.value[e]);return vi(c,r,Object.keys(s||{}).reduce((d,f)=>(d[f]=Mn(z(()=>{Fs(n);const h=n._s.get(e);return s[f].call(h,h)})),d),{}))}return l=vw(e,u,t,n,i,!0),l}function vw(e,t,n={},i,o,r){let s;const a=vi({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],h;const g=i.state.value[e];!r&&!g&&(i.state.value[e]={}),ne({});let m;function p(V){let N;u=c=!1,typeof V=="function"?(V(i.state.value[e]),N={type:is.patchFunction,storeId:e,events:h}):(ld(i.state.value[e],V),N={type:is.patchObject,payload:V,storeId:e,events:h});const $=m=Symbol();Ue().then(()=>{m===$&&(u=!0)}),c=!0,zo(d,N,i.state.value[e])}const y=r?function(){const{state:N}=n,$=N?N():{};this.$patch(H=>{vi(H,$)})}:pw;function S(){s.stop(),d=[],f=[],i._s.delete(e)}const v=(V,N="")=>{if(tg in V)return V[ec]=N,V;const $=function(){Fs(i);const H=Array.from(arguments),E=[],W=[];function b(F){E.push(F)}function P(F){W.push(F)}zo(f,{args:H,name:$[ec],store:M,after:b,onError:P});let C;try{C=V.apply(this&&this.$id===e?this:M,H)}catch(F){throw zo(W,F),F}return C instanceof Promise?C.then(F=>(zo(E,F),F)).catch(F=>(zo(W,F),Promise.reject(F))):(zo(E,C),C)};return $[tg]=!0,$[ec]=N,$},w={_p:i,$id:e,$onAction:eg.bind(null,f),$patch:p,$reset:y,$subscribe(V,N={}){const $=eg(d,V,N.detached,()=>H()),H=s.run(()=>ae(()=>i.state.value[e],E=>{(N.flush==="sync"?c:u)&&V({storeId:e,type:is.direct,events:h},E)},vi({},l,N)));return $},$dispose:S},M=at(w);i._s.set(e,M);const O=(i._a&&i._a.runWithContext||iA)(()=>i._e.run(()=>(s=Bi()).run(()=>t({action:v}))));for(const V in O){const N=O[V];if(Ve(N)&&!sA(N)||oi(N))r||(g&&rA(N)&&(Ve(N)?N.value=g[V]:ld(N,g[V])),i.state.value[e][V]=N);else if(typeof N=="function"){const $=v(N,V);O[V]=$,a.actions[V]=N}}return vi(M,O),vi(_e(M),O),Object.defineProperty(M,"$state",{get:()=>i.state.value[e],set:V=>{p(N=>{vi(N,V)})}}),i._p.forEach(V=>{vi(M,s.run(()=>V({store:M,app:i._a,pinia:i,options:a})))}),g&&r&&n.hydrate&&n.hydrate(M.$state,g),u=!0,c=!0,M}/*! #__NO_SIDE_EFFECTS__ */function yw(e,t,n){let i,o;const r=typeof t=="function";typeof e=="string"?(i=e,o=r?n:t):(o=e,i=e.id);function s(a,l){const u=Rf();return a=a||(u?je(gw,null):null),a&&Fs(a),a=mw,a._s.has(i)||(r?vw(i,t,o,a):aA(i,o,a)),a._s.get(i)}return s.$id=i,s}function ng(e){const t=uA(e),n=new ArrayBuffer(t.length),i=new DataView(n);for(let o=0;o<n.byteLength;o++)i.setUint8(o,t.charCodeAt(o));return n}const lA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function uA(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,i=0;for(let o=0;o<e.length;o++)n<<=6,n|=lA.indexOf(e[o]),i+=6,i===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=i=0);return i===12?(n>>=4,t+=String.fromCharCode(n)):i===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const cA=-1,dA=-2,fA=-3,hA=-4,mA=-5,gA=-6;function pA(e,t){return vA(JSON.parse(e),t)}function vA(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,i=Array(n.length);function o(r,s=!1){if(r===cA)return;if(r===fA)return NaN;if(r===hA)return 1/0;if(r===mA)return-1/0;if(r===gA)return-0;if(s)throw new Error("Invalid input");if(r in i)return i[r];const a=n[r];if(!a||typeof a!="object")i[r]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return i[r]=u(o(a[1]));switch(l){case"Date":i[r]=new Date(a[1]);break;case"Set":const c=new Set;i[r]=c;for(let h=1;h<a.length;h+=1)c.add(o(a[h]));break;case"Map":const d=new Map;i[r]=d;for(let h=1;h<a.length;h+=2)d.set(o(a[h]),o(a[h+1]));break;case"RegExp":i[r]=new RegExp(a[1],a[2]);break;case"Object":i[r]=Object(a[1]);break;case"BigInt":i[r]=BigInt(a[1]);break;case"null":const f=Object.create(null);i[r]=f;for(let h=1;h<a.length;h+=2)f[a[h]]=o(a[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[l],g=a[1],m=ng(g),p=new h(m);i[r]=p;break}case"ArrayBuffer":{const h=a[1],g=ng(h);i[r]=g;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);i[r]=l;for(let u=0;u<a.length;u+=1){const c=a[u];c!==dA&&(l[u]=o(c))}}else{const l={};i[r]=l;for(const u in a){const c=a[u];l[u]=o(c)}}return i[r]}return o(0)}const yA=new Set(["title","titleTemplate","script","style","noscript"]),$a=new Set(["base","meta","link","style","script","noscript"]),bA=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),wA=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),bw=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),_A=typeof window<"u";function hl(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function ud(e){if(e._h)return e._h;if(e._d)return hl(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return hl(t)}function SA(e,t){return e instanceof Promise?e.then(t):t(e)}function cd(e,t,n,i){const o=i||_w(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},e==="templateParams"||e==="titleTemplate");if(o instanceof Promise)return o.then(s=>cd(e,t,n,s));const r={tag:e,props:o};for(const s of bw){const a=r.props[s]!==void 0?r.props[s]:n[s];a!==void 0&&((!(s==="innerHTML"||s==="textContent"||s==="children")||yA.has(r.tag))&&(r[s==="children"?"innerHTML":s]=a),delete r.props[s])}return r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function CA(e,t){var i;const n=e==="class"?" ":";";return t&&typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,r])=>e==="style"?`${o}:${r}`:o)),(i=String(Array.isArray(t)?t.join(n):t))==null?void 0:i.split(n).filter(o=>!!o.trim()).join(n)}function ww(e,t,n,i){for(let o=i;o<n.length;o+=1){const r=n[o];if(r==="class"||r==="style"){e[r]=CA(r,e[r]);continue}if(e[r]instanceof Promise)return e[r].then(s=>(e[r]=s,ww(e,t,n,o)));if(!t&&!bw.has(r)){const s=String(e[r]),a=r.startsWith("data-");s==="true"||s===""?e[r]=a?"true":!0:e[r]||(a&&s==="false"?e[r]="false":delete e[r])}}}function _w(e,t=!1){const n=ww(e,t,Object.keys(e),0);return n instanceof Promise?n.then(()=>e):e}const xA=10;function Sw(e,t,n){for(let i=n;i<t.length;i+=1){const o=t[i];if(o instanceof Promise)return o.then(r=>(t[i]=r,Sw(e,t,i)));Array.isArray(o)?e.push(...o):e.push(o)}}function EA(e){const t=[],n=e.resolvedInput;for(const o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;const r=n[o];if(!(r===void 0||!bA.has(o))){if(Array.isArray(r)){for(const s of r)t.push(cd(o,s,e));continue}t.push(cd(o,r,e))}}if(t.length===0)return[];const i=[];return SA(Sw(i,t,0),()=>i.map((o,r)=>(o._e=e._i,e.mode&&(o._m=e.mode),o._p=(e._i<<xA)+r,o)))}const ig=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),og={base:-10,title:10},rg={critical:-80,high:-10,low:20};function ml(e){const t=e.tagPriority;if(typeof t=="number")return t;let n=100;return e.tag==="meta"?e.props["http-equiv"]==="content-security-policy"?n=-30:e.props.charset?n=-20:e.props.name==="viewport"&&(n=-15):e.tag==="link"&&e.props.rel==="preconnect"?n=20:e.tag in og&&(n=og[e.tag]),t&&t in rg?n+rg[t]:n}const kA=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],AA=["name","property","http-equiv"];function Cw(e){const{props:t,tag:n}=e;if(wA.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const i of AA)if(t[i]!==void 0)return`${n}:${i}:${t[i]}`;return!1}const Ci="%separator";function DA(e,t,n=!1){var o;let i;if(t==="s"||t==="pageTitle")i=e.pageTitle;else if(t.includes(".")){const r=t.indexOf(".");i=(o=e[t.substring(0,r)])==null?void 0:o[t.substring(r+1)]}else i=e[t];if(i!==void 0)return n?(i||"").replace(/"/g,'\\"'):i||""}const PA=new RegExp(`${Ci}(?:\\s*${Ci})*`,"g");function aa(e,t,n,i=!1){if(typeof e!="string"||!e.includes("%"))return e;let o=e;try{o=decodeURI(e)}catch{}const r=o.match(/%\w+(?:\.\w+)?/g);if(!r)return e;const s=e.includes(Ci);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===Ci||!r.includes(a))return a;const l=DA(t,a.slice(1),i);return l!==void 0?l:a}).trim(),s&&(e.endsWith(Ci)&&(e=e.slice(0,-Ci.length)),e.startsWith(Ci)&&(e=e.slice(Ci.length)),e=e.replace(PA,n).trim()),e}function sg(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function xw(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const i={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",i),!!i.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{var d;const r=(await e.resolveTags()).map(f=>({tag:f,id:$a.has(f.tag)?ud(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const f=new Set;for(const h of["body","head"]){const g=(d=n[h])==null?void 0:d.children;for(const m of g){const p=m.tagName.toLowerCase();if(!$a.has(p))continue;const y={tag:p,props:await _w(m.getAttributeNames().reduce((M,I)=>({...M,[I]:m.getAttribute(I)}),{})),innerHTML:m.innerHTML},S=Cw(y);let v=S,w=1;for(;v&&f.has(v);)v=`${S}:${w++}`;v&&(y._d=v,f.add(v)),s.elMap[m.getAttribute("data-hid")||ud(y)]=m}}}s.pendingSideEffects={...s.sideEffects},s.sideEffects={};function a(f,h,g){const m=`${f}:${h}`;s.sideEffects[m]=g,delete s.pendingSideEffects[m]}function l({id:f,$el:h,tag:g}){const m=g.tag.endsWith("Attrs");if(s.elMap[f]=h,m||(g.textContent&&g.textContent!==h.textContent&&(h.textContent=g.textContent),g.innerHTML&&g.innerHTML!==h.innerHTML&&(h.innerHTML=g.innerHTML),a(f,"el",()=>{var p;(p=s.elMap[f])==null||p.remove(),delete s.elMap[f]})),g._eventHandlers)for(const p in g._eventHandlers)Object.prototype.hasOwnProperty.call(g._eventHandlers,p)&&h.getAttribute(`data-${p}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:h).addEventListener(p.substring(2),g._eventHandlers[p].bind(h)),h.setAttribute(`data-${p}`,""));for(const p in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,p))continue;const y=g.props[p],S=`attr:${p}`;if(p==="class"){if(!y)continue;for(const v of y.split(" "))m&&a(f,`${S}:${v}`,()=>h.classList.remove(v)),!h.classList.contains(v)&&h.classList.add(v)}else if(p==="style"){if(!y)continue;for(const v of y.split(";")){const w=v.indexOf(":"),M=v.substring(0,w).trim(),I=v.substring(w+1).trim();a(f,`${S}:${M}`,()=>{h.style.removeProperty(M)}),h.style.setProperty(M,I)}}else h.getAttribute(p)!==y&&h.setAttribute(p,y===!0?"":String(y)),m&&a(f,S,()=>h.removeAttribute(p))}}const u=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of r){const{tag:h,shouldRender:g,id:m}=f;if(g){if(h.tag==="title"){n.title=h.textContent;continue}f.$el=f.$el||s.elMap[m],f.$el?l(f):$a.has(h.tag)&&u.push(f)}}for(const f of u){const h=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),l(f),c[h]=c[h]||n.createDocumentFragment(),c[h].appendChild(f.$el)}for(const f of r)await e.hooks.callHook("dom:renderTag",f,n,a);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose);for(const f in s.pendingSideEffects)s.pendingSideEffects[f]();e._dom=s,await e.hooks.callHook("dom:rendered",{renders:r}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function IA(e,t={}){const n=t.delayFn||(i=>setTimeout(i,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise(i=>n(()=>xw(e,t).then(()=>{delete e._domDebouncedUpdatePromise,i()})))}function TA(e){return t=>{var i,o;const n=((o=(i=t.resolvedOptions.document)==null?void 0:i.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":r=>{IA(r,e)}}}}}const MA=new Set(["templateParams","htmlAttrs","bodyAttrs"]),NA={hooks:{"tag:normalise":({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&(e.key=e.props.key,delete e.props.key);const t=Cw(e);t&&!t.startsWith("meta:og:")&&!t.startsWith("meta:twitter:")&&delete e.key;const n=t||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":e=>{const t=Object.create(null);for(const i of e.tags){const o=(i.key?`${i.tag}:${i.key}`:i._d)||ud(i),r=t[o];if(r){let a=i==null?void 0:i.tagDuplicateStrategy;if(!a&&MA.has(i.tag)&&(a="merge"),a==="merge"){const l=r.props;l.style&&i.props.style&&(l.style[l.style.length-1]!==";"&&(l.style+=";"),i.props.style=`${l.style} ${i.props.style}`),l.class&&i.props.class?i.props.class=`${l.class} ${i.props.class}`:l.class&&(i.props.class=l.class),t[o].props={...l,...i.props};continue}else if(i._e===r._e){r._duped=r._duped||[],i._d=`${r._d}:${r._duped.length+1}`,r._duped.push(i);continue}else if(ml(i)>ml(r))continue}if(!(i.innerHTML||i.textContent||Object.keys(i.props).length!==0)&&$a.has(i.tag)){delete t[o];continue}t[o]=i}const n=[];for(const i in t){const o=t[i],r=o._duped;n.push(o),r&&(delete o._duped,n.push(...r))}e.tags=n,e.tags=e.tags.filter(i=>!(i.tag==="meta"&&(i.props.name||i.props.property)&&!i.props.content))}}},OA=new Set(["script","link","bodyAttrs"]),$A=e=>({hooks:{"tags:resolve":t=>{for(const n of t.tags){if(!OA.has(n.tag))continue;const i=n.props;for(const o in i){if(o[0]!=="o"||o[1]!=="n"||!Object.prototype.hasOwnProperty.call(i,o))continue;const r=i[o];typeof r=="function"&&(e.ssr&&ig.has(o)?i[o]=`this.dataset.${o}fired = true`:delete i[o],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[o]=r)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||hl(n.props.src||n.props.href))}},"dom:renderTag":({$el:t,tag:n})=>{var o,r;const i=t==null?void 0:t.dataset;if(i)for(const s in i){if(!s.endsWith("fired"))continue;const a=s.slice(0,-5);ig.has(a)&&((r=(o=n._eventHandlers)==null?void 0:o[a])==null||r.call(t,new Event(a.substring(2))))}}}}),RA=new Set(["link","style","script","noscript"]),VA={hooks:{"tag:normalise":({tag:e})=>{e.key&&RA.has(e.tag)&&(e.props["data-hid"]=e._h=hl(e.key))}}},LA={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let n=!1;for(const i of e.tags)i._m!=="server"||i.tag!=="titleTemplate"&&i.tag!=="templateParams"&&i.tag!=="title"||(t[i.tag]=i.tag==="title"||i.tag==="titleTemplate"?i.textContent:i.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},zA={hooks:{"tags:resolve":e=>{var t;for(const n of e.tags)if(typeof n.tagPriority=="string")for(const{prefix:i,offset:o}of kA){if(!n.tagPriority.startsWith(i))continue;const r=n.tagPriority.substring(i.length),s=(t=e.tags.find(a=>a._d===r))==null?void 0:t._p;if(s!==void 0){n._p=s+o;break}}e.tags.sort((n,i)=>{const o=ml(n),r=ml(i);return o<r?-1:o>r?1:n._p-i._p})}}},BA={meta:"content",link:"href",htmlAttrs:"lang"},HA=["innerHTML","textContent"],FA=e=>({hooks:{"tags:resolve":t=>{var s;const{tags:n}=t;let i;for(let a=0;a<n.length;a+=1)n[a].tag==="templateParams"&&(i=t.tags.splice(a,1)[0].props,a-=1);const o=i||{},r=o.separator||"|";delete o.separator,o.pageTitle=aa(o.pageTitle||((s=n.find(a=>a.tag==="title"))==null?void 0:s.textContent)||"",o,r);for(const a of n){if(a.processTemplateParams===!1)continue;const l=BA[a.tag];if(l&&typeof a.props[l]=="string")a.props[l]=aa(a.props[l],o,r);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const u of HA)typeof a[u]=="string"&&(a[u]=aa(a[u],o,r,a.tag==="script"&&a.props.type.endsWith("json")))}e._templateParams=o,e._separator=r},"tags:afterResolve":({tags:t})=>{let n;for(let i=0;i<t.length;i+=1){const o=t[i];o.tag==="title"&&o.processTemplateParams!==!1&&(n=o)}n!=null&&n.textContent&&(n.textContent=aa(n.textContent,e._templateParams,e._separator))}}}),GA={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n,i;for(let o=0;o<t.length;o+=1){const r=t[o];r.tag==="title"?n=r:r.tag==="titleTemplate"&&(i=r)}if(i&&n){const o=sg(i.textContent,n.textContent);o!==null?n.textContent=o||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(i){const o=sg(i.textContent);o!==null&&(i.textContent=o,i.tag="title",i=void 0)}i&&e.tags.splice(e.tags.indexOf(i),1)}}},WA={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&(t.props.type==="application/ld+json"||t.props.type==="application/json")?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let Ew;function UA(e={}){const t=jA(e);return t.use(TA()),Ew=t}function ag(e,t){return!e||e==="server"&&t||e==="client"&&!t}function jA(e={}){const t=iw();t.addHooks(e.hooks||{}),e.document=e.document||(_A?document:void 0);const n=!e.document,i=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,r=[];const s=[],a={plugins:s,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return r},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!s.some(c=>c.key===u.key))&&(s.push(u),ag(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:o++,input:l,...u};return ag(c.mode,n)&&(r.push(c),i()),{dispose(){r=r.filter(d=>d._i!==c._i),i()},patch(d){for(const f of r)f._i===c._i&&(f.input=c.input=d);i()}}},async resolveTags(){const l={tags:[],entries:[...r]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const d of await EA(u)){const f={tag:d,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),l.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[NA,LA,$A,VA,zA,FA,GA,WA,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function YA(){return Ew}const KA=Ob[0]==="3";function qA(e){return typeof e=="function"?e():Q(e)}function dd(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=qA(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>dd(n));if(typeof t=="object"){const n={};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){if(i==="titleTemplate"||i[0]==="o"&&i[1]==="n"){n[i]=Q(t[i]);continue}n[i]=dd(t[i])}return n}return t}const XA={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=dd(t.input)}}},kw="usehead";function ZA(e){return{install(n){KA&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(kw,e))}}.install}function JA(e={}){e.domDelayFn=e.domDelayFn||(n=>Ue(()=>setTimeout(()=>n(),0)));const t=UA(e);return t.use(XA),t.install=ZA(t),t}const fd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hd="__unhead_injection_handler__";function QA(e){fd[hd]=e}function OG(){if(hd in fd)return fd[hd]();const e=je(kw);return e||YA()}let Ra,Va;function eD(){return Ra=$fetch(Wf(`builds/meta/${gs().app.buildId}.json`),{responseType:"json"}),Ra.then(e=>{Va=Bk(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Ra}function uu(){return Ra||eD()}async function jf(e){if(await uu(),!Va)return console.error("[nuxt] Error creating app manifest matcher.",Va),{};try{return Fk({},...Va.matchAll(e).reverse())}catch(t){return console.error("[nuxt] Error matching route rules.",t),{}}}async function lg(e,t={}){const n=await nD(e,t),i=lt(),o=i._payloadCache=i._payloadCache||{};return n in o?o[n]||null:(o[n]=Dw(e).then(r=>r?Aw(n).then(s=>s||(delete o[n],null)):(o[n]=null,null)),o[n])}const tD="_payload.json";async function nD(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Cr(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const i=gs(),o=t.hash||(t.fresh?Date.now():i.app.buildId),r=i.app.cdnURL,s=r&&await Dw(e)?r:i.app.baseURL;return au(s,n.pathname,tD+(o?`?${o}`:""))}async function Aw(e){const t=fetch(e).then(n=>n.text().then(Pw));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Dw(e=fw().path){if(e=Gf(e),(await uu()).prerendered.includes(e))return!0;const n=await jf(e);return!!n.prerender&&!n.redirect}let Zi=null;async function iD(){var i;if(Zi)return Zi;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Pw(e.textContent||""),n=e.dataset.src?await Aw(e.dataset.src):void 0;return Zi={...t,...n,...window.__NUXT__},(i=Zi.config)!=null&&i.public&&(Zi.config.public=at(Zi.config.public)),Zi}async function Pw(e){return await pA(e,lt()._payloadRevivers)}function Iw(e,t){lt()._payloadRevivers[e]=t}const oD=bk(()=>{Iw("skipHydrate",e=>{})}),rD=[["NuxtError",e=>lu(e)],["EmptyShallowRef",e=>Se(e==="_"?void 0:e==="0n"?BigInt(0):ll(e))],["EmptyRef",e=>ne(e==="_"?void 0:e==="0n"?BigInt(0):ll(e))],["ShallowRef",e=>Se(e)],["ShallowReactive",e=>jo(e)],["Ref",e=>ne(e)],["Reactive",e=>at(e)]],sD=Yt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[i,o]of rD)Iw(i,o);Object.assign(e.payload,([t,n]=ns(()=>e.runWithContext(iD)),t=await t,n(),t)),window.__NUXT__=e.payload}}),We=typeof window<"u",Yf=We&&"IntersectionObserver"in window,aD=We&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Tw(e,t,n){const i=t.length-1;if(i<0)return e===void 0?n:e;for(let o=0;o<i;o++){if(e==null)return n;e=e[t[o]]}return e==null||e[t[i]]===void 0?n:e[t[i]]}function xr(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(i=>xr(e[i],t[i]))}function md(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),Tw(e,t.split("."),n))}function Dn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const o=t(e,n);return typeof o>"u"?n:o}if(typeof t=="string")return md(e,t,n);if(Array.isArray(t))return Tw(e,t,n);if(typeof t!="function")return n;const i=t(e,n);return typeof i>"u"?n:i}function Mw(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,i)=>t+i)}function Te(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function lD(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ug(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Nw(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const cg=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function tc(e,t){return t.every(n=>e.hasOwnProperty(n))}function Ow(e,t){const n={},i=new Set(Object.keys(e));for(const o of t)i.has(o)&&(n[o]=e[o]);return n}function dg(e,t,n){const i=Object.create(null),o=Object.create(null);for(const r in e)t.some(s=>s instanceof RegExp?s.test(r):s===r)&&!(n!=null&&n.some(s=>s===r))?i[r]=e[r]:o[r]=e[r];return[i,o]}function Gi(e,t){const n={...e};return t.forEach(i=>delete n[i]),n}function uD(e,t){const n={};return t.forEach(i=>n[i]=e[i]),n}const $w=/^on[^a-z]/,Kf=e=>$w.test(e),cD=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],dD=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function fD(e){return e.isComposing&&dD.includes(e.key)}function qf(e){const[t,n]=dg(e,[$w]),i=Gi(t,cD),[o,r]=dg(n,["class","style","id",/^data-/]);return Object.assign(o,t),Object.assign(r,i),[o,r]}function Wt(e){return e==null?[]:Array.isArray(e)?e:[e]}function hD(e,t){let n=0;const i=function(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];clearTimeout(n),n=setTimeout(()=>e(...r),Q(t))};return i.clear=()=>{clearTimeout(n)},i.immediate=e,i}function si(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function fg(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function hg(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function mD(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let i=0;for(;i<e.length;)n.push(e.substr(i,t)),i+=t;return n}function It(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i={};for(const o in e)i[o]=e[o];for(const o in t){const r=e[o],s=t[o];if(ug(r)&&ug(s)){i[o]=It(r,s,n);continue}if(n&&Array.isArray(r)&&Array.isArray(s)){i[o]=n(r,s);continue}i[o]=s}return i}function Rw(e){return e.map(t=>t.type===be?Rw(t.children):t).flat()}function ho(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(ho.cache.has(e))return ho.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return ho.cache.set(e,t),t}ho.cache=new Map;function Wr(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Wr(e,n)).flat(1);if(t.suspense)return Wr(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Wr(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Wr(e,t.component.subTree).flat(1)}return[]}function Xf(e){const t=at({}),n=z(e);return dn(()=>{for(const i in n.value)t[i]=n.value[i]},{flush:"sync"}),Vs(t)}function gl(e,t){return e.includes(t)}function Vw(e){return e[2].toLowerCase()+e.slice(3)}const Ut=()=>[Function,Array];function mg(e,t){return t="on"+yr(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function gD(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(Array.isArray(e))for(const o of e)o(...n);else typeof e=="function"&&e(...n)}function pl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(i=>`${i}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function Lw(e,t,n){let i,o=e.indexOf(document.activeElement);const r=t==="next"?1:-1;do o+=r,i=e[o];while((!i||i.offsetParent==null||!((n==null?void 0:n(i))??!0))&&o<e.length&&o>=0);return i}function os(e,t){var i,o,r,s;const n=pl(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((i=n[0])==null||i.focus());else if(t==="first")(o=n[0])==null||o.focus();else if(t==="last")(r=n.at(-1))==null||r.focus();else if(typeof t=="number")(s=n[t])==null||s.focus();else{const a=Lw(n,t);a?a.focus():os(e,t==="next"?"first":"last")}}function pD(){}function vl(e,t){if(!(We&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function Zf(e){return e.some(t=>_o(t)?t.type===gt?!1:t.type!==be||Zf(t.children):!0)?e:null}function vD(e,t){if(!We||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function yD(e,t){const n=e.clientX,i=e.clientY,o=t.getBoundingClientRect(),r=o.left,s=o.top,a=o.right,l=o.bottom;return n>=r&&n<=a&&i>=s&&i<=l}function gd(){const e=Se(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Nw(e.value)}),t}function pd(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}const zw=["top","bottom"],bD=["start","end","left","right"];function vd(e,t){let[n,i]=e.split(" ");return i||(i=gl(zw,n)?"start":gl(bD,n)?"top":"center"),{side:gg(n,t),align:gg(i,t)}}function gg(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function nc(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function ic(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function pg(e){return{side:e.align,align:e.side}}function vg(e){return gl(zw,e.side)?"y":"x"}class mo{constructor(t){let{x:n,y:i,width:o,height:r}=t;this.x=n,this.y=i,this.width=o,this.height=r}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function yg(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function Bw(e){return Array.isArray(e)?new mo({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Jf(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),i=n.transform;if(i){let o,r,s,a,l;if(i.startsWith("matrix3d("))o=i.slice(9,-1).split(/, /),r=+o[0],s=+o[5],a=+o[12],l=+o[13];else if(i.startsWith("matrix("))o=i.slice(7,-1).split(/, /),r=+o[0],s=+o[3],a=+o[4],l=+o[5];else return new mo(t);const u=n.transformOrigin,c=t.x-a-(1-r)*parseFloat(u),d=t.y-l-(1-s)*parseFloat(u.slice(u.indexOf(" ")+1)),f=r?t.width/r:e.offsetWidth+1,h=s?t.height/s:e.offsetHeight+1;return new mo({x:c,y:d,width:f,height:h})}else return new mo(t)}function Xo(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let i;try{i=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof i.finished>"u"&&(i.finished=new Promise(o=>{i.onfinish=()=>{o(i)}})),i}const La=new WeakMap;function wD(e,t){Object.keys(t).forEach(n=>{if(Kf(n)){const i=Vw(n),o=La.get(e);if(t[n]==null)o==null||o.forEach(r=>{const[s,a]=r;s===i&&(e.removeEventListener(i,a),o.delete(r))});else if(!o||![...o].some(r=>r[0]===i&&r[1]===t[n])){e.addEventListener(i,t[n]);const r=o||new Set;r.add([i,t[n]]),La.has(e)||La.set(e,r)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function _D(e,t){Object.keys(t).forEach(n=>{if(Kf(n)){const i=Vw(n),o=La.get(e);o==null||o.forEach(r=>{const[s,a]=r;s===i&&(e.removeEventListener(i,a),o.delete(r))})}else e.removeAttribute(n)})}const Bo=2.4,bg=.2126729,wg=.7151522,_g=.072175,SD=.55,CD=.58,xD=.57,ED=.62,la=.03,Sg=1.45,kD=5e-4,AD=1.25,DD=1.25,Cg=.078,xg=12.82051282051282,ua=.06,Eg=.001;function kg(e,t){const n=(e.r/255)**Bo,i=(e.g/255)**Bo,o=(e.b/255)**Bo,r=(t.r/255)**Bo,s=(t.g/255)**Bo,a=(t.b/255)**Bo;let l=n*bg+i*wg+o*_g,u=r*bg+s*wg+a*_g;if(l<=la&&(l+=(la-l)**Sg),u<=la&&(u+=(la-u)**Sg),Math.abs(u-l)<kD)return 0;let c;if(u>l){const d=(u**SD-l**CD)*AD;c=d<Eg?0:d<Cg?d-d*xg*ua:d-ua}else{const d=(u**ED-l**xD)*DD;c=d>-Eg?0:d>-Cg?d-d*xg*ua:d+ua}return c*100}function PD(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const yl=.20689655172413793,ID=e=>e>yl**3?Math.cbrt(e):e/(3*yl**2)+4/29,TD=e=>e>yl?e**3:3*yl**2*(e-4/29);function Hw(e){const t=ID,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Fw(e){const t=TD,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const MD=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],ND=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,OD=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],$D=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Gw(e){const t=Array(3),n=ND,i=MD;for(let o=0;o<3;++o)t[o]=Math.round(si(n(i[o][0]*e[0]+i[o][1]*e[1]+i[o][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Qf(e){let{r:t,g:n,b:i}=e;const o=[0,0,0],r=$D,s=OD;t=r(t/255),n=r(n/255),i=r(i/255);for(let a=0;a<3;++a)o[a]=s[a][0]*t+s[a][1]*n+s[a][2]*i;return o}function yd(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function RD(e){return yd(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Ag=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,VD={rgb:(e,t,n,i)=>({r:e,g:t,b:n,a:i}),rgba:(e,t,n,i)=>({r:e,g:t,b:n,a:i}),hsl:(e,t,n,i)=>Dg({h:e,s:t,l:n,a:i}),hsla:(e,t,n,i)=>Dg({h:e,s:t,l:n,a:i}),hsv:(e,t,n,i)=>ps({h:e,s:t,v:n,a:i}),hsva:(e,t,n,i)=>ps({h:e,s:t,v:n,a:i})};function In(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Ag.test(e)){const{groups:t}=e.match(Ag),{fn:n,values:i}=t,o=i.split(/,\s*/).map(r=>r.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(r)/100:parseFloat(r));return VD[n](...o)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),zD(t)}else if(typeof e=="object"){if(tc(e,["r","g","b"]))return e;if(tc(e,["h","s","l"]))return ps(Ww(e));if(tc(e,["h","s","v"]))return ps(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
26
|
+
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function ps(e){const{h:t,s:n,v:i,a:o}=e,r=a=>{const l=(a+t/60)%6;return i-i*n*Math.max(Math.min(l,4-l,1),0)},s=[r(5),r(3),r(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:o}}function Dg(e){return ps(Ww(e))}function Ww(e){const{h:t,s:n,l:i,a:o}=e,r=i+n*Math.min(i,1-i),s=r===0?0:2-2*i/r;return{h:t,s,v:r,a:o}}function ca(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function LD(e){let{r:t,g:n,b:i,a:o}=e;return`#${[ca(t),ca(n),ca(i),o!==void 0?ca(Math.round(o*255)):""].join("")}`}function zD(e){e=BD(e);let[t,n,i,o]=mD(e,2).map(r=>parseInt(r,16));return o=o===void 0?o:o/255,{r:t,g:n,b:i,a:o}}function BD(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=fg(fg(e,6),8,"F")),e}function HD(e,t){const n=Hw(Qf(e));return n[0]=n[0]+t*10,Gw(Fw(n))}function FD(e,t){const n=Hw(Qf(e));return n[0]=n[0]-t*10,Gw(Fw(n))}function GD(e){const t=In(e);return Qf(t)[1]}function Uw(e){const t=Math.abs(kg(In(0),In(e)));return Math.abs(kg(In(16777215),In(e)))>Math.min(t,50)?"#fff":"#000"}function he(e,t){return n=>Object.keys(e).reduce((i,o)=>{const s=typeof e[o]=="object"&&e[o]!=null&&!Array.isArray(e[o])?e[o]:{type:e[o]};return n&&o in n?i[o]={...s,default:n[o]}:i[o]=s,t&&!i[o].source&&(i[o].source=t),i},{})}const ze=he({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function bt(e,t){const n=Bt();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Ln(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=bt(e).type;return ho((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let jw=0,za=new WeakMap;function bn(){const e=bt("getUid");if(za.has(e))return za.get(e);{const t=jw++;return za.set(e,t),t}}bn.reset=()=>{jw=0,za=new WeakMap};function WD(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const cr=Symbol.for("vuetify:defaults");function UD(e){return ne(e)}function eh(){const e=je(cr);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Er(e,t){const n=eh(),i=ne(e),o=z(()=>{if(Q(t==null?void 0:t.disabled))return n.value;const s=Q(t==null?void 0:t.scoped),a=Q(t==null?void 0:t.reset),l=Q(t==null?void 0:t.root);if(i.value==null&&!(s||a||l))return n.value;let u=It(i.value,{prev:n.value});if(s)return u;if(a||l){const c=Number(a||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=It(It(u,{prev:u}),u[l])),u}return u.prev?It(u.prev,u):u});return rt(cr,o),o}function jD(e,t){var n,i;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((i=e.props)==null?void 0:i[ho(t)])<"u"}function YD(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eh();const i=bt("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const o=z(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),r=new Proxy(e,{get(l,u){var d,f,h,g,m,p,y;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(d=o.value)==null?void 0:d[u],c].filter(S=>S!=null):typeof u=="string"&&!jD(i.vnode,u)?((f=o.value)==null?void 0:f[u])!==void 0?(h=o.value)==null?void 0:h[u]:((m=(g=n.value)==null?void 0:g.global)==null?void 0:m[u])!==void 0?(y=(p=n.value)==null?void 0:p.global)==null?void 0:y[u]:c:c}}),s=Se();dn(()=>{if(o.value){const l=Object.entries(o.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=WD(cr,i);rt(cr,z(()=>s.value?It((l==null?void 0:l.value)??{},s.value):l==null?void 0:l.value))}return{props:r,provideSubDefaults:a}}function kr(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=he(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(i){return Ow(i,t)},e.props._as=String,e.setup=function(i,o){const r=eh();if(!r.value)return e._setup(i,o);const{props:s,provideSubDefaults:a}=YD(i,i._as??e.name,r),l=e._setup(s,o);return a(),l}}return e}function ke(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?kr:Pe)(t)}function th(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ke()({name:n??yr(Lt(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ze()},setup(i,o){let{slots:r}=o;return()=>{var s;return Me(i.tag,{class:[e,i.class],style:i.style},(s=r.default)==null?void 0:s.call(r))}}})}function Yw(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const bl="cubic-bezier(0.4, 0, 0.2, 1)",KD="cubic-bezier(0.0, 0, 0.2, 1)",qD="cubic-bezier(0.4, 0, 1, 1)";function Kw(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?XD(e):nh(e))return e;e=e.parentElement}return document.scrollingElement}function wl(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(nh(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function nh(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function XD(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function ZD(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Ne(e){const t=bt("useRender");t.render=e}const Be=[String,Function,Object,Array],bd=Symbol.for("vuetify:icons"),cu=he({icon:{type:Be},tag:{type:String,required:!0}},"icon"),Pg=ke()({name:"VComponentIcon",props:cu(),setup(e,t){let{slots:n}=t;return()=>{const i=e.icon;return k(e.tag,null,{default:()=>{var o;return[e.icon?k(i,null,null):(o=n.default)==null?void 0:o.call(n)]}})}}}),qw=kr({name:"VSvgIcon",inheritAttrs:!1,props:cu(),setup(e,t){let{attrs:n}=t;return()=>k(e.tag,Ee(n,{style:null}),{default:()=>[k("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(i=>Array.isArray(i)?k("path",{d:i[0],"fill-opacity":i[1]},null):k("path",{d:i},null)):k("path",{d:e.icon},null)])]})}});kr({name:"VLigatureIcon",props:cu(),setup(e){return()=>k(e.tag,null,{default:()=>[e.icon]})}});const Xw=kr({name:"VClassIcon",props:cu(),setup(e){return()=>k(e.tag,{class:e.icon},null)}});function JD(){return{svg:{component:qw},class:{component:Xw}}}function QD(e){const t=JD(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=Jw),It({defaultSet:n,sets:t,aliases:{...Zw,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}const eP=e=>{const t=je(bd);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:z(()=>{var l;const i=Q(e);if(!i)return{component:Pg};let o=i;if(typeof o=="string"&&(o=o.trim(),o.startsWith("$")&&(o=(l=t.aliases)==null?void 0:l[o.slice(1)])),Array.isArray(o))return{component:qw,icon:o};if(typeof o!="string")return{component:Pg,icon:o};const r=Object.keys(t.sets).find(u=>typeof o=="string"&&o.startsWith(`${u}:`)),s=r?o.slice(r.length+1):o;return{component:t.sets[r??t.defaultSet].component,icon:s}})}},Zw={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},Jw={component:e=>Me(Xw,{...e,class:"mdi"})};function tP(){return{defaultSet:"mdi",aliases:Zw,sets:{mdi:Jw}}}function nP(e){{const t=tP();if((t==null?void 0:t.defaultSet)==="custom")return;e.icons=t}}const iP=Yt({name:"vuetify:icons:plugin",order:-25,parallel:!0,setup(e){e.hook("vuetify:configuration",({vuetifyOptions:t})=>{nP(t)})}}),oP=[],rP=Yt({name:"nuxt:head",enforce:"pre",setup(e){const t=JA({plugins:oP});QA(()=>lt().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const i=async()=>{n=!1,await xw(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||i()}),e.hooks.hook("app:error",i),e.hooks.hook("app:suspense:resolve",i)}}}),sP=async e=>{let t,n;const i=([t,n]=ns(()=>jf(e.path)),t=await t,n(),t);if(i.redirect)return Cr(i.redirect,{acceptRelative:!0})?(window.location.href=i.redirect,!1):i.redirect},aP=[sP];function oc(e){typeof e=="object"&&(e=Qb({pathname:e.path||"",search:Kb(e.query||{}),hash:e.hash||""}));const t=new URL(e.toString(),window.location.href);return{path:t.pathname,fullPath:e,query:Yb(t.search),hash:t.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:e}}const lP=Yt({name:"nuxt:router",enforce:"pre",setup(e){const t=NE(window.location.pathname,gs().app.baseURL)+window.location.search+window.location.hash,n=[],i={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},o=(d,f)=>(i[d].push(f),()=>i[d].splice(i[d].indexOf(f),1)),r=gs().app.baseURL,s=at(oc(t));async function a(d,f){try{const h=oc(d);for(const g of i["navigate:before"]){const m=await g(h,s);if(m===!1||m instanceof Error)return;if(typeof m=="string"&&m.length)return a(m,!0)}for(const g of i["resolve:before"])await g(h,s);Object.assign(s,h),window.history[f?"replaceState":"pushState"]({},"",au(r,h.fullPath)),e.isHydrating||await e.runWithContext(Qk);for(const g of i["navigate:after"])await g(h,s)}catch(h){for(const g of i.error)await g(h)}}const u={currentRoute:z(()=>s),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:d=>a(d,!1),replace:d=>a(d,!0),back:()=>window.history.go(-1),go:d=>window.history.go(d),forward:()=>window.history.go(1),beforeResolve:d=>o("resolve:before",d),beforeEach:d=>o("navigate:before",d),afterEach:d=>o("navigate:after",d),onError:d=>o("error",d),resolve:oc,addRoute:(d,f)=>{n.push(f)},getRoutes:()=>n,hasRoute:d=>n.some(f=>f.name===d),removeRoute:d=>{const f=n.findIndex(h=>h.name===d);f!==-1&&n.splice(f,1)}};e.vueApp.component("RouterLink",Pe({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(d,{slots:f})=>{const h=()=>a(d.to,d.replace);return()=>{var m;const g=u.resolve(d.to);return d.custom?(m=f.default)==null?void 0:m.call(f,{href:d.to,navigate:h,route:g}):Me("a",{href:d.to,onClick:p=>(p.preventDefault(),h())},f)}}})),window.addEventListener("popstate",d=>{const f=d.target.location;u.replace(f.href.replace(f.origin,""))}),e._route=s,e._middleware=e._middleware||{global:[],named:{}};const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(d,f)=>{d.meta=at(d.meta||{}),e.isHydrating&&c&&!$i(d.meta.layout)&&(d.meta.layout=c),e._processingMiddleware=!0;{const h=new Set([...aP,...e._middleware.global]);{const g=await e.runWithContext(()=>jf(d.path));if(g.appMiddleware)for(const m in g.appMiddleware){const p=e._middleware.named[m];if(!p)return;g.appMiddleware[m]?h.add(p):h.delete(p)}}for(const g of h){const m=await e.runWithContext(()=>g(d,f));if(m!==!0&&(m||m===!1))return m}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),$E(s.fullPath,t)||await e.runWithContext(()=>Xk(s.fullPath))}),{provide:{route:s,router:u}}}}),Ig=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),$G=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),ih=e=>{const t=lt();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Ig(()=>e())}):Ig(()=>e())},uP=Yt({name:"nuxt:payload",setup(e){xo().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const i=await lg(t.path);i&&Object.assign(e.static.data,i.data)}),ih(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:i}=new URL(n,window.location.href);i===window.location.hostname&&await lg(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(uu,1e3)})}}),cP=Yt(()=>{const e=xo();ih(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),dP=Yt(e=>{let t;async function n(){const i=await uu();t&&clearTimeout(t),t=setTimeout(n,Km);try{const o=await $fetch(Wf("builds/latest.json")+`?${Date.now()}`);o.id!==i.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}ih(()=>{t=setTimeout(n,Km)})});function fP(e={}){const t=e.path||window.location.pathname;let n={};try{n=ll(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:lt().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const hP=Yt({name:"nuxt:chunk-reload",setup(e){const t=xo(),n=gs(),i=new Set;t.beforeEach(()=>{i.clear()}),e.hook("app:chunkError",({error:r})=>{i.add(r)});function o(r){const a="href"in r&&r.href[0]==="#"?n.app.baseURL+r.href:au(n.app.baseURL,r.fullPath);fP({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((r,s)=>{i.has(r)&&o(s)})}}),mP=e=>e==="defer"||e===!1;function Tg(...e){var m;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,i,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof i!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const r=lt(),s=i,a=()=>Ko.value,l=()=>r.isHydrating?r.payload.data[n]:r.static.data[n];o.server=o.server??!0,o.default=o.default??a,o.getCachedData=o.getCachedData??l,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0,o.deep=o.deep??Ko.deep,o.dedupe=o.dedupe??"cancel";const u=o.getCachedData(n,r),c=u!=null;if(!r._asyncData[n]||!o.immediate){(m=r.payload._errors)[n]??(m[n]=Ko.errorValue);const p=o.deep?ne:Se;r._asyncData[n]={data:p(c?u:o.default()),pending:ne(!c),error:de(r.payload._errors,n),status:ne("idle"),_default:o.default}}const d={...r._asyncData[n]};delete d._default,d.refresh=d.execute=(p={})=>{if(r._asyncDataPromises[n]){if(mP(p.dedupe??o.dedupe))return r._asyncDataPromises[n];r._asyncDataPromises[n].cancelled=!0}if(p._initial||r.isHydrating&&p._initial!==!1){const S=p._initial?u:o.getCachedData(n,r);if(S!=null)return Promise.resolve(S)}d.pending.value=!0,d.status.value="pending";const y=new Promise((S,v)=>{try{S(s(r))}catch(w){v(w)}}).then(async S=>{if(y.cancelled)return r._asyncDataPromises[n];let v=S;o.transform&&(v=await o.transform(S)),o.pick&&(v=pP(v,o.pick)),r.payload.data[n]=v,d.data.value=v,d.error.value=Ko.errorValue,d.status.value="success"}).catch(S=>{if(y.cancelled)return r._asyncDataPromises[n];d.error.value=lu(S),d.data.value=Q(o.default()),d.status.value="error"}).finally(()=>{y.cancelled||(d.pending.value=!1,delete r._asyncDataPromises[n])});return r._asyncDataPromises[n]=y,r._asyncDataPromises[n]},d.clear=()=>gP(r,n);const f=()=>d.refresh({_initial:!0}),h=o.server!==!1&&r.payload.serverRendered;{const p=Bt();if(p&&!p._nuxtOnBeforeMountCbs){p._nuxtOnBeforeMountCbs=[];const v=p._nuxtOnBeforeMountCbs;Bs(()=>{v.forEach(w=>{w()}),v.splice(0,v.length)}),Hs(()=>v.splice(0,v.length))}h&&r.isHydrating&&(d.error.value||u!=null)?(d.pending.value=!1,d.status.value=d.error.value?"error":"success"):p&&(r.payload.serverRendered&&r.isHydrating||o.lazy)&&o.immediate?p._nuxtOnBeforeMountCbs.push(f):o.immediate&&f();const y=br();if(o.watch){const v=ae(o.watch,()=>d.refresh());y&&it(v)}const S=r.hook("app:data:refresh",async v=>{(!v||v.includes(n))&&await d.refresh()});y&&it(S)}const g=Promise.resolve(r._asyncDataPromises[n]).then(()=>d);return Object.assign(g,d),g}function gP(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=Ko.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=Ko.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function pP(e,t){const n={};for(const i of t)n[i]=e[i];return n}function vP(e){return{}}const yP=Yt({name:"pinia",setup(e){const t=nA();return e.vueApp.use(t),Fs(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),bP=Yt({name:"nuxt:global-components"}),wP=Yt(()=>({provide:at({ssrClientHints:{firstRequest:!1,prefersColorSchemeAvailable:!1,prefersReducedMotionAvailable:!1,viewportHeightAvailable:!1,viewportWidthAvailable:!1}})}));function Ar(e){const t={subscribe(n){let i=null,o=!1,r=!1,s=!1;function a(){if(i===null){s=!0;return}r||(r=!0,typeof i=="function"?i():i&&i.unsubscribe())}return i=e({next(l){var u;o||(u=n.next)==null||u.call(n,l)},error(l){var u;o||(o=!0,(u=n.error)==null||u.call(n,l),a())},complete(){var l;o||(o=!0,(l=n.complete)==null||l.call(n),a())}}),s&&a(),{unsubscribe:a}},pipe(...n){return n.reduce(_P,t)}};return t}function _P(e,t){return t(e)}function SP(e){const t=new AbortController;return new Promise((i,o)=>{let r=!1;function s(){r||(r=!0,a.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const a=e.subscribe({next(l){r=!0,i(l),s()},error(l){o(l)},complete(){t.abort(),s()}})})}function CP(e){return t=>{let n=0,i=null;const o=[];function r(){i||(i=t.subscribe({next(a){var l;for(const u of o)(l=u.next)==null||l.call(u,a)},error(a){var l;for(const u of o)(l=u.error)==null||l.call(u,a)},complete(){var a;for(const l of o)(a=l.complete)==null||a.call(l)}}))}function s(){if(n===0&&i){const a=i;i=null,a.unsubscribe()}}return Ar(a=>(n++,o.push(a),r(),{unsubscribe(){n--,s();const l=o.findIndex(u=>u===a);l>-1&&o.splice(l,1)}}))}}function xP(e){let t=e;const n=[],i=s=>{t!==void 0&&s.next(t),n.push(s)},o=s=>{n.splice(n.indexOf(s),1)},r=Ar(s=>(i(s),()=>{o(s)}));return r.next=s=>{if(t!==s){t=s;for(const a of n)a.next(s)}},r.get=()=>t,r}function Qw(e){return Ar(t=>{function n(o=0,r=e.op){const s=e.links[o];if(!s)throw new Error("No more links to execute - did you forget to add an ending link?");return s({op:r,next(l){return n(o+1,l)}})}return n().subscribe(t)})}const e0=()=>{},Mg=e=>{Object.freeze&&Object.freeze(e)};function t0(e,t,n){var i,o;const r=t.join(".");return(i=n)[o=r]??(i[o]=new Proxy(e0,{get(s,a){if(!(typeof a!="string"||a==="then"))return t0(e,[...t,a],n)},apply(s,a,l){const u=t[t.length-1];let c={args:l,path:t};return u==="call"?c={args:l.length>=2?[l[1]]:[],path:t.slice(0,-1)}:u==="apply"&&(c={args:l.length>=2?l[1]:[],path:t.slice(0,-1)}),Mg(c.args),Mg(c.path),e(c)}})),n[r]}const n0=e=>t0(e,[],Object.create(null)),i0=e=>new Proxy(e0,{get(t,n){if(!(typeof n!="string"||n==="then"))return e(n)}}),da={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603,UNAUTHORIZED:-32001,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNSUPPORTED_MEDIA_TYPE:-32015,UNPROCESSABLE_CONTENT:-32022,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};function vs(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const o0=e=>e();function fa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r0;const rc=new WeakMap,EP=()=>{};r0=Symbol.toStringTag;let kP=r0;class Kn{subscribe(){let t,n;const{settlement:i}=this;if(i===null){if(this.subscribers===null)throw new Error("Unpromise settled but still has subscribers");const o=DP();this.subscribers=PP(this.subscribers,o),t=o.promise,n=()=>{this.subscribers!==null&&(this.subscribers=TP(this.subscribers,o))}}else{const{status:o}=i;o==="fulfilled"?t=Promise.resolve(i.value):t=Promise.reject(i.reason),n=EP}return Object.assign(t,{unsubscribe:n})}then(t,n){const i=this.subscribe(),{unsubscribe:o}=i;return Object.assign(i.then(t,n),{unsubscribe:o})}catch(t){const n=this.subscribe(),{unsubscribe:i}=n;return Object.assign(n.catch(t),{unsubscribe:i})}finally(t){const n=this.subscribe(),{unsubscribe:i}=n;return Object.assign(n.finally(t),{unsubscribe:i})}static proxy(t){const n=Kn.getSubscribablePromise(t);return typeof n<"u"?n:Kn.createSubscribablePromise(t)}static createSubscribablePromise(t){const n=new Kn(t);return rc.set(t,n),rc.set(n,n),n}static getSubscribablePromise(t){return rc.get(t)}static resolve(t){const n=typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"?t:Promise.resolve(t);return Kn.proxy(n).subscribe()}static async any(t){const i=(Array.isArray(t)?t:[...t]).map(Kn.resolve);try{return await Promise.any(i)}finally{i.forEach(({unsubscribe:o})=>{o()})}}static async race(t){const i=(Array.isArray(t)?t:[...t]).map(Kn.resolve);try{return await Promise.race(i)}finally{i.forEach(({unsubscribe:o})=>{o()})}}static async raceReferences(t){const n=t.map(AP);try{return await Promise.race(n)}finally{for(const i of n)i.unsubscribe()}}constructor(t){fa(this,"promise",void 0),fa(this,"subscribers",[]),fa(this,"settlement",null),fa(this,kP,"Unpromise"),typeof t=="function"?this.promise=new Promise(t):this.promise=t;const n=this.promise.then(i=>{const{subscribers:o}=this;this.subscribers=null,this.settlement={status:"fulfilled",value:i},o==null||o.forEach(({resolve:r})=>{r(i)})});"catch"in n&&n.catch(i=>{const{subscribers:o}=this;this.subscribers=null,this.settlement={status:"rejected",reason:i},o==null||o.forEach(({reject:r})=>{r(i)})})}}function AP(e){return Kn.proxy(e).then(()=>[e])}function DP(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}function PP(e,t){return[...e,t]}function IP(e,t){return[...e.slice(0,t),...e.slice(t+1)]}function TP(e,t){const n=e.indexOf(t);return n!==-1?IP(e,n):e}var Ng,Og;(Ng=Symbol).dispose??(Ng.dispose=Symbol());(Og=Symbol).asyncDispose??(Og.asyncDispose=Symbol());function MP(e,t){const n=e;if(n[Symbol.dispose])throw new Error("Symbol.dispose already exists");return n[Symbol.dispose]=t,n}function NP(e,t){const n=e;if(n[Symbol.asyncDispose])throw new Error("Symbol.asyncDispose already exists");return n[Symbol.asyncDispose]=t,n}const s0=Symbol();function OP(e){let t=null;return MP({start(){if(t)throw new Error("Timer already started");return new Promise(i=>{t=setTimeout(()=>i(s0),e)})}},()=>{t&&clearTimeout(t)})}function a0(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(o=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");o&&(i=function(){try{o.call(this)}catch(r){return Promise.reject(r)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}function oh(e){var t=typeof SuppressedError=="function"?SuppressedError:function(n,i,o){var r=new Error(o);return r.name="SuppressedError",r.error=n,r.suppressed=i,r};return(oh=function(i){function o(l){i.error=i.hasError?new t(l,i.error,"An error was suppressed during disposal."):l,i.hasError=!0}var r,s=0;function a(){for(;r=i.stack.pop();)try{if(!r.async&&s===1)return s=0,i.stack.push(r),Promise.resolve().then(a);if(r.dispose){var l=r.dispose.call(r.value);if(r.async)return s|=2,Promise.resolve(l).then(a,function(u){return o(u),a()})}else s|=1}catch(u){o(u)}if(s===1)return i.hasError?Promise.reject(i.error):Promise.resolve();if(i.hasError)throw i.error}return a()})(e)}const $P="ping",RP="serialized-error",VP="connected";async function LP(e){const t={stack:[],error:void 0,hasError:!1};try{const n=a0(t,OP(e.timeoutMs),!1),i=await Kn.race([e.promise,n.start()]);return i===s0?await e.onTimeout():i}catch(n){t.error=n,t.hasError=!0}finally{oh(t)}}function zP(e){const{deserialize:t=a=>a}=e;let n={};const i=e.signal;let o=null;const r=()=>new ReadableStream({async start(a){const[l,u]=await Promise.all([e.url(),e.init()]),c=o=new e.EventSource(l,u);a.enqueue({type:"connecting",eventSource:o,event:null}),c.addEventListener(VP,f=>{const g=JSON.parse(f.data);n=g,a.enqueue({type:"connected",options:g,eventSource:c})}),c.addEventListener(RP,f=>{const h=f;a.enqueue({type:"serialized-error",error:t(JSON.parse(h.data)),eventSource:c})}),c.addEventListener($P,()=>{a.enqueue({type:"ping",eventSource:c})}),c.addEventListener("error",f=>{c.readyState===EventSource.CLOSED?a.error(f):a.enqueue({type:"connecting",eventSource:c,event:f})}),c.addEventListener("message",f=>{const h=f,m={data:t(JSON.parse(h.data))};h.lastEventId&&(m.id=h.lastEventId),a.enqueue({type:"data",data:m,eventSource:c})});const d=()=>{a.close(),c.close()};i.aborted?d():i.addEventListener("abort",d)},cancel(){o==null||o.close()}}),s=()=>{let a=r(),l=a.getReader();async function u(){await l.cancel(),o=null}return NP({read(){return l.read()},async recreate(){await u(),a=r(),l=a.getReader()}},u)};return o0(async function*(){const a={stack:[],error:void 0,hasError:!1};try{const l=a0(a,s(),!0);for(;;){let u=l.read();const c=n.reconnectAfterInactivityMs;c&&(u=LP({promise:u,timeoutMs:c,onTimeout:async()=>{const f={value:{type:"timeout",ms:c,eventSource:o},done:!1};return await l.recreate(),f}}));const d=await u;if(d.done)return d.value;yield d.value}}catch(l){a.error=l,a.hasError=!0}finally{const l=oh(a);l&&await l}})}function BP(e,t){if("error"in e){const i=t.deserialize(e.error);return{ok:!1,error:{...e,error:i}}}return{ok:!0,result:{...e.result,...(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)}}}}class sc extends Error{constructor(){super("Unable to transform response from server")}}function HP(e,t){let n;try{n=BP(e,t)}catch{throw new sc}if(!n.ok&&(!vs(n.error.error)||typeof n.error.error.code!="number"))throw new sc;if(n.ok&&!vs(n.result))throw new sc;return n}var oy,ry,sy,ay,ly,uy;typeof window>"u"||"Deno"in window||((ry=(oy=globalThis.process)==null?void 0:oy.env)==null?void 0:ry.NODE_ENV)==="test"||(ay=(sy=globalThis.process)==null?void 0:sy.env)!=null&&ay.JEST_WORKER_ID||(uy=(ly=globalThis.process)==null?void 0:ly.env)!=null&&uy.VITEST_WORKER_ID;function ha(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FP(e){return e instanceof ln||e instanceof Error&&e.name==="TRPCClientError"}function GP(e){return vs(e)&&vs(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function WP(e,t){return typeof e=="string"?e:vs(e)&&typeof e.message=="string"?e.message:t}class ln extends Error{static from(t,n={}){const i=t;return FP(i)?(n.meta&&(i.meta={...i.meta,...n.meta}),i):GP(i)?new ln(i.error.message,{...n,result:i}):new ln(WP(i,"Unknown error"),{...n,cause:i})}constructor(t,n){var o,r;const i=n==null?void 0:n.cause;super(t,{cause:i}),ha(this,"cause",void 0),ha(this,"shape",void 0),ha(this,"data",void 0),ha(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=i,this.shape=(o=n==null?void 0:n.result)==null?void 0:o.error,this.data=(r=n==null?void 0:n.result)==null?void 0:r.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,ln.prototype)}}function ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class UP{$request(t){return Qw({links:this.links,op:{...t,context:t.context??{},id:++this.requestId}}).pipe(CP())}async requestAsPromise(t){try{const n=this.$request(t);return(await SP(n)).result.data}catch(n){throw ln.from(n)}}query(t,n,i){return this.requestAsPromise({type:"query",path:t,input:n,context:i==null?void 0:i.context,signal:i==null?void 0:i.signal})}mutation(t,n,i){return this.requestAsPromise({type:"mutation",path:t,input:n,context:i==null?void 0:i.context,signal:i==null?void 0:i.signal})}subscription(t,n,i){return this.$request({type:"subscription",path:t,input:n,context:i.context,signal:i.signal}).subscribe({next(r){var s,a,l,u;switch(r.result.type){case"state":{(s=i.onConnectionStateChange)==null||s.call(i,r.result);break}case"started":{(a=i.onStarted)==null||a.call(i,{context:r.context});break}case"stopped":{(l=i.onStopped)==null||l.call(i);break}case"data":case void 0:{(u=i.onData)==null||u.call(i,r.result.data);break}}},error(r){var s;(s=i.onError)==null||s.call(i,r)},complete(){var r;(r=i.onComplete)==null||r.call(i)}})}constructor(t){ac(this,"links",void 0),ac(this,"runtime",void 0),ac(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=t.links.map(n=>n(this.runtime))}}function jP(e){return new UP(e)}const YP={query:"query",mutate:"mutation",subscribe:"subscription"},KP=e=>YP[e];function qP(e){const t=n0(({path:n,args:i})=>{const o=[...n],r=KP(o.pop()),s=o.join(".");return e[r](s,...i)});return i0(n=>e.hasOwnProperty(n)?e[n]:n==="__untypedClient"?e:t[n])}const $g=e=>typeof e=="function";function XP(e){if(e)return e;if(typeof window<"u"&&$g(window.fetch))return window.fetch;if(typeof globalThis<"u"&&$g(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}const Rg=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Vg(e){let t=null,n=null;const i=()=>{clearTimeout(n),n=null,t=null};function o(a){var c,d;const l=[[]];let u=0;for(;;){const f=a[u];if(!f)break;const h=l[l.length-1];if(f.aborted){(c=f.reject)==null||c.call(f,new Error("Aborted")),u++;continue}if(e.validate(h.concat(f).map(m=>m.key))){h.push(f),u++;continue}if(h.length===0){(d=f.reject)==null||d.call(f,new Error("Input is too big for a single dispatch")),u++;continue}l.push([])}return l}function r(){const a=o(t);i();for(const l of a){if(!l.length)continue;const u={items:l};for(const d of l)d.batch=u;e.fetch(u.items.map(d=>d.key)).then(async d=>{var f;await Promise.all(d.map(async(h,g)=>{var p,y;const m=u.items[g];try{const S=await Promise.resolve(h);(p=m.resolve)==null||p.call(m,S)}catch(S){(y=m.reject)==null||y.call(m,S)}m.batch=null,m.reject=null,m.resolve=null}));for(const h of u.items)(f=h.reject)==null||f.call(h,new Error("Missing result")),h.batch=null}).catch(d=>{var f;for(const h of u.items)(f=h.reject)==null||f.call(h,d),h.batch=null})}}function s(a){const l={aborted:!1,key:a,batch:null,resolve:Rg,reject:Rg},u=new Promise((c,d)=>{l.reject=d,l.resolve=c,t||(t=[]),t.push(l)});return n||(n=setTimeout(r)),u}return{load:s}}function ZP(...e){const t=new AbortController,n=e.length;let i=0;const o=()=>{++i===n&&t.abort()};for(const r of e)r!=null&&r.aborted?o():r==null||r.addEventListener("abort",o,{once:!0});return t.signal}function JP(...e){const t=new AbortController;for(const n of e)n!=null&&n.aborted?t.abort():n==null||n.addEventListener("abort",()=>t.abort(),{once:!0});return t.signal}function l0(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}function QP(e){return{url:e.url.toString(),fetch:e.fetch,transformer:l0(e.transformer),methodOverride:e.methodOverride}}function eI(e){const t={};for(let n=0;n<e.length;n++){const i=e[n];t[n]=i}return t}const tI={query:"GET",mutation:"POST",subscription:"PATCH"};function u0(e){return"input"in e?e.transformer.input.serialize(e.input):eI(e.inputs.map(t=>e.transformer.input.serialize(t)))}const rh=e=>{const t=e.url.split("?");let i=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const r=u0(e);r!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(r))}`)}return o.length&&(i+="?"+o.join("&")),i},nI=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=u0(e);return t!==void 0?JSON.stringify(t):void 0},iI=e=>aI({...e,contentTypeHeader:"application/json",getUrl:rh,getBody:nI});class oI extends Error{constructor(){const t="AbortError";super(t),this.name=t,this.message=t}}const rI=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)==null||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new oI};async function sI(e){rI(e.signal);const t=e.getUrl(e),n=e.getBody(e),{type:i}=e,o=await(async()=>{const s=await e.headers();return Symbol.iterator in s?Object.fromEntries(s):s})(),r={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0,...o};return XP(e.fetch)(t,{method:e.methodOverride??tI[i],signal:e.signal,body:n,headers:r})}async function aI(e){const t={},n=await sI(e);t.response=n;const i=await n.json();return t.responseJSON=i,{json:i,meta:t}}function lI(e){const t=QP(e),n=e.maxURLLength??1/0;return()=>{const i=a=>({validate(l){if(n===1/0)return!0;const u=l.map(f=>f.path).join(","),c=l.map(f=>f.input);return rh({...t,type:a,path:u,inputs:c,signal:null}).length<=n},async fetch(l){const u=l.map(m=>m.path).join(","),c=l.map(m=>m.input),d=ZP(...l.map(m=>m.signal)),f=await iI({...t,path:u,inputs:c,type:a,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:l}):e.headers:{}},signal:d});return(Array.isArray(f.json)?f.json:l.map(()=>f.json)).map(m=>({meta:f.meta,json:m}))}}),o=Vg(i("query")),r=Vg(i("mutation")),s={query:o,mutation:r};return({op:a})=>Ar(l=>{/* istanbul ignore if -- @preserve */if(a.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const c=s[a.type].load(a);let d;return c.then(f=>{d=f;const h=HP(f.json,t.transformer.output);if(!h.ok){l.error(ln.from(h.error,{meta:f.meta}));return}l.next({context:f.meta,result:h.result}),l.complete()}).catch(f=>{l.error(ln.from(f,{meta:d==null?void 0:d.meta}))}),()=>{}})}}function Lg(e){return Array.isArray(e)?e:[e]}function uI(e){return t=>{const n=Lg(e.true).map(o=>o(t)),i=Lg(e.false).map(o=>o(t));return o=>Ar(r=>{const s=e.condition(o.op)?n:i;return Qw({op:o.op,links:s}).subscribe(r)})}}const wd=(e,...t)=>typeof e=="function"?e(...t):e;function cI(e,t){return!t||e!=null&&typeof e!="object"?e:{...e??{},lastEventId:t}}async function dI(e){let t=await wd(e.url);if(e.connectionParams){const n=await wd(e.connectionParams),i=t.includes("?")?"&":"?";t+=i+"connectionParams="+encodeURIComponent(JSON.stringify(n))}return t}const fI=[da.BAD_GATEWAY,da.SERVICE_UNAVAILABLE,da.GATEWAY_TIMEOUT,da.INTERNAL_SERVER_ERROR];function hI(e){const t=l0(e.transformer);return()=>({op:n})=>Ar(i=>{const{type:o,path:r,input:s}=n;/* istanbul ignore if -- @preserve */if(o!=="subscription")throw new Error("httpSubscriptionLink only supports subscriptions");let a;const l=new AbortController,u=JP(n.signal,l.signal),c=zP({url:async()=>rh({transformer:t,url:await dI(e),input:cI(s,a),path:r,type:o,signal:null}),init:()=>wd(e.eventSourceOptions,{op:n}),signal:u,deserialize:t.output.deserialize,EventSource:e.EventSource??globalThis.EventSource}),d=xP({type:"state",state:"connecting",error:null}),f=d.subscribe({next(h){i.next({result:h})}});return o0(async()=>{for await(const h of c)switch(h.type){case"ping":break;case"data":const g=h.data;let m;g.id?(a=g.id,m={id:g.id,data:g}):m={data:g.data},i.next({result:m,context:{eventSource:h.eventSource}});break;case"connected":{i.next({result:{type:"started"},context:{eventSource:h.eventSource}}),d.next({type:"state",state:"pending",error:null});break}case"serialized-error":{const p=ln.from({error:h.error});if(fI.includes(h.error.code)){d.next({type:"state",state:"connecting",error:p});break}throw p}case"connecting":{const p=d.get(),y=h.event&&ln.from(h.event);if(!y&&p.state==="connecting")break;d.next({type:"state",state:"connecting",error:y});break}case"timeout":d.next({type:"state",state:"connecting",error:new ln(`Timeout of ${h.ms}ms reached while waiting for a response`)})}i.next({result:{type:"stopped"}}),i.complete()}).catch(h=>{i.error(ln.from(h))}),()=>{i.complete(),l.abort(),f.unsubscribe()}})}function mI(e,t){return t===void 0?e:`${e}-${Lk(t||"")}`}function gI(e){return Ve(e)||typeof e=="function"}function zg(e){let t;return e!=null&&e.abortOnUnmount&&(Bt()&&it(()=>{var n;(n=t==null?void 0:t.abort)==null||n.call(t)}),t=typeof AbortController<"u"?new AbortController:{}),t}function pI(e,t){return n0(n=>{const i=n.args,o=[e,...n.path],r=o.pop(),s=o.join("."),[a,l]=i;if(r==="_def")return{path:o};if(r==="useQuery"){const{trpc:u,queryKey:c,...d}=l||{},f=zg(u),h=c||mI(s,Le(a)),g=gI(a)?[...d.watch||[],a]:d.watch;return Tg(h,()=>t[s].query(Le(a),{signal:f==null?void 0:f.signal,...u}),{...d,watch:g})}if(r==="useMutation"){const{trpc:u,...c}=l||{},d=ne(null),f=zg(u),h=Tg(()=>t[s].mutate(d.value,{signal:f==null?void 0:f.signal,...u}),{...c,immediate:!1},"$oBI3baRD5o");async function g(m){return d.value=m,await h.execute(),_e(h.data.value)}return Object.assign(h,{mutate:g}),h}return t[s][r](...i)})}function vI(e){const t=jP(e),n=qP(t);return i0(o=>pI(o,n))}function yI(e){return e instanceof Error&&e.name==="FetchError"}async function bI(e,t){return globalThis.$fetch.raw(e.toString(),t).catch(n=>{if(yI(n)&&n.response)return n.response;throw n}).then(n=>({...n,headers:n.headers,json:()=>Promise.resolve(n._data)}))}function wI(e){const t=vP(e==null?void 0:e.pickHeaders);return lI({url:"/api/trpc",headers(){return t},fetch:bI,...e})}const _I=Yt(()=>({provide:{client:vI({links:[uI({condition:t=>t.type==="subscription",true:hI({url:"/api"}),false:wI({url:"/api"})})]})}})),Bg=!1;function SI(){return{theme:{defaultTheme:"dark"}}}function Eo(e,t){let n;function i(){n=Bi(),n.run(()=>t.length?t(()=>{n==null||n.stop(),i()}):t())}ae(e,o=>{o&&!n?i():o||(n==null||n.stop(),n=void 0)},{immediate:!0}),it(()=>{n==null||n.stop()})}function st(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const r=bt("useProxiedModel"),s=ne(e[t]!==void 0?e[t]:n),a=ho(t),u=z(a!==t?()=>{var d,f,h,g;return e[t],!!(((d=r.vnode.props)!=null&&d.hasOwnProperty(t)||(f=r.vnode.props)!=null&&f.hasOwnProperty(a))&&((h=r.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)||(g=r.vnode.props)!=null&&g.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var d,f;return e[t],!!((d=r.vnode.props)!=null&&d.hasOwnProperty(t)&&((f=r.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${t}`)))});Eo(()=>!u.value,()=>{ae(()=>e[t],d=>{s.value=d})});const c=z({get(){const d=e[t];return i(u.value?d:s.value)},set(d){const f=o(d),h=_e(u.value?e[t]:s.value);h===f||i(h)===d||(s.value=f,r==null||r.emit(`update:${t}`,f))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:s.value}),c}const CI={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Hg="$vuetify.",Fg=(e,t)=>e.replace(/\{(\d+)\}/g,(n,i)=>String(t[+i])),c0=(e,t,n)=>function(i){for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];if(!i.startsWith(Hg))return Fg(i,r);const a=i.replace(Hg,""),l=e.value&&n.value[e.value],u=t.value&&n.value[t.value];let c=md(l,a,null);return c||(`${i}${e.value}`,c=md(u,a,null)),c||(c=i),typeof c!="string"&&(c=i),Fg(c,r)};function d0(e,t){return(n,i)=>new Intl.NumberFormat([e.value,t.value],i).format(n)}function lc(e,t,n){const i=st(e,t,e[t]??n.value);return i.value=e[t]??n.value,ae(n,o=>{e[t]==null&&(i.value=n.value)}),i}function f0(e){return t=>{const n=lc(t,"locale",e.current),i=lc(t,"fallback",e.fallback),o=lc(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:i,messages:o,t:c0(n,i,o),n:d0(n,i),provide:f0({current:n,fallback:i,messages:o})}}}function xI(e){const t=Se((e==null?void 0:e.locale)??"en"),n=Se((e==null?void 0:e.fallback)??"en"),i=ne({en:CI,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:i,t:c0(t,n,i),n:d0(t,n),provide:f0({current:t,fallback:n,messages:i})}}const _l=Symbol.for("vuetify:locale");function EI(e){return e.name!=null}function kI(e){const t=e!=null&&e.adapter&&EI(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:xI(e),n=DI(t,e);return{...t,...n}}function du(){const e=je(_l);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function AI(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function DI(e,t){const n=ne((t==null?void 0:t.rtl)??AI()),i=z(()=>n.value[e.current.value]??!1);return{isRtl:i,rtl:n,rtlClasses:z(()=>`v-locale--is-${i.value?"rtl":"ltr"}`)}}function Wi(){const e=je(_l);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const fu={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function PI(e,t,n){const i=[];let o=[];const r=h0(e),s=m0(e),a=n??fu[t.slice(-2).toUpperCase()]??0,l=(r.getDay()-a+7)%7,u=(s.getDay()-a+7)%7;for(let c=0;c<l;c++){const d=new Date(r);d.setDate(d.getDate()-(l-c)),o.push(d)}for(let c=1;c<=s.getDate();c++){const d=new Date(e.getFullYear(),e.getMonth(),c);o.push(d),o.length===7&&(i.push(o),o=[])}for(let c=1;c<7-u;c++){const d=new Date(s);d.setDate(d.getDate()+c),o.push(d)}return o.length>0&&i.push(o),i}function II(e,t,n){const i=n??fu[t.slice(-2).toUpperCase()]??0,o=new Date(e);for(;o.getDay()!==i;)o.setDate(o.getDate()-1);return o}function TI(e,t){const n=new Date(e),i=((fu[t.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==i;)n.setDate(n.getDate()+1);return n}function h0(e){return new Date(e.getFullYear(),e.getMonth(),1)}function m0(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function MI(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const NI=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function g0(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(NI.test(e))return MI(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const Gg=new Date(2e3,0,2);function OI(e,t){const n=t??fu[e.slice(-2).toUpperCase()]??0;return Mw(7).map(i=>{const o=new Date(Gg);return o.setDate(Gg.getDate()+n+i),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(o)})}function $I(e,t,n,i){const o=g0(e)??new Date,r=i==null?void 0:i[t];if(typeof r=="function")return r(o,t,n);let s={};switch(t){case"fullDate":s={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":s={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=o.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(o);return`${a} ${l}`;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":s={month:"short",day:"numeric"};break;case"year":s={year:"numeric"};break;case"month":s={month:"long"};break;case"monthShort":s={month:"short"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"weekday":s={weekday:"long"};break;case"weekdayShort":s={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(o.getDate());case"hours12h":s={hour:"numeric",hour12:!0};break;case"hours24h":s={hour:"numeric",hour12:!1};break;case"minutes":s={minute:"numeric"};break;case"seconds":s={second:"numeric"};break;case"fullTime":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":s={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:s=r??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,s).format(o)}function RI(e,t){const n=e.toJsDate(t),i=n.getFullYear(),o=hg(String(n.getMonth()+1),2,"0"),r=hg(String(n.getDate()),2,"0");return`${i}-${o}-${r}`}function VI(e){const[t,n,i]=e.split("-").map(Number);return new Date(t,n-1,i)}function LI(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function zI(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function BI(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function HI(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function FI(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function GI(e){return e.getFullYear()}function WI(e){return e.getMonth()}function UI(e){return e.getDate()}function jI(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function YI(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function KI(e){return e.getHours()}function qI(e){return e.getMinutes()}function XI(e){return new Date(e.getFullYear(),0,1)}function ZI(e){return new Date(e.getFullYear(),11,31)}function JI(e,t){return Sl(e,t[0])&&tT(e,t[1])}function QI(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Sl(e,t){return e.getTime()>t.getTime()}function eT(e,t){return Sl(_d(e),_d(t))}function tT(e,t){return e.getTime()<t.getTime()}function Wg(e,t){return e.getTime()===t.getTime()}function nT(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function iT(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function oT(e,t){return e.getFullYear()===t.getFullYear()}function rT(e,t,n){const i=new Date(e),o=new Date(t);switch(n){case"years":return i.getFullYear()-o.getFullYear();case"quarters":return Math.floor((i.getMonth()-o.getMonth()+(i.getFullYear()-o.getFullYear())*12)/4);case"months":return i.getMonth()-o.getMonth()+(i.getFullYear()-o.getFullYear())*12;case"weeks":return Math.floor((i.getTime()-o.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((i.getTime()-o.getTime())/(1e3*60*60*24));case"hours":return Math.floor((i.getTime()-o.getTime())/(1e3*60*60));case"minutes":return Math.floor((i.getTime()-o.getTime())/(1e3*60));case"seconds":return Math.floor((i.getTime()-o.getTime())/1e3);default:return i.getTime()-o.getTime()}}function sT(e,t){const n=new Date(e);return n.setHours(t),n}function aT(e,t){const n=new Date(e);return n.setMinutes(t),n}function lT(e,t){const n=new Date(e);return n.setMonth(t),n}function uT(e,t){const n=new Date(e);return n.setDate(t),n}function cT(e,t){const n=new Date(e);return n.setFullYear(t),n}function _d(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function dT(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class fT{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return g0(t)}toJsDate(t){return t}toISO(t){return RI(this,t)}parseISO(t){return VI(t)}addMinutes(t,n){return LI(t,n)}addHours(t,n){return zI(t,n)}addDays(t,n){return BI(t,n)}addWeeks(t,n){return HI(t,n)}addMonths(t,n){return FI(t,n)}getWeekArray(t,n){return PI(t,this.locale,n?Number(n):void 0)}startOfWeek(t,n){return II(t,this.locale,n?Number(n):void 0)}endOfWeek(t){return TI(t,this.locale)}startOfMonth(t){return h0(t)}endOfMonth(t){return m0(t)}format(t,n){return $I(t,n,this.locale,this.formats)}isEqual(t,n){return Wg(t,n)}isValid(t){return QI(t)}isWithinRange(t,n){return JI(t,n)}isAfter(t,n){return Sl(t,n)}isAfterDay(t,n){return eT(t,n)}isBefore(t,n){return!Sl(t,n)&&!Wg(t,n)}isSameDay(t,n){return nT(t,n)}isSameMonth(t,n){return iT(t,n)}isSameYear(t,n){return oT(t,n)}setMinutes(t,n){return aT(t,n)}setHours(t,n){return sT(t,n)}setMonth(t,n){return lT(t,n)}setDate(t,n){return uT(t,n)}setYear(t,n){return cT(t,n)}getDiff(t,n,i){return rT(t,n,i)}getWeekdays(t){return OI(this.locale,t?Number(t):void 0)}getYear(t){return GI(t)}getMonth(t){return WI(t)}getDate(t){return UI(t)}getNextMonth(t){return jI(t)}getPreviousMonth(t){return YI(t)}getHours(t){return KI(t)}getMinutes(t){return qI(t)}startOfDay(t){return _d(t)}endOfDay(t){return dT(t)}startOfYear(t){return XI(t)}endOfYear(t){return ZI(t)}}const hT=Symbol.for("vuetify:date-options"),Ug=Symbol.for("vuetify:date-adapter");function mT(e,t){const n=It({adapter:fT,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:gT(n,t)}}function gT(e,t){const n=at(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return ae(t.current,i=>{n.locale=e.locale[i]??i??n.locale}),n}const Sd=Symbol.for("vuetify:display"),jg={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},pT=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jg;return It(jg,e)};function Yg(e){return We&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Kg(e){return We&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function qg(e){const t=We&&!e?window.navigator.userAgent:"ssr";function n(g){return!!t.match(g)}const i=n(/android/i),o=n(/iphone|ipad|ipod/i),r=n(/cordova/i),s=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:i,ios:o,cordova:r,electron:s,chrome:a,edge:l,firefox:u,opera:c,win:d,mac:f,linux:h,touch:aD,ssr:t==="ssr"}}function vT(e,t){const{thresholds:n,mobileBreakpoint:i}=pT(e),o=Se(Kg(t)),r=Se(qg(t)),s=at({}),a=Se(Yg(t));function l(){o.value=Kg(),a.value=Yg()}function u(){l(),r.value=qg()}return dn(()=>{const c=a.value<n.sm,d=a.value<n.md&&!c,f=a.value<n.lg&&!(d||c),h=a.value<n.xl&&!(f||d||c),g=a.value<n.xxl&&!(h||f||d||c),m=a.value>=n.xxl,p=c?"xs":d?"sm":f?"md":h?"lg":g?"xl":"xxl",y=typeof i=="number"?i:n[i],S=a.value<y;s.xs=c,s.sm=d,s.md=f,s.lg=h,s.xl=g,s.xxl=m,s.smAndUp=!c,s.mdAndUp=!(c||d),s.lgAndUp=!(c||d||f),s.xlAndUp=!(c||d||f||h),s.smAndDown=!(f||h||g||m),s.mdAndDown=!(h||g||m),s.lgAndDown=!(g||m),s.xlAndDown=!m,s.name=p,s.height=o.value,s.width=a.value,s.mobile=S,s.mobileBreakpoint=i,s.platform=r.value,s.thresholds=n}),We&&window.addEventListener("resize",l,{passive:!0}),{...Vs(s),update:u,ssr:!!t}}const yT=he({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function sh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();const n=je(Sd);if(!n)throw new Error("Could not find Vuetify display injection");const i=z(()=>{if(e.mobile!=null)return e.mobile;if(!e.mobileBreakpoint)return n.mobile.value;const r=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.value<r}),o=z(()=>t?{[`${t}--mobile`]:i.value}:{});return{...n,displayClasses:o,mobile:i}}const p0=Symbol.for("vuetify:goto");function v0(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5}}}function bT(e){return ah(e)??(document.scrollingElement||document.body)}function ah(e){return typeof e=="string"?document.querySelector(e):Nw(e)}function uc(e,t,n){if(typeof e=="number")return t&&n?-e:e;let i=ah(e),o=0;for(;i;)o+=t?i.offsetLeft:i.offsetTop,i=i.offsetParent;return o}function wT(e,t){return{rtl:t.isRtl,options:It(v0(),e)}}async function Xg(e,t,n,i){const o=n?"scrollLeft":"scrollTop",r=It((i==null?void 0:i.options)??v0(),t),s=i==null?void 0:i.rtl.value,a=(typeof e=="number"?e:ah(e))??0,l=r.container==="parent"&&a instanceof HTMLElement?a.parentElement:bT(r.container),u=typeof r.easing=="function"?r.easing:r.patterns[r.easing];if(!u)throw new TypeError(`Easing function "${r.easing}" not found.`);let c;if(typeof a=="number")c=uc(a,n,s);else if(c=uc(a,n,s)-uc(l,n,s),r.layout){const g=window.getComputedStyle(a).getPropertyValue("--v-layout-top");g&&(c-=parseInt(g,10))}c+=r.offset,c=ST(l,c,!!s,!!n);const d=l[o]??0;if(c===d)return Promise.resolve(c);const f=performance.now();return new Promise(h=>requestAnimationFrame(function g(m){const y=(m-f)/r.duration,S=Math.floor(d+(c-d)*u(si(y,0,1)));if(l[o]=S,y>=1&&Math.abs(S-l[o])<10)return h(c);if(y>2)return h(l[o]);requestAnimationFrame(g)}))}function _T(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=je(p0),{isRtl:n}=Wi();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const i={...t,rtl:z(()=>t.rtl.value||n.value)};async function o(r,s){return Xg(r,It(e,s),!1,i)}return o.horizontal=async(r,s)=>Xg(r,It(e,s),!0,i),o}function ST(e,t,n,i){const{scrollWidth:o,scrollHeight:r}=e,[s,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return i?n?(l=-(o-s),u=0):(l=0,u=o-s):(l=0,u=r+-a),Math.max(Math.min(t,u),l)}const Cl=Symbol.for("vuetify:theme"),St=he({theme:String},"theme");function Zg(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function CT(){var i,o;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zg();const t=Zg();if(!e)return{...t,isDisabled:!0};const n={};for(const[r,s]of Object.entries(e.themes??{})){const a=s.dark||r==="dark"?(i=t.themes)==null?void 0:i.dark:(o=t.themes)==null?void 0:o.light;n[r]=It(a,s)}return It(t,{...e,themes:n})}function xT(e){const t=CT(e),n=ne(t.defaultTheme),i=ne(t.themes),o=z(()=>{const c={};for(const[d,f]of Object.entries(i.value)){const h=c[d]={...f,colors:{...f.colors}};if(t.variations)for(const g of t.variations.colors){const m=h.colors[g];if(m)for(const p of["lighten","darken"]){const y=p==="lighten"?HD:FD;for(const S of Mw(t.variations[p],1))h.colors[`${g}-${p}-${S}`]=LD(y(In(m),S))}}for(const g of Object.keys(h.colors)){if(/^on-[a-z]/.test(g)||h.colors[`on-${g}`])continue;const m=`on-${g}`,p=In(h.colors[g]);h.colors[m]=Uw(p)}}return c}),r=z(()=>o.value[n.value]),s=z(()=>{var g;const c=[];(g=r.value)!=null&&g.dark&&Ji(c,":root",["color-scheme: dark"]),Ji(c,":root",Jg(r.value));for(const[m,p]of Object.entries(o.value))Ji(c,`.v-theme--${m}`,[`color-scheme: ${p.dark?"dark":"normal"}`,...Jg(p)]);const d=[],f=[],h=new Set(Object.values(o.value).flatMap(m=>Object.keys(m.colors)));for(const m of h)/^on-[a-z]/.test(m)?Ji(f,`.${m}`,[`color: rgb(var(--v-theme-${m})) !important`]):(Ji(d,`.bg-${m}`,[`--v-theme-overlay-multiplier: var(--v-theme-${m}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${m})) !important`,`color: rgb(var(--v-theme-on-${m})) !important`]),Ji(f,`.text-${m}`,[`color: rgb(var(--v-theme-${m})) !important`]),Ji(f,`.border-${m}`,[`--v-border-color: var(--v-theme-${m})`]));return c.push(...d,...f),c.map((m,p)=>p===0?m:` ${m}`).join("")});function a(){return{style:[{children:s.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const d=c._context.provides.usehead;if(d)if(d.push){const f=d.push(a);We&&ae(s,()=>{f.patch(a)})}else We?(d.addHeadObjs(z(a)),dn(()=>d.updateDOM())):d.addHeadObjs(a());else{let h=function(){if(typeof document<"u"&&!f){const g=document.createElement("style");g.type="text/css",g.id="vuetify-theme-stylesheet",t.cspNonce&&g.setAttribute("nonce",t.cspNonce),f=g,document.head.appendChild(f)}f&&(f.innerHTML=s.value)},f=We?document.getElementById("vuetify-theme-stylesheet"):null;We?ae(s,h,{immediate:!0}):h()}}const u=z(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:i,current:r,computedThemes:o,themeClasses:u,styles:s,global:{name:n,current:r}}}function Ht(e){bt("provideTheme");const t=je(Cl,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=z(()=>e.theme??t.name.value),i=z(()=>t.themes.value[n.value]),o=z(()=>t.isDisabled?void 0:`v-theme--${n.value}`),r={...t,name:n,current:i,themeClasses:o};return rt(Cl,r),r}function Ji(e,t,n){e.push(`${t} {
|
|
27
|
+
`,...n.map(i=>` ${i};
|
|
28
|
+
`),`}
|
|
29
|
+
`)}function Jg(e){const t=e.dark?2:1,n=e.dark?1:2,i=[];for(const[o,r]of Object.entries(e.colors)){const s=In(r);i.push(`--v-theme-${o}: ${s.r},${s.g},${s.b}`),o.startsWith("on-")||i.push(`--v-theme-${o}-overlay-multiplier: ${GD(r)>.18?t:n}`)}for(const[o,r]of Object.entries(e.variables)){const s=typeof r=="string"&&r.startsWith("#")?In(r):void 0,a=s?`${s.r}, ${s.g}, ${s.b}`:void 0;i.push(`--v-${o}: ${a??r}`)}return i}function ys(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=gd(),i=ne();if(We){const o=new ResizeObserver(r=>{r.length&&(t==="content"?i.value=r[0].contentRect:i.value=r[0].target.getBoundingClientRect())});zt(()=>{o.disconnect()}),ae(()=>n.el,(r,s)=>{s&&(o.unobserve(s),i.value=void 0),r&&o.observe(r)},{flush:"post"})}return{resizeRef:n,contentRect:wr(i)}}function y0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,i=It(t,n),{aliases:o={},components:r={},directives:s={}}=i,a=UD(i.defaults),l=vT(i.display,i.ssr),u=xT(i.theme),c=QD(i.icons),d=kI(i.locale),f=mT(i.date,d),h=wT(i.goTo,d);return{install:m=>{for(const p in s)m.directive(p,s[p]);for(const p in r)m.component(p,r[p]);for(const p in o)m.component(p,kr({...o[p],name:p,aliasName:o[p].name}));if(u.install(m),m.provide(cr,a),m.provide(Sd,l),m.provide(Cl,u),m.provide(bd,c),m.provide(_l,d),m.provide(hT,f.options),m.provide(Ug,f.instance),m.provide(p0,h),We&&i.ssr)if(m.$nuxt)m.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:p}=m;m.mount=function(){const y=p(...arguments);return Ue(()=>l.update()),m.mount=p,y}}bn.reset(),m.mixin({computed:{$vuetify(){return at({defaults:Ho.call(this,cr),display:Ho.call(this,Sd),theme:Ho.call(this,Cl),icons:Ho.call(this,bd),locale:Ho.call(this,_l),date:Ho.call(this,Ug)})}}})},defaults:a,display:l,theme:u,icons:c,locale:d,date:f,goTo:h}}const ET="3.7.5";y0.version=ET;function Ho(e){var i,o;const t=this.$,n=((i=t.parent)==null?void 0:i.provides)??((o=t.vnode.appContext)==null?void 0:o.provides);if(n&&e in n)return n[e]}const kT=Yt({name:"vuetify:nuxt:client:plugin",order:25,dependsOn:["vuetify:icons:plugin"],parallel:!0,async setup(e){let t,n;const i=SI();[t,n]=ns(()=>e.hooks.callHook("vuetify:configuration",{isDev:Bg,vuetifyOptions:i})),await t,n(),[t,n]=ns(()=>e.hooks.callHook("vuetify:before-create",{isDev:Bg,vuetifyOptions:i})),await t,n();const o=y0(i);e.vueApp.use(o),e.provide("vuetify",o),[t,n]=ns(()=>e.hooks.callHook("vuetify:ready",o)),await t,n()}}),AT=[oD,sD,iP,rP,lP,uP,cP,dP,hP,yP,bP,wP,_I,kT],DT="modulepreload",PT=function(e,t){return new URL(e,t).href},Qg={},ep=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(u=>{if(u=PT(u,i),u in Qg)return;Qg[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!i)for(let g=s.length-1;g>=0;g--){const m=s[g];if(m.href===u&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":DT,c||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((g,m)=>{h.addEventListener("load",g),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function r(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&r(a.reason);return t().catch(r)})};class IT{}class Ni extends IT{constructor(t,n,i){super(),this.viewId=t,this.groupId=n,this.panelId=i}}class ko{constructor(){}static getInstance(){return ko.INSTANCE}hasData(t){return t&&t===this.proto}clearData(t){this.hasData(t)&&(this.proto=void 0,this.data=void 0)}getData(t){if(this.hasData(t))return this.data}setData(t,n){n&&(this.data=t,this.proto=n)}}ko.INSTANCE=new ko;function Dt(){const e=ko.getInstance();if(e.hasData(Ni.prototype))return e.getData(Ni.prototype)[0]}var go;(function(e){e.any=(...t)=>n=>{const i=t.map(o=>o(n));return{dispose:()=>{i.forEach(o=>{o.dispose()})}}}})(go||(go={}));class lh{constructor(){this._defaultPrevented=!1}get defaultPrevented(){return this._defaultPrevented}preventDefault(){this._defaultPrevented=!0}}class TT{constructor(){this.events=new Map}get size(){return this.events.size}add(t,n){this.events.set(t,n)}delete(t){this.events.delete(t)}clear(){this.events.clear()}}class xl{static create(){var t;return new xl((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn("dockview: stacktrace",this.value)}}class MT{constructor(t,n){this.callback=t,this.stacktrace=n}}class ie{static setLeakageMonitorEnabled(t){t!==ie.ENABLE_TRACKING&&ie.MEMORY_LEAK_WATCHER.clear(),ie.ENABLE_TRACKING=t}get value(){return this._last}constructor(t){this.options=t,this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=t=>{var n;!((n=this.options)===null||n===void 0)&&n.replay&&this._last!==void 0&&t(this._last);const i=new MT(t,ie.ENABLE_TRACKING?xl.create():void 0);return this._listeners.push(i),{dispose:()=>{const o=this._listeners.indexOf(i);o>-1&&this._listeners.splice(o,1)}}},ie.ENABLE_TRACKING&&ie.MEMORY_LEAK_WATCHER.add(this._event,xl.create())),this._event}fire(t){this._last=t;for(const n of this._listeners)n.callback(t)}dispose(){this._disposed||(this._disposed=!0,this._listeners.length>0&&(ie.ENABLE_TRACKING&&queueMicrotask(()=>{var t;for(const n of this._listeners)console.warn("dockview: stacktrace",(t=n.stacktrace)===null||t===void 0?void 0:t.print())}),this._listeners=[]),ie.ENABLE_TRACKING&&this._event&&ie.MEMORY_LEAK_WATCHER.delete(this._event))}}ie.ENABLE_TRACKING=!1;ie.MEMORY_LEAK_WATCHER=new TT;function Qn(e,t,n,i){return e.addEventListener(t,n,i),{dispose:()=>{e.removeEventListener(t,n,i)}}}function tt(e,t,n,i){return e.addEventListener(t,n,i),{dispose:()=>{e.removeEventListener(t,n,i)}}}class tp{constructor(){this._onFired=new ie,this._currentFireCount=0,this._queued=!1,this.onEvent=t=>{const n=this._currentFireCount;return this._onFired.event(()=>{this._currentFireCount>n&&t()})}}fire(){this._currentFireCount++,!this._queued&&(this._queued=!0,queueMicrotask(()=>{this._queued=!1,this._onFired.fire()}))}dispose(){this._onFired.dispose()}}var Vt;(function(e){e.NONE={dispose:()=>{}};function t(n){return{dispose:()=>{n()}}}e.from=t})(Vt||(Vt={}));class He{get isDisposed(){return this._isDisposed}constructor(...t){this._isDisposed=!1,this._disposables=t}addDisposables(...t){t.forEach(n=>this._disposables.push(n))}dispose(){this._isDisposed||(this._isDisposed=!0,this._disposables.forEach(t=>t.dispose()),this._disposables=[])}}class Rn{constructor(){this._disposable=Vt.NONE}set value(t){this._disposable&&this._disposable.dispose(),this._disposable=t}dispose(){this._disposable&&(this._disposable.dispose(),this._disposable=Vt.NONE)}}function b0(e,t){const n=new ResizeObserver(i=>{requestAnimationFrame(()=>{const o=i[0];t(o)})});return n.observe(e),{dispose:()=>{n.unobserve(e),n.disconnect()}}}const Cd=(e,...t)=>{for(const n of t)e.classList.contains(n)&&e.classList.remove(n)},w0=(e,...t)=>{for(const n of t)e.classList.contains(n)||e.classList.add(n)},Re=(e,t,n)=>{const i=e.classList.contains(t);n&&!i&&e.classList.add(t),!n&&i&&e.classList.remove(t)};function xd(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function np(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function _0(e){return new NT(e)}class NT extends He{constructor(t){super(),this._onDidFocus=new ie,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new ie,this.onDidBlur=this._onDidBlur.event,this.addDisposables(this._onDidFocus,this._onDidBlur);let n=xd(document.activeElement,t),i=!1;const o=()=>{i=!1,n||(n=!0,this._onDidFocus.fire())},r=()=>{n&&(i=!0,window.setTimeout(()=>{i&&(i=!1,n=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{xd(document.activeElement,t)!==n&&(n?r():o())},t instanceof HTMLElement?(this.addDisposables(tt(t,"focus",o,!0)),this.addDisposables(tt(t,"blur",r,!0))):(this.addDisposables(Qn(t,"focus",o,!0)),this.addDisposables(Qn(t,"blur",r,!0)))}refreshState(){this._refreshStateHandler()}}const S0="dv-quasiPreventDefault";function OT(e){e[S0]=!0}function ip(e){return e[S0]}function $T(e,t){const n=Array.from(t);for(const i of n){if(i.href){const r=e.createElement("link");r.href=i.href,r.type=i.type,r.rel="stylesheet",e.head.appendChild(r)}let o=[];try{i.cssRules&&(o=Array.from(i.cssRules).map(r=>r.cssText))}catch{}for(const r of o){const s=e.createElement("style");s.appendChild(e.createTextNode(r)),e.head.appendChild(s)}}}function op(e){const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t+window.scrollX,top:n+window.scrollY,width:i,height:o}}function RT(e){let t=e;for(;t!=null&&t.parentNode;){if(t.parentNode===document)return!0;t.parentNode instanceof DocumentFragment?t=t.parentNode.host:t=t.parentNode}return!1}function VT(e,t){e.setAttribute("data-testid",t)}function El(){const e=[...np("iframe"),...np("webview")],t=new WeakMap;for(const n of e)t.set(n,n.style.pointerEvents),n.style.pointerEvents="none";return{release:()=>{var n;for(const i of e)i.style.pointerEvents=(n=t.get(i))!==null&&n!==void 0?n:"auto";e.splice(0,e.length)}}}function LT(e){function t(o){const r=[];for(let s=0;s<o.classList.length;s++)r.push(o.classList.item(s));return r}let n,i=e;for(;i!==null&&(n=t(i).find(o=>o.startsWith("dockview-theme-")),typeof n!="string");)i=i.parentElement;return n}class zT{constructor(t){this.element=t,this._classNames=[]}setClassNames(t){for(const n of this._classNames)Re(this.element,n,!1);this._classNames=t.split(" ").filter(n=>n.trim().length>0);for(const n of this._classNames)Re(this.element,n,!0)}}function so(e){if(e.length===0)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function BT(e){return e.length>0?e[e.length-1]:void 0}function HT(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function cc(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function ma(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function FT(e,t){for(let n=0;n<e.length;n++){const i=e[n];if(t(i))return n}return-1}function dc(e,t){const n=e.findIndex(i=>i===t);return n>-1?(e.splice(n,1),!0):!1}const Qe=(e,t,n)=>t>n?t:Math.min(n,Math.max(e,t)),C0=()=>{let e=1;return{next:()=>(e++).toString()}},hn=(e,t)=>{const n=[];if(typeof t!="number"&&(t=e,e=0),e<=t)for(let i=e;i<t;i++)n.push(i);else for(let i=e;i>t;i--)n.push(i);return n};class GT{set size(t){this._size=t}get size(){return this._size}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return typeof this._cachedVisibleSize>"u"}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(t){this.container.style.pointerEvents=t?"":"none"}constructor(t,n,i,o){this.container=t,this.view=n,this.disposable=o,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,t.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}setVisible(t,n){var i;t!==this.visible&&(t?(this.size=Qe((i=this._cachedVisibleSize)!==null&&i!==void 0?i:0,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof n=="number"?n:this.size,this.size=0),this.container.classList.toggle("visible",t),this.view.setVisible&&this.view.setVisible(t))}dispose(){return this.disposable.dispose(),this.view}}var De;(function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"})(De||(De={}));var an;(function(e){e[e.MAXIMUM=0]="MAXIMUM",e[e.MINIMUM=1]="MINIMUM",e[e.DISABLED=2]="DISABLED",e[e.ENABLED=3]="ENABLED"})(an||(an={}));var mt;(function(e){e.Low="low",e.High="high",e.Normal="normal"})(mt||(mt={}));var ei;(function(e){e.Distribute={type:"distribute"};function t(i){return{type:"split",index:i}}e.Split=t;function n(i){return{type:"invisible",cachedVisibleSize:i}}e.Invisible=n})(ei||(ei={}));class rp{get contentSize(){return this._contentSize}get size(){return this._size}set size(t){this._size=t}get orthogonalSize(){return this._orthogonalSize}set orthogonalSize(t){this._orthogonalSize=t}get length(){return this.viewItems.length}get proportions(){return this._proportions?[...this._proportions]:void 0}get orientation(){return this._orientation}set orientation(t){this._orientation=t;const n=this.size;this.size=this.orthogonalSize,this.orthogonalSize=n,Cd(this.element,"dv-horizontal","dv-vertical"),this.element.classList.add(this.orientation==De.HORIZONTAL?"dv-horizontal":"dv-vertical")}get minimumSize(){return this.viewItems.reduce((t,n)=>t+n.minimumSize,0)}get maximumSize(){return this.length===0?Number.POSITIVE_INFINITY:this.viewItems.reduce((t,n)=>t+n.maximumSize,0)}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(t){this._startSnappingEnabled!==t&&(this._startSnappingEnabled=t,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(t){this._endSnappingEnabled!==t&&(this._endSnappingEnabled=t,this.updateSashEnablement())}get disabled(){return this._disabled}set disabled(t){this._disabled=t,Re(this.element,"dv-splitview-disabled",t)}get margin(){return this._margin}set margin(t){this._margin=t}constructor(t,n){var i;this.container=t,this.viewItems=[],this.sashes=[],this._size=0,this._orthogonalSize=0,this._contentSize=0,this._proportions=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this._disabled=!1,this._margin=0,this._onDidSashEnd=new ie,this.onDidSashEnd=this._onDidSashEnd.event,this._onDidAddView=new ie,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new ie,this.onDidRemoveView=this._onDidRemoveView.event,this.resize=(o,r,s=this.viewItems.map(h=>h.size),a,l,u=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,d,f)=>{if(o<0||o>this.viewItems.length)return 0;const h=hn(o,-1),g=hn(o+1,this.viewItems.length);if(l)for(const b of l)cc(h,b),cc(g,b);if(a)for(const b of a)ma(h,b),ma(g,b);const m=h.map(b=>this.viewItems[b]),p=h.map(b=>s[b]),y=g.map(b=>this.viewItems[b]),S=g.map(b=>s[b]),v=h.reduce((b,P)=>b+this.viewItems[P].minimumSize-s[P],0),w=h.reduce((b,P)=>b+this.viewItems[P].maximumSize-s[P],0),M=g.length===0?Number.POSITIVE_INFINITY:g.reduce((b,P)=>b+s[P]-this.viewItems[P].minimumSize,0),I=g.length===0?Number.NEGATIVE_INFINITY:g.reduce((b,P)=>b+s[P]-this.viewItems[P].maximumSize,0),O=Math.max(v,I),V=Math.min(M,w);let N=!1;if(d){const b=this.viewItems[d.index],P=r>=d.limitDelta;N=P!==b.visible,b.setVisible(P,d.size)}if(!N&&f){const b=this.viewItems[f.index],P=r<f.limitDelta;N=P!==b.visible,b.setVisible(P,f.size)}if(N)return this.resize(o,r,s,a,l,u,c);const $=Qe(r,O,V);let H=0,E=$;for(let b=0;b<m.length;b++){const P=m[b],C=Qe(p[b]+E,P.minimumSize,P.maximumSize),F=C-p[b];H+=F,E-=F,P.size=C}let W=H;for(let b=0;b<y.length;b++){const P=y[b],C=Qe(S[b]-W,P.minimumSize,P.maximumSize),F=C-S[b];W+=F,P.size=C}return r},this._orientation=n.orientation,this.element=this.createContainer(),this.margin=(i=n.margin)!==null&&i!==void 0?i:0,this.proportionalLayout=n.proportionalLayout===void 0?!0:!!n.proportionalLayout,this.viewContainer=this.createViewContainer(),this.sashContainer=this.createSashContainer(),this.element.appendChild(this.sashContainer),this.element.appendChild(this.viewContainer),this.container.appendChild(this.element),this.style(n.styles),n.descriptor&&(this._size=n.descriptor.size,n.descriptor.views.forEach((o,r)=>{const s=o.visible===void 0||o.visible?o.size:{type:"invisible",cachedVisibleSize:o.size},a=o.view;this.addView(a,s,r,!0)}),this._contentSize=this.viewItems.reduce((o,r)=>o+r.size,0),this.saveProportions())}style(t){(t==null?void 0:t.separatorBorder)==="transparent"?(Cd(this.element,"dv-separator-border"),this.element.style.removeProperty("--dv-separator-border")):(w0(this.element,"dv-separator-border"),t!=null&&t.separatorBorder&&this.element.style.setProperty("--dv-separator-border",t.separatorBorder))}isViewVisible(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].visible}setViewVisible(t,n){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");const i=this.viewItems[t];i.setVisible(n,i.size),this.distributeEmptySpace(t),this.layoutViews(),this.saveProportions()}getViewSize(t){return t<0||t>=this.viewItems.length?-1:this.viewItems[t].size}resizeView(t,n){if(t<0||t>=this.viewItems.length)return;const i=hn(this.viewItems.length).filter(a=>a!==t),o=[...i.filter(a=>this.viewItems[a].priority===mt.Low),t],r=i.filter(a=>this.viewItems[a].priority===mt.High),s=this.viewItems[t];n=Math.round(n),n=Qe(n,s.minimumSize,Math.min(s.maximumSize,this._size)),s.size=n,this.relayout(o,r)}getViews(){return this.viewItems.map(t=>t.view)}onDidChange(t,n){const i=this.viewItems.indexOf(t);if(i<0||i>=this.viewItems.length)return;n=typeof n=="number"?n:t.size,n=Qe(n,t.minimumSize,t.maximumSize),t.size=n;const o=hn(this.viewItems.length).filter(a=>a!==i),r=[...o.filter(a=>this.viewItems[a].priority===mt.Low),i],s=o.filter(a=>this.viewItems[a].priority===mt.High);this.relayout([...r,i],s)}addView(t,n={type:"distribute"},i=this.viewItems.length,o){const r=document.createElement("div");r.className="dv-view",r.appendChild(t.element);let s;typeof n=="number"?s=n:n.type==="split"?s=this.getViewSize(n.index)/2:n.type==="invisible"?s={cachedVisibleSize:n.cachedVisibleSize}:s=t.minimumSize;const a=t.onDidChange(u=>this.onDidChange(l,u.size)),l=new GT(r,t,s,{dispose:()=>{a.dispose(),this.viewContainer.removeChild(r)}});if(i===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(i)),this.viewItems.splice(i,0,l),this.viewItems.length>1){const u=document.createElement("div");u.className="dv-sash";const c=f=>{for(const P of this.viewItems)P.enabled=!1;const h=El(),g=this._orientation===De.HORIZONTAL?f.clientX:f.clientY,m=FT(this.sashes,P=>P.container===u),p=this.viewItems.map(P=>P.size);let y,S;const v=hn(m,-1),w=hn(m+1,this.viewItems.length),M=v.reduce((P,C)=>P+(this.viewItems[C].minimumSize-p[C]),0),I=v.reduce((P,C)=>P+(this.viewItems[C].viewMaximumSize-p[C]),0),O=w.length===0?Number.POSITIVE_INFINITY:w.reduce((P,C)=>P+(p[C]-this.viewItems[C].minimumSize),0),V=w.length===0?Number.NEGATIVE_INFINITY:w.reduce((P,C)=>P+(p[C]-this.viewItems[C].viewMaximumSize),0),N=Math.max(M,V),$=Math.min(O,I),H=this.findFirstSnapIndex(v),E=this.findFirstSnapIndex(w);if(typeof H=="number"){const P=this.viewItems[H],C=Math.floor(P.viewMinimumSize/2);y={index:H,limitDelta:P.visible?N-C:N+C,size:P.size}}if(typeof E=="number"){const P=this.viewItems[E],C=Math.floor(P.viewMinimumSize/2);S={index:E,limitDelta:P.visible?$+C:$-C,size:P.size}}const W=P=>{const F=(this._orientation===De.HORIZONTAL?P.clientX:P.clientY)-g;this.resize(m,F,p,void 0,void 0,N,$,y,S),this.distributeEmptySpace(),this.layoutViews()},b=()=>{for(const P of this.viewItems)P.enabled=!0;h.release(),this.saveProportions(),document.removeEventListener("pointermove",W),document.removeEventListener("pointerup",b),document.removeEventListener("pointercancel",b),this._onDidSashEnd.fire(void 0)};document.addEventListener("pointermove",W),document.addEventListener("pointerup",b),document.addEventListener("pointercancel",b)};u.addEventListener("pointerdown",c);const d={container:u,disposable:()=>{u.removeEventListener("pointerdown",c),this.sashContainer.removeChild(u)}};this.sashContainer.appendChild(u),this.sashes.push(d)}o||this.relayout([i]),!o&&typeof n!="number"&&n.type==="distribute"&&this.distributeViewSizes(),this._onDidAddView.fire(t)}distributeViewSizes(){const t=[];let n=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(t.push(a),n+=a.size);const i=Math.floor(n/t.length);for(const a of t)a.size=Qe(i,a.minimumSize,a.maximumSize);const o=hn(this.viewItems.length),r=o.filter(a=>this.viewItems[a].priority===mt.Low),s=o.filter(a=>this.viewItems[a].priority===mt.High);this.relayout(r,s)}removeView(t,n,i=!1){const o=this.viewItems.splice(t,1)[0];if(o.dispose(),this.viewItems.length>=1){const r=Math.max(t-1,0);this.sashes.splice(r,1)[0].disposable()}return i||this.relayout(),n&&n.type==="distribute"&&this.distributeViewSizes(),this._onDidRemoveView.fire(o.view),o.view}getViewCachedVisibleSize(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].cachedVisibleSize}moveView(t,n){const i=this.getViewCachedVisibleSize(t),o=typeof i>"u"?this.getViewSize(t):ei.Invisible(i),r=this.removeView(t,void 0,!0);this.addView(r,o,n)}layout(t,n){const i=Math.max(this.size,this._contentSize);if(this.size=t,this.orthogonalSize=n,this.proportions){let o=0;for(let r=0;r<this.viewItems.length;r++){const s=this.viewItems[r],a=this.proportions[r];typeof a=="number"?o+=a:t-=s.size}for(let r=0;r<this.viewItems.length;r++){const s=this.viewItems[r],a=this.proportions[r];typeof a=="number"&&o>0&&(s.size=Qe(Math.round(a*t/o),s.minimumSize,s.maximumSize))}}else{const o=hn(this.viewItems.length),r=o.filter(a=>this.viewItems[a].priority===mt.Low),s=o.filter(a=>this.viewItems[a].priority===mt.High);this.resize(this.viewItems.length-1,t-i,void 0,r,s)}this.distributeEmptySpace(),this.layoutViews()}relayout(t,n){const i=this.viewItems.reduce((o,r)=>o+r.size,0);this.resize(this.viewItems.length-1,this._size-i,void 0,t,n),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}distributeEmptySpace(t){const n=this.viewItems.reduce((a,l)=>a+l.size,0);let i=this.size-n;const o=hn(this.viewItems.length-1,-1),r=o.filter(a=>this.viewItems[a].priority===mt.Low),s=o.filter(a=>this.viewItems[a].priority===mt.High);for(const a of s)cc(o,a);for(const a of r)ma(o,a);typeof t=="number"&&ma(o,t);for(let a=0;i!==0&&a<o.length;a++){const l=this.viewItems[o[a]],u=Qe(l.size+i,l.minimumSize,l.maximumSize),c=u-l.size;i-=c,l.size=u}}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this._proportions=this.viewItems.map(t=>t.visible?t.size/this._contentSize:void 0))}layoutViews(){if(this._contentSize=this.viewItems.reduce((l,u)=>l+u.size,0),this.updateSashEnablement(),this.viewItems.length===0)return;const t=this.viewItems.filter(l=>l.visible),n=Math.max(0,t.length-1),i=this.margin*n/Math.max(1,t.length);let o=0;const r=[],s=4,a=this.viewItems.reduce((l,u,c)=>{const d=u.visible?1:0;return c===0?l.push(d):l.push(l[c-1]+d),l},[]);this.viewItems.forEach((l,u)=>{o+=this.viewItems[u].size,r.push(o);const c=l.visible?l.size-i:0,d=Math.max(0,a[u]-1),f=u===0||d===0?0:r[u-1]+d/n*i;if(u<this.viewItems.length-1){const h=l.visible?f+c-s/2+this.margin/2:f;this._orientation===De.HORIZONTAL&&(this.sashes[u].container.style.left=`${h}px`,this.sashes[u].container.style.top="0px"),this._orientation===De.VERTICAL&&(this.sashes[u].container.style.left="0px",this.sashes[u].container.style.top=`${h}px`)}this._orientation===De.HORIZONTAL&&(l.container.style.width=`${c}px`,l.container.style.left=`${f}px`,l.container.style.top="",l.container.style.height=""),this._orientation===De.VERTICAL&&(l.container.style.height=`${c}px`,l.container.style.top=`${f}px`,l.container.style.width="",l.container.style.left=""),l.view.layout(l.size-i,this._orthogonalSize)})}findFirstSnapIndex(t){for(const n of t){const i=this.viewItems[n];if(i.visible&&i.snap)return n}for(const n of t){const i=this.viewItems[n];if(i.visible&&i.maximumSize-i.minimumSize>0)return;if(!i.visible&&i.snap)return n}}updateSashEnablement(){let t=!1;const n=this.viewItems.map(l=>t=l.size-l.minimumSize>0||t);t=!1;const i=this.viewItems.map(l=>t=l.maximumSize-l.size>0||t),o=[...this.viewItems].reverse();t=!1;const r=o.map(l=>t=l.size-l.minimumSize>0||t).reverse();t=!1;const s=o.map(l=>t=l.maximumSize-l.size>0||t).reverse();let a=0;for(let l=0;l<this.sashes.length;l++){const u=this.sashes[l],c=this.viewItems[l];a+=c.size;const d=!(n[l]&&s[l+1]),f=!(i[l]&&r[l+1]);if(d&&f){const h=hn(l,-1),g=hn(l+1,this.viewItems.length),m=this.findFirstSnapIndex(h),p=this.findFirstSnapIndex(g),y=typeof m=="number"&&!this.viewItems[m].visible,S=typeof p=="number"&&!this.viewItems[p].visible;y&&r[l]&&(a>0||this.startSnappingEnabled)?this.updateSash(u,an.MINIMUM):S&&n[l]&&(a<this._contentSize||this.endSnappingEnabled)?this.updateSash(u,an.MAXIMUM):this.updateSash(u,an.DISABLED)}else d&&!f?this.updateSash(u,an.MINIMUM):!d&&f?this.updateSash(u,an.MAXIMUM):this.updateSash(u,an.ENABLED)}}updateSash(t,n){Re(t.container,"dv-disabled",n===an.DISABLED),Re(t.container,"dv-enabled",n===an.ENABLED),Re(t.container,"dv-maximum",n===an.MAXIMUM),Re(t.container,"dv-minimum",n===an.MINIMUM)}createViewContainer(){const t=document.createElement("div");return t.className="dv-view-container",t}createSashContainer(){const t=document.createElement("div");return t.className="dv-sash-container",t}createContainer(){const t=document.createElement("div"),n=this._orientation===De.HORIZONTAL?"dv-horizontal":"dv-vertical";return t.className=`dv-split-view-container ${n}`,t}dispose(){this._onDidSashEnd.dispose(),this._onDidAddView.dispose(),this._onDidRemoveView.dispose();for(let t=0;t<this.element.children.length;t++)if(this.element.children.item(t)===this.element){this.element.removeChild(this.element);break}for(const t of this.viewItems)t.dispose();this.element.remove()}}class Mt{get minimumWidth(){return this.view.minimumWidth}get maximumWidth(){return this.view.maximumWidth}get minimumHeight(){return this.view.minimumHeight}get maximumHeight(){return this.view.maximumHeight}get priority(){return this.view.priority}get snap(){return this.view.snap}get minimumSize(){return this.orientation===De.HORIZONTAL?this.minimumHeight:this.minimumWidth}get maximumSize(){return this.orientation===De.HORIZONTAL?this.maximumHeight:this.maximumWidth}get minimumOrthogonalSize(){return this.orientation===De.HORIZONTAL?this.minimumWidth:this.minimumHeight}get maximumOrthogonalSize(){return this.orientation===De.HORIZONTAL?this.maximumWidth:this.maximumHeight}get orthogonalSize(){return this._orthogonalSize}get size(){return this._size}get element(){return this.view.element}get width(){return this.orientation===De.HORIZONTAL?this.orthogonalSize:this.size}get height(){return this.orientation===De.HORIZONTAL?this.size:this.orthogonalSize}constructor(t,n,i,o=0){this.view=t,this.orientation=n,this._onDidChange=new ie,this.onDidChange=this._onDidChange.event,this._orthogonalSize=i,this._size=o,this._disposable=this.view.onDidChange(r=>{r?this._onDidChange.fire({size:this.orientation===De.VERTICAL?r.width:r.height,orthogonalSize:this.orientation===De.VERTICAL?r.height:r.width}):this._onDidChange.fire({})})}setVisible(t){this.view.setVisible&&this.view.setVisible(t)}layout(t,n){this._size=t,this._orthogonalSize=n,this.view.layout(this.width,this.height)}dispose(){this._onDidChange.dispose(),this._disposable.dispose()}}class ut extends He{get width(){return this.orientation===De.HORIZONTAL?this.size:this.orthogonalSize}get height(){return this.orientation===De.HORIZONTAL?this.orthogonalSize:this.size}get minimumSize(){return this.children.length===0?0:Math.max(...this.children.map((t,n)=>this.splitview.isViewVisible(n)?t.minimumOrthogonalSize:0))}get maximumSize(){return Math.min(...this.children.map((t,n)=>this.splitview.isViewVisible(n)?t.maximumOrthogonalSize:Number.POSITIVE_INFINITY))}get minimumOrthogonalSize(){return this.splitview.minimumSize}get maximumOrthogonalSize(){return this.splitview.maximumSize}get orthogonalSize(){return this._orthogonalSize}get size(){return this._size}get minimumWidth(){return this.orientation===De.HORIZONTAL?this.minimumOrthogonalSize:this.minimumSize}get minimumHeight(){return this.orientation===De.HORIZONTAL?this.minimumSize:this.minimumOrthogonalSize}get maximumWidth(){return this.orientation===De.HORIZONTAL?this.maximumOrthogonalSize:this.maximumSize}get maximumHeight(){return this.orientation===De.HORIZONTAL?this.maximumSize:this.maximumOrthogonalSize}get priority(){if(this.children.length===0)return mt.Normal;const t=this.children.map(n=>typeof n.priority>"u"?mt.Normal:n.priority);return t.some(n=>n===mt.High)?mt.High:t.some(n=>n===mt.Low)?mt.Low:mt.Normal}get disabled(){return this.splitview.disabled}set disabled(t){this.splitview.disabled=t}get margin(){return this.splitview.margin}set margin(t){this.splitview.margin=t,this.children.forEach(n=>{n instanceof ut&&(n.margin=t)})}constructor(t,n,i,o,r,s,a,l){if(super(),this.orientation=t,this.proportionalLayout=n,this.styles=i,this._childrenDisposable=Vt.NONE,this.children=[],this._onDidChange=new ie,this.onDidChange=this._onDidChange.event,this._onDidVisibilityChange=new ie,this.onDidVisibilityChange=this._onDidVisibilityChange.event,this._orthogonalSize=r,this._size=o,this.element=document.createElement("div"),this.element.className="dv-branch-node",!l)this.splitview=new rp(this.element,{orientation:this.orientation,proportionalLayout:n,styles:i,margin:a}),this.splitview.layout(this.size,this.orthogonalSize);else{const u={views:l.map(c=>({view:c.node,size:c.node.size,visible:c.node instanceof Mt&&c.visible!==void 0?c.visible:!0})),size:this.orthogonalSize};this.children=l.map(c=>c.node),this.splitview=new rp(this.element,{orientation:this.orientation,descriptor:u,proportionalLayout:n,styles:i,margin:a})}this.disabled=s,this.addDisposables(this._onDidChange,this._onDidVisibilityChange,this.splitview.onDidSashEnd(()=>{this._onDidChange.fire({})})),this.setupChildrenEvents()}setVisible(t){}isChildVisible(t){if(t<0||t>=this.children.length)throw new Error("Invalid index");return this.splitview.isViewVisible(t)}setChildVisible(t,n){if(t<0||t>=this.children.length)throw new Error("Invalid index");if(this.splitview.isViewVisible(t)===n)return;const i=this.splitview.contentSize===0;this.splitview.setViewVisible(t,n);const o=this.splitview.contentSize===0;(n&&i||!n&&o)&&this._onDidVisibilityChange.fire({visible:n})}moveChild(t,n){if(t===n)return;if(t<0||t>=this.children.length)throw new Error("Invalid from index");t<n&&n--,this.splitview.moveView(t,n);const i=this._removeChild(t);this._addChild(i,n)}getChildSize(t){if(t<0||t>=this.children.length)throw new Error("Invalid index");return this.splitview.getViewSize(t)}resizeChild(t,n){if(t<0||t>=this.children.length)throw new Error("Invalid index");this.splitview.resizeView(t,n)}layout(t,n){this._size=n,this._orthogonalSize=t,this.splitview.layout(n,t)}addChild(t,n,i,o){if(i<0||i>this.children.length)throw new Error("Invalid index");this.splitview.addView(t,n,i,o),this._addChild(t,i)}getChildCachedVisibleSize(t){if(t<0||t>=this.children.length)throw new Error("Invalid index");return this.splitview.getViewCachedVisibleSize(t)}removeChild(t,n){if(t<0||t>=this.children.length)throw new Error("Invalid index");return this.splitview.removeView(t,n),this._removeChild(t)}_addChild(t,n){this.children.splice(n,0,t),this.setupChildrenEvents()}_removeChild(t){const[n]=this.children.splice(t,1);return this.setupChildrenEvents(),n}setupChildrenEvents(){this._childrenDisposable.dispose(),this._childrenDisposable=new He(go.any(...this.children.map(t=>t.onDidChange))(t=>{this._onDidChange.fire({size:t.orthogonalSize})}),...this.children.map((t,n)=>t instanceof ut?t.onDidVisibilityChange(({visible:i})=>{this.setChildVisible(n,i)}):Vt.NONE))}dispose(){this._childrenDisposable.dispose(),this.splitview.dispose(),this.children.forEach(t=>t.dispose()),super.dispose()}}function Ed(e,t){if(e instanceof Mt)return e;if(e instanceof ut)return Ed(e.children[t?e.children.length-1:0],t);throw new Error("invalid node")}function kd(e,t,n){if(e instanceof ut){const i=new ut(Pn(e.orientation),e.proportionalLayout,e.styles,t,n,e.disabled,e.margin);let o=0;for(let r=e.children.length-1;r>=0;r--){const s=e.children[r],a=s instanceof ut?s.orthogonalSize:s.size;let l=e.size===0?0:Math.round(t*a/e.size);o+=l,r===0&&(l+=t-o),i.addChild(kd(s,n,l),l,0,!0)}return i}else return new Mt(e.view,Pn(e.orientation),n)}function WT(e){const t=e.parentElement;if(!t)throw new Error("Invalid grid element");let n=t.firstElementChild,i=0;for(;n!==e&&n!==t.lastElementChild&&n;)n=n.nextElementSibling,i++;return i}function Et(e){const t=e.parentElement;if(!t)throw new Error("Invalid grid element");if(/\bdv-grid-view\b/.test(t.className))return[];const n=WT(t),i=t.parentElement.parentElement.parentElement;return[...Et(i),n]}function Fo(e,t,n){const i=jT(e,t),o=UT(n);if(i===o){const[r,s]=so(t);let a=s;return(n==="right"||n==="bottom")&&(a+=1),[...r,a]}else{const r=n==="right"||n==="bottom"?1:0;return[...t,r]}}function UT(e){return e==="top"||e==="bottom"?De.VERTICAL:De.HORIZONTAL}function jT(e,t){return t.length%2===0?Pn(e):e}const Pn=e=>e===De.HORIZONTAL?De.VERTICAL:De.HORIZONTAL;function YT(e){return!!e.children}const x0=(e,t)=>{const n=t===De.VERTICAL?e.box.width:e.box.height;return YT(e)?{type:"branch",data:e.children.map(i=>x0(i,Pn(t))),size:n}:typeof e.cachedVisibleSize=="number"?{type:"leaf",data:e.view.toJSON(),size:e.cachedVisibleSize,visible:!1}:{type:"leaf",data:e.view.toJSON(),size:n}};class KT{get length(){return this._root?this._root.children.length:0}get orientation(){return this.root.orientation}set orientation(t){if(this.root.orientation===t)return;const{size:n,orthogonalSize:i}=this.root;this.root=kd(this.root,i,n),this.root.layout(n,i)}get width(){return this.root.width}get height(){return this.root.height}get minimumWidth(){return this.root.minimumWidth}get minimumHeight(){return this.root.minimumHeight}get maximumWidth(){return this.root.maximumHeight}get maximumHeight(){return this.root.maximumHeight}get locked(){return this._locked}set locked(t){this._locked=t;const n=[this.root];for(;n.length>0;){const i=n.pop();i instanceof ut&&(i.disabled=t,n.push(...i.children))}}get margin(){return this._margin}set margin(t){this._margin=t,this.root.margin=t}maximizedView(){var t;return(t=this._maximizedNode)===null||t===void 0?void 0:t.leaf.view}hasMaximizedView(){return this._maximizedNode!==void 0}maximizeView(t){var n;const i=Et(t.element),[o,r]=this.getNode(i);if(!(r instanceof Mt)||((n=this._maximizedNode)===null||n===void 0?void 0:n.leaf)===r)return;this.hasMaximizedView()&&this.exitMaximizedView();const s=[];function a(l,u){for(let c=0;c<l.children.length;c++){const d=l.children[c];d instanceof Mt?d!==u&&(l.isChildVisible(c)?l.setChildVisible(c,!1):s.push(d)):a(d,u)}}a(this.root,r),this._maximizedNode={leaf:r,hiddenOnMaximize:s},this._onDidMaximizedNodeChange.fire()}exitMaximizedView(){if(!this._maximizedNode)return;const t=this._maximizedNode.hiddenOnMaximize;function n(i){for(let o=i.children.length-1;o>=0;o--){const r=i.children[o];r instanceof Mt?t.includes(r)||i.setChildVisible(o,!0):n(r)}}n(this.root),this._maximizedNode=void 0,this._onDidMaximizedNodeChange.fire()}serialize(){return this.hasMaximizedView()&&this.exitMaximizedView(),{root:x0(this.getView(),this.orientation),width:this.width,height:this.height,orientation:this.orientation}}dispose(){this.disposable.dispose(),this._onDidChange.dispose(),this._onDidMaximizedNodeChange.dispose(),this._onDidViewVisibilityChange.dispose(),this.root.dispose(),this._maximizedNode=void 0,this.element.remove()}clear(){const t=this.root.orientation;this.root=new ut(t,this.proportionalLayout,this.styles,this.root.size,this.root.orthogonalSize,this.locked,this.margin)}deserialize(t,n){const i=t.orientation,o=i===De.VERTICAL?t.height:t.width;this._deserialize(t.root,i,n,o)}_deserialize(t,n,i,o){this.root=this._deserializeNode(t,n,i,o)}_deserializeNode(t,n,i,o){var r;let s;if(t.type==="branch"){const l=t.data.map(u=>({node:this._deserializeNode(u,Pn(n),i,t.size),visible:u.visible}));s=new ut(n,this.proportionalLayout,this.styles,t.size,o,this.locked,this.margin,l)}else{const a=i.fromJSON(t);typeof t.visible=="boolean"&&((r=a.setVisible)===null||r===void 0||r.call(a,t.visible)),s=new Mt(a,n,o,t.size)}return s}get root(){return this._root}set root(t){const n=this._root;n&&(n.dispose(),this._maximizedNode=void 0,this.element.removeChild(n.element)),this._root=t,this.element.appendChild(this._root.element),this.disposable.value=this._root.onDidChange(i=>{this._onDidChange.fire(i)})}insertOrthogonalSplitviewAtRoot(){if(!this._root)return;const t=this.root;if(t.element.remove(),this._root=new ut(Pn(t.orientation),this.proportionalLayout,this.styles,this.root.orthogonalSize,this.root.size,this.locked,this.margin),t.children.length!==0)if(t.children.length===1){const n=t.children[0];t.removeChild(0).dispose(),t.dispose(),this._root.addChild(kd(n,n.orthogonalSize,n.size),ei.Distribute,0)}else this._root.addChild(t,ei.Distribute,0);this.element.appendChild(this._root.element),this.disposable.value=this._root.onDidChange(n=>{this._onDidChange.fire(n)})}next(t){return this.progmaticSelect(t)}previous(t){return this.progmaticSelect(t,!0)}getView(t){const n=t?this.getNode(t)[1]:this.root;return this._getViews(n,this.orientation)}_getViews(t,n,i){const o={height:t.height,width:t.width};if(t instanceof Mt)return{box:o,view:t.view,cachedVisibleSize:i};const r=[];for(let s=0;s<t.children.length;s++){const a=t.children[s],l=t.getChildCachedVisibleSize(s);r.push(this._getViews(a,Pn(n),l))}return{box:o,children:r}}progmaticSelect(t,n=!1){const[i,o]=this.getNode(t);if(!(o instanceof Mt))throw new Error("invalid location");for(let r=i.length-1;r>-1;r--){const s=i[r],a=t[r]||0;if(n?a-1>-1:a+1<s.children.length)return Ed(s.children[n?a-1:a+1],n)}return Ed(this.root,n)}constructor(t,n,i,o,r){this.proportionalLayout=t,this.styles=n,this._locked=!1,this._margin=0,this._maximizedNode=void 0,this.disposable=new Rn,this._onDidChange=new ie,this.onDidChange=this._onDidChange.event,this._onDidViewVisibilityChange=new ie,this.onDidViewVisibilityChange=this._onDidViewVisibilityChange.event,this._onDidMaximizedNodeChange=new ie,this.onDidMaximizedNodeChange=this._onDidMaximizedNodeChange.event,this.element=document.createElement("div"),this.element.className="dv-grid-view",this._locked=o??!1,this._margin=r??0,this.root=new ut(i,t,n,0,0,this.locked,this.margin)}isViewVisible(t){const[n,i]=so(t),[,o]=this.getNode(n);if(!(o instanceof ut))throw new Error("Invalid from location");return o.isChildVisible(i)}setViewVisible(t,n){this.hasMaximizedView()&&this.exitMaximizedView();const[i,o]=so(t),[,r]=this.getNode(i);if(!(r instanceof ut))throw new Error("Invalid from location");this._onDidViewVisibilityChange.fire(),r.setChildVisible(o,n)}moveView(t,n,i){this.hasMaximizedView()&&this.exitMaximizedView();const[,o]=this.getNode(t);if(!(o instanceof ut))throw new Error("Invalid location");o.moveChild(n,i)}addView(t,n,i){this.hasMaximizedView()&&this.exitMaximizedView();const[o,r]=so(i),[s,a]=this.getNode(o);if(a instanceof ut){const l=new Mt(t,Pn(a.orientation),a.orthogonalSize);a.addChild(l,n,r)}else{const[l,...u]=[...s].reverse(),[c,...d]=[...o].reverse();let f=0;const h=l.getChildCachedVisibleSize(c);typeof h=="number"&&(f=ei.Invisible(h)),l.removeChild(c).dispose();const m=new ut(a.orientation,this.proportionalLayout,this.styles,a.size,a.orthogonalSize,this.locked,this.margin);l.addChild(m,a.size,c);const p=new Mt(a.view,l.orientation,a.size);m.addChild(p,f,0),typeof n!="number"&&n.type==="split"&&(n={type:"split",index:0});const y=new Mt(t,l.orientation,a.size);m.addChild(y,n,r)}}remove(t,n){const i=Et(t.element);return this.removeView(i,n)}removeView(t,n){this.hasMaximizedView()&&this.exitMaximizedView();const[i,o]=so(t),[r,s]=this.getNode(i);if(!(s instanceof ut))throw new Error("Invalid location");const a=s.children[o];if(!(a instanceof Mt))throw new Error("Invalid location");if(s.removeChild(o,n),a.dispose(),s.children.length!==1)return a.view;const l=s.children[0];if(r.length===0)return l instanceof Mt||(s.removeChild(0,n),this.root=l),a.view;const[u,...c]=[...r].reverse(),[d,...f]=[...i].reverse(),h=s.isChildVisible(0);s.removeChild(0,n);const g=u.children.map((m,p)=>u.getChildSize(p));if(u.removeChild(d,n).dispose(),l instanceof ut){g.splice(d,1,...l.children.map(m=>m.size));for(let m=0;m<l.children.length;m++){const p=l.children[m];u.addChild(p,p.size,d+m)}for(;l.children.length>0;)l.removeChild(0)}else{const m=new Mt(l.view,Pn(l.orientation),l.size),p=h?l.orthogonalSize:ei.Invisible(l.orthogonalSize);u.addChild(m,p,d)}l.dispose();for(let m=0;m<g.length;m++)u.resizeChild(m,g[m]);return a.view}layout(t,n){const[i,o]=this.root.orientation===De.HORIZONTAL?[n,t]:[t,n];this.root.layout(i,o)}getNode(t,n=this.root,i=[]){if(t.length===0)return[i,n];if(!(n instanceof ut))throw new Error("Invalid location");const[o,...r]=t;if(o<0||o>=n.children.length)throw new Error("Invalid location");const s=n.children[o];return i.push(n),this.getNode(r,s,i)}}class qT extends He{get element(){return this._element}get disableResizing(){return this._disableResizing}set disableResizing(t){this._disableResizing=t}constructor(t,n=!1){super(),this._disableResizing=n,this._element=t,this.addDisposables(b0(this._element,i=>{if(this.isDisposed||this.disableResizing||!this._element.offsetParent||!RT(this._element))return;const{width:o,height:r}=i.contentRect;this.layout(o,r)}))}}const XT=C0();function sp(e){switch(e){case"left":return"left";case"right":return"right";case"above":return"top";case"below":return"bottom";case"within":default:return"center"}}class ZT extends qT{get id(){return this._id}get size(){return this._groups.size}get groups(){return Array.from(this._groups.values()).map(t=>t.value)}get width(){return this.gridview.width}get height(){return this.gridview.height}get minimumHeight(){return this.gridview.minimumHeight}get maximumHeight(){return this.gridview.maximumHeight}get minimumWidth(){return this.gridview.minimumWidth}get maximumWidth(){return this.gridview.maximumWidth}get activeGroup(){return this._activeGroup}get locked(){return this.gridview.locked}set locked(t){this.gridview.locked=t}constructor(t,n){var i;super(document.createElement("div"),n.disableAutoResizing),this._id=XT.next(),this._groups=new Map,this._onDidRemove=new ie,this.onDidRemove=this._onDidRemove.event,this._onDidAdd=new ie,this.onDidAdd=this._onDidAdd.event,this._onDidActiveChange=new ie,this.onDidActiveChange=this._onDidActiveChange.event,this._bufferOnDidLayoutChange=new tp,this.onDidLayoutChange=this._bufferOnDidLayoutChange.onEvent,this._onDidViewVisibilityChangeMicroTaskQueue=new tp,this.onDidViewVisibilityChangeMicroTaskQueue=this._onDidViewVisibilityChangeMicroTaskQueue.onEvent,this.element.style.height="100%",this.element.style.width="100%",this._classNames=new zT(this.element),this._classNames.setClassNames((i=n.className)!==null&&i!==void 0?i:""),t.appendChild(this.element),this.gridview=new KT(!!n.proportionalLayout,n.styles,n.orientation,n.locked,n.margin),this.gridview.locked=!!n.locked,this.element.appendChild(this.gridview.element),this.layout(0,0,!0),this.addDisposables(this.gridview.onDidViewVisibilityChange(()=>this._onDidViewVisibilityChangeMicroTaskQueue.fire()),this.onDidViewVisibilityChangeMicroTaskQueue(()=>{this.layout(this.width,this.height,!0)}),Vt.from(()=>{var o;(o=this.element.parentElement)===null||o===void 0||o.removeChild(this.element)}),this.gridview.onDidChange(()=>{this._bufferOnDidLayoutChange.fire()}),go.any(this.onDidAdd,this.onDidRemove,this.onDidActiveChange)(()=>{this._bufferOnDidLayoutChange.fire()}),this._bufferOnDidLayoutChange)}setVisible(t,n){this.gridview.setViewVisible(Et(t.element),n),this._bufferOnDidLayoutChange.fire()}isVisible(t){return this.gridview.isViewVisible(Et(t.element))}updateOptions(t){var n,i,o,r;t.proportionalLayout,t.orientation&&(this.gridview.orientation=t.orientation),"disableResizing"in t&&(this.disableResizing=(n=t.disableAutoResizing)!==null&&n!==void 0?n:!1),"locked"in t&&(this.locked=(i=t.locked)!==null&&i!==void 0?i:!1),"margin"in t&&(this.gridview.margin=(o=t.margin)!==null&&o!==void 0?o:0),"className"in t&&this._classNames.setClassNames((r=t.className)!==null&&r!==void 0?r:"")}maximizeGroup(t){this.gridview.maximizeView(t),this.doSetGroupActive(t)}isMaximizedGroup(t){return this.gridview.maximizedView()===t}exitMaximizedGroup(){this.gridview.exitMaximizedView()}hasMaximizedGroup(){return this.gridview.hasMaximizedView()}get onDidMaximizedGroupChange(){return this.gridview.onDidMaximizedNodeChange}doAddGroup(t,n=[0],i){this.gridview.addView(t,i??ei.Distribute,n),this._onDidAdd.fire(t)}doRemoveGroup(t,n){if(!this._groups.has(t.id))throw new Error("invalid operation");const i=this._groups.get(t.id),o=this.gridview.remove(t,ei.Distribute);if(i&&!(n!=null&&n.skipDispose)&&(i.disposable.dispose(),i.value.dispose(),this._groups.delete(t.id),this._onDidRemove.fire(t)),!(n!=null&&n.skipActive)&&this._activeGroup===t){const r=Array.from(this._groups.values());this.doSetGroupActive(r.length>0?r[0].value:void 0)}return o}getPanel(t){var n;return(n=this._groups.get(t))===null||n===void 0?void 0:n.value}doSetGroupActive(t){this._activeGroup!==t&&(this._activeGroup&&this._activeGroup.setActive(!1),t&&t.setActive(!0),this._activeGroup=t,this._onDidActiveChange.fire(t))}removeGroup(t){this.doRemoveGroup(t)}moveToNext(t){var n;if(t||(t={}),!t.group){if(!this.activeGroup)return;t.group=this.activeGroup}const i=Et(t.group.element),o=(n=this.gridview.next(i))===null||n===void 0?void 0:n.view;this.doSetGroupActive(o)}moveToPrevious(t){var n;if(t||(t={}),!t.group){if(!this.activeGroup)return;t.group=this.activeGroup}const i=Et(t.group.element),o=(n=this.gridview.previous(i))===null||n===void 0?void 0:n.view;this.doSetGroupActive(o)}layout(t,n,i){(i||t!==this.width||n!==this.height)&&(this.gridview.element.style.height=`${n}px`,this.gridview.element.style.width=`${t}px`,this.gridview.layout(t,n))}dispose(){this._onDidActiveChange.dispose(),this._onDidAdd.dispose(),this._onDidRemove.dispose();for(const t of this.groups)t.dispose();this.gridview.dispose(),super.dispose()}}class kl{get id(){return this.component.id}get width(){return this.component.width}get height(){return this.component.height}get minimumHeight(){return this.component.minimumHeight}get maximumHeight(){return this.component.maximumHeight}get minimumWidth(){return this.component.minimumWidth}get maximumWidth(){return this.component.maximumWidth}get size(){return this.component.size}get totalPanels(){return this.component.totalPanels}get gap(){return this.component.gap}get onDidActiveGroupChange(){return this.component.onDidActiveGroupChange}get onDidAddGroup(){return this.component.onDidAddGroup}get onDidRemoveGroup(){return this.component.onDidRemoveGroup}get onDidActivePanelChange(){return this.component.onDidActivePanelChange}get onDidAddPanel(){return this.component.onDidAddPanel}get onDidRemovePanel(){return this.component.onDidRemovePanel}get onDidMovePanel(){return this.component.onDidMovePanel}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidDrop(){return this.component.onDidDrop}get onWillDrop(){return this.component.onWillDrop}get onWillShowOverlay(){return this.component.onWillShowOverlay}get onWillDragGroup(){return this.component.onWillDragGroup}get onWillDragPanel(){return this.component.onWillDragPanel}get onUnhandledDragOverEvent(){return this.component.onUnhandledDragOverEvent}get panels(){return this.component.panels}get groups(){return this.component.groups}get activePanel(){return this.component.activePanel}get activeGroup(){return this.component.activeGroup}constructor(t){this.component=t}focus(){this.component.focus()}getPanel(t){return this.component.getGroupPanel(t)}layout(t,n,i=!1){this.component.layout(t,n,i)}addPanel(t){return this.component.addPanel(t)}removePanel(t){this.component.removePanel(t)}addGroup(t){return this.component.addGroup(t)}closeAllGroups(){return this.component.closeAllGroups()}removeGroup(t){this.component.removeGroup(t)}getGroup(t){return this.component.getPanel(t)}addFloatingGroup(t,n){return this.component.addFloatingGroup(t,n)}fromJSON(t){this.component.fromJSON(t)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}moveToNext(t){this.component.moveToNext(t)}moveToPrevious(t){this.component.moveToPrevious(t)}maximizeGroup(t){this.component.maximizeGroup(t.group)}hasMaximizedGroup(){return this.component.hasMaximizedGroup()}exitMaximizedGroup(){this.component.exitMaximizedGroup()}get onDidMaximizedGroupChange(){return this.component.onDidMaximizedGroupChange}addPopoutGroup(t,n){return this.component.addPopoutGroup(t,n)}setGap(t){this.component.updateOptions({gap:t})}updateOptions(t){this.component.updateOptions(t)}dispose(){this.component.dispose()}}class E0 extends He{constructor(t){super(),this.el=t,this.dataDisposable=new Rn,this.pointerEventsDisposable=new Rn,this._onDragStart=new ie,this.onDragStart=this._onDragStart.event,this.addDisposables(this._onDragStart,this.dataDisposable,this.pointerEventsDisposable),this.configure()}isCancelled(t){return!1}configure(){this.addDisposables(this._onDragStart,tt(this.el,"dragstart",t=>{if(t.defaultPrevented||this.isCancelled(t)){t.preventDefault();return}const n=El();this.pointerEventsDisposable.value={dispose:()=>{n.release()}},this.el.classList.add("dv-dragged"),setTimeout(()=>this.el.classList.remove("dv-dragged"),0),this.dataDisposable.value=this.getData(t),this._onDragStart.fire(t),t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.items.length>0||t.dataTransfer.setData("text/plain",""))}),tt(this.el,"dragend",()=>{this.pointerEventsDisposable.dispose(),this.dataDisposable.dispose()}))}}class k0 extends He{constructor(t,n){super(),this.element=t,this.callbacks=n,this.target=null,this.registerListeners()}onDragEnter(t){this.target=t.target,this.callbacks.onDragEnter(t)}onDragOver(t){t.preventDefault(),this.callbacks.onDragOver&&this.callbacks.onDragOver(t)}onDragLeave(t){this.target===t.target&&(this.target=null,this.callbacks.onDragLeave(t))}onDragEnd(t){this.target=null,this.callbacks.onDragEnd(t)}onDrop(t){this.callbacks.onDrop(t)}registerListeners(){this.addDisposables(tt(this.element,"dragenter",t=>{this.onDragEnter(t)},!0)),this.addDisposables(tt(this.element,"dragover",t=>{this.onDragOver(t)},!0)),this.addDisposables(tt(this.element,"dragleave",t=>{this.onDragLeave(t)})),this.addDisposables(tt(this.element,"dragend",t=>{this.onDragEnd(t)})),this.addDisposables(tt(this.element,"drop",t=>{this.onDrop(t)}))}}class JT extends lh{get nativeEvent(){return this.options.nativeEvent}get position(){return this.options.position}constructor(t){super(),this.options=t}}function ap(e){switch(e){case"above":return"top";case"below":return"bottom";case"left":return"left";case"right":return"right";case"within":return"center";default:throw new Error(`invalid direction '${e}'`)}}function QT(e){switch(e){case"top":return"above";case"bottom":return"below";case"left":return"left";case"right":return"right";case"center":return"within";default:throw new Error(`invalid position '${e}'`)}}const eM={value:20,type:"percentage"},tM={value:50,type:"percentage"},nM=100,iM=100;class Ri extends He{get state(){return this._state}constructor(t,n){super(),this.element=t,this.options=n,this._onDrop=new ie,this.onDrop=this._onDrop.event,this._onWillShowOverlay=new ie,this.onWillShowOverlay=this._onWillShowOverlay.event,this._acceptedTargetZonesSet=new Set(this.options.acceptedTargetZones),this.dnd=new k0(this.element,{onDragEnter:()=>{},onDragOver:i=>{if(this._acceptedTargetZonesSet.size===0){this.removeDropTarget();return}const o=this.element.clientWidth,r=this.element.clientHeight;if(o===0||r===0)return;const s=i.currentTarget.getBoundingClientRect(),a=i.clientX-s.left,l=i.clientY-s.top,u=this.calculateQuadrant(this._acceptedTargetZonesSet,a,l,o,r);if(this.isAlreadyUsed(i)||u===null){this.removeDropTarget();return}if(!this.options.canDisplayOverlay(i,u)){this.removeDropTarget();return}const c=new JT({nativeEvent:i,position:u});if(this._onWillShowOverlay.fire(c),c.defaultPrevented){this.removeDropTarget();return}this.markAsUsed(i),this.targetElement||(this.targetElement=document.createElement("div"),this.targetElement.className="dv-drop-target-dropzone",this.overlayElement=document.createElement("div"),this.overlayElement.className="dv-drop-target-selection",this._state="center",this.targetElement.appendChild(this.overlayElement),this.element.classList.add("dv-drop-target"),this.element.append(this.targetElement)),this.toggleClasses(u,o,r),this._state=u},onDragLeave:()=>{this.removeDropTarget()},onDragEnd:()=>{this.removeDropTarget()},onDrop:i=>{i.preventDefault();const o=this._state;this.removeDropTarget(),o&&(i.stopPropagation(),this._onDrop.fire({position:o,nativeEvent:i}))}}),this.addDisposables(this._onDrop,this._onWillShowOverlay,this.dnd)}setTargetZones(t){this._acceptedTargetZonesSet=new Set(t)}setOverlayModel(t){this.options.overlayModel=t}dispose(){this.removeDropTarget(),super.dispose()}markAsUsed(t){t[Ri.USED_EVENT_ID]=!0}isAlreadyUsed(t){const n=t[Ri.USED_EVENT_ID];return typeof n=="boolean"&&n}toggleClasses(t,n,i){var o,r;if(!this.overlayElement)return;const s=n<nM,a=i<iM,l=t==="left",u=t==="right",c=t==="top",d=t==="bottom",f=!s&&u,h=!s&&l,g=!a&&c,m=!a&&d;let p=1;const y=(r=(o=this.options.overlayModel)===null||o===void 0?void 0:o.size)!==null&&r!==void 0?r:tM;y.type==="percentage"?p=Qe(y.value,0,100)/100:((f||h)&&(p=Qe(0,y.value,n)/n),(g||m)&&(p=Qe(0,y.value,i)/i));const S={top:"0px",left:"0px",width:"100%",height:"100%"};f?(S.left=`${100*(1-p)}%`,S.width=`${100*p}%`):h?S.width=`${100*p}%`:g?S.height=`${100*p}%`:m&&(S.top=`${100*(1-p)}%`,S.height=`${100*p}%`),this.overlayElement.style.top=S.top,this.overlayElement.style.left=S.left,this.overlayElement.style.width=S.width,this.overlayElement.style.height=S.height,Re(this.overlayElement,"dv-drop-target-small-vertical",a),Re(this.overlayElement,"dv-drop-target-small-horizontal",s),Re(this.overlayElement,"dv-drop-target-left",l),Re(this.overlayElement,"dv-drop-target-right",u),Re(this.overlayElement,"dv-drop-target-top",c),Re(this.overlayElement,"dv-drop-target-bottom",d),Re(this.overlayElement,"dv-drop-target-center",t==="center")}calculateQuadrant(t,n,i,o,r){var s,a;const l=(a=(s=this.options.overlayModel)===null||s===void 0?void 0:s.activationSize)!==null&&a!==void 0?a:eM;return l.type==="percentage"?oM(t,n,i,o,r,l.value):rM(t,n,i,o,r,l.value)}removeDropTarget(){this.targetElement&&(this._state=void 0,this.element.removeChild(this.targetElement),this.targetElement=void 0,this.overlayElement=void 0,this.element.classList.remove("dv-drop-target"))}}Ri.USED_EVENT_ID="__dockview_droptarget_event_is_used__";function oM(e,t,n,i,o,r){const s=100*t/i,a=100*n/o;return e.has("left")&&s<r?"left":e.has("right")&&s>100-r?"right":e.has("top")&&a<r?"top":e.has("bottom")&&a>100-r?"bottom":e.has("center")?"center":null}function rM(e,t,n,i,o,r){return e.has("left")&&t<r?"left":e.has("right")&&t>i-r?"right":e.has("top")&&n<r?"top":e.has("bottom")&&n>o-r?"bottom":e.has("center")?"center":null}class A0 extends lh{constructor(){super()}}class sM extends He{get isFocused(){return this._isFocused}get isActive(){return this._isActive}get isVisible(){return this._isVisible}get width(){return this._width}get height(){return this._height}constructor(t,n){super(),this.id=t,this.component=n,this._isFocused=!1,this._isActive=!1,this._isVisible=!0,this._width=0,this._height=0,this._parameters={},this.panelUpdatesDisposable=new Rn,this._onDidDimensionChange=new ie,this.onDidDimensionsChange=this._onDidDimensionChange.event,this._onDidChangeFocus=new ie,this.onDidFocusChange=this._onDidChangeFocus.event,this._onWillFocus=new ie,this.onWillFocus=this._onWillFocus.event,this._onDidVisibilityChange=new ie,this.onDidVisibilityChange=this._onDidVisibilityChange.event,this._onWillVisibilityChange=new ie,this.onWillVisibilityChange=this._onWillVisibilityChange.event,this._onDidActiveChange=new ie,this.onDidActiveChange=this._onDidActiveChange.event,this._onActiveChange=new ie,this.onActiveChange=this._onActiveChange.event,this._onDidParametersChange=new ie,this.onDidParametersChange=this._onDidParametersChange.event,this.addDisposables(this.onDidFocusChange(i=>{this._isFocused=i.isFocused}),this.onDidActiveChange(i=>{this._isActive=i.isActive}),this.onDidVisibilityChange(i=>{this._isVisible=i.isVisible}),this.onDidDimensionsChange(i=>{this._width=i.width,this._height=i.height}),this.panelUpdatesDisposable,this._onDidDimensionChange,this._onDidChangeFocus,this._onDidVisibilityChange,this._onDidActiveChange,this._onWillFocus,this._onActiveChange,this._onWillFocus,this._onWillVisibilityChange,this._onDidParametersChange)}getParameters(){return this._parameters}initialize(t){this.panelUpdatesDisposable.value=this._onDidParametersChange.event(n=>{this._parameters=n,t.update({params:n})})}setVisible(t){this._onWillVisibilityChange.fire({isVisible:t})}setActive(){this._onActiveChange.fire()}updateParameters(t){this._onDidParametersChange.fire(t)}}class aM extends He{get element(){return this._element}get width(){return this._width}get height(){return this._height}get params(){var t;return(t=this._params)===null||t===void 0?void 0:t.params}constructor(t,n,i){super(),this.id=t,this.component=n,this.api=i,this._height=0,this._width=0,this._element=document.createElement("div"),this._element.tabIndex=-1,this._element.style.outline="none",this._element.style.height="100%",this._element.style.width="100%",this._element.style.overflow="hidden";const o=_0(this._element);this.addDisposables(this.api,o.onDidFocus(()=>{this.api._onDidChangeFocus.fire({isFocused:!0})}),o.onDidBlur(()=>{this.api._onDidChangeFocus.fire({isFocused:!1})}),o)}focus(){const t=new A0;this.api._onWillFocus.fire(t),!t.defaultPrevented&&this._element.focus()}layout(t,n){this._width=t,this._height=n,this.api._onDidDimensionChange.fire({width:t,height:n}),this.part&&this._params&&this.part.update(this._params.params)}init(t){this._params=t,this.part=this.getComponent()}update(t){var n,i;this._params=Object.assign(Object.assign({},this._params),{params:Object.assign(Object.assign({},(n=this._params)===null||n===void 0?void 0:n.params),t.params)});for(const o of Object.keys(t.params))t.params[o]===void 0&&delete this._params.params[o];(i=this.part)===null||i===void 0||i.update({params:this._params.params})}toJSON(){var t,n;const i=(n=(t=this._params)===null||t===void 0?void 0:t.params)!==null&&n!==void 0?n:{};return{id:this.id,component:this.component,params:Object.keys(i).length>0?i:void 0}}dispose(){var t;this.api.dispose(),(t=this.part)===null||t===void 0||t.dispose(),super.dispose()}}class lM extends He{get element(){return this._element}constructor(t,n){super(),this.accessor=t,this.group=n,this.disposable=new Rn,this._onDidFocus=new ie,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new ie,this.onDidBlur=this._onDidBlur.event,this._element=document.createElement("div"),this._element.className="dv-content-container",this._element.tabIndex=-1,this.addDisposables(this._onDidFocus,this._onDidBlur),this.dropTarget=new Ri(this.element,{acceptedTargetZones:["top","bottom","left","right","center"],canDisplayOverlay:(i,o)=>{if(this.group.locked==="no-drop-target"||this.group.locked&&o==="center")return!1;const r=Dt();return!r&&i.shiftKey&&this.group.location.type!=="floating"?!1:r&&r.viewId===this.accessor.id?r.groupId===this.group.id&&(o==="center"||r.panelId===null)?!1:!(this.group.panels.length===1&&r.groupId===this.group.id):this.group.canDisplayOverlay(i,o,"content")}}),this.addDisposables(this.dropTarget)}show(){this.element.style.display=""}hide(){this.element.style.display="none"}renderPanel(t,n={asActive:!0}){const i=n.asActive||this.panel&&this.group.isPanelActive(this.panel);this.panel&&this.panel.view.content.element.parentElement===this._element&&this._element.removeChild(this.panel.view.content.element),this.panel=t;let o;switch(t.api.renderer){case"onlyWhenVisible":this.group.renderContainer.detatch(t),this.panel&&i&&this._element.appendChild(this.panel.view.content.element),o=this._element;break;case"always":t.view.content.element.parentElement===this._element&&this._element.removeChild(t.view.content.element),o=this.group.renderContainer.attach({panel:t,referenceContainer:this});break;default:throw new Error(`dockview: invalid renderer type '${t.api.renderer}'`)}if(i){const r=_0(o),s=new He;s.addDisposables(r,r.onDidFocus(()=>this._onDidFocus.fire()),r.onDidBlur(()=>this._onDidBlur.fire())),this.disposable.value=s}}openPanel(t){this.panel!==t&&this.renderPanel(t)}layout(t,n){}closePanel(){var t;this.panel&&this.panel.api.renderer==="onlyWhenVisible"&&((t=this.panel.view.content.element.parentElement)===null||t===void 0||t.removeChild(this.panel.view.content.element)),this.panel=void 0}dispose(){this.disposable.dispose(),super.dispose()}}class uM extends E0{constructor(t,n,i,o){super(t),this.accessor=n,this.group=i,this.panel=o,this.panelTransfer=ko.getInstance()}getData(t){return this.panelTransfer.setData([new Ni(this.accessor.id,this.group.id,this.panel.id)],Ni.prototype),{dispose:()=>{this.panelTransfer.clearData(Ni.prototype)}}}}class cM extends He{get element(){return this._element}constructor(t,n,i){super(),this.panel=t,this.accessor=n,this.group=i,this.content=void 0,this._onChanged=new ie,this.onChanged=this._onChanged.event,this._onDropped=new ie,this.onDrop=this._onDropped.event,this._onDragStart=new ie,this.onDragStart=this._onDragStart.event,this._element=document.createElement("div"),this._element.className="dv-tab",this._element.tabIndex=0,this._element.draggable=!0,Re(this.element,"dv-inactive-tab",!0);const o=new uM(this._element,this.accessor,this.group,this.panel);this.dropTarget=new Ri(this._element,{acceptedTargetZones:["center"],canDisplayOverlay:(r,s)=>{if(this.group.locked)return!1;const a=Dt();return a&&this.accessor.id===a.viewId?a.panelId===null&&a.groupId===this.group.id?!1:this.panel.id!==a.panelId:this.group.model.canDisplayOverlay(r,s,"tab")}}),this.onWillShowOverlay=this.dropTarget.onWillShowOverlay,this.addDisposables(this._onChanged,this._onDropped,this._onDragStart,o.onDragStart(r=>{this._onDragStart.fire(r)}),o,tt(this._element,"pointerdown",r=>{r.defaultPrevented||this._onChanged.fire(r)}),this.dropTarget.onDrop(r=>{this._onDropped.fire(r)}),this.dropTarget)}setActive(t){Re(this.element,"dv-active-tab",t),Re(this.element,"dv-inactive-tab",!t)}setContent(t){this.content&&this._element.removeChild(this.content.element),this.content=t,this._element.appendChild(this.content.element)}dispose(){super.dispose()}}function dM(e,t){w0(t,"dv-dragged"),document.body.appendChild(t),e.setDragImage(t,0,0),setTimeout(()=>{Cd(t,"dv-dragged"),t.remove()},0)}class fM extends E0{constructor(t,n,i){super(t),this.accessor=n,this.group=i,this.panelTransfer=ko.getInstance(),this.addDisposables(tt(t,"pointerdown",o=>{o.shiftKey&&OT(o)},!0))}isCancelled(t){return this.group.api.location.type==="floating"&&!t.shiftKey}getData(t){const n=t.dataTransfer;this.panelTransfer.setData([new Ni(this.accessor.id,this.group.id,null)],Ni.prototype);const i=window.getComputedStyle(this.el),o=i.getPropertyValue("--dv-activegroup-visiblepanel-tab-background-color"),r=i.getPropertyValue("--dv-activegroup-visiblepanel-tab-color");if(n){const s=document.createElement("div");s.style.backgroundColor=o,s.style.color=r,s.style.padding="2px 8px",s.style.height="24px",s.style.fontSize="11px",s.style.lineHeight="20px",s.style.borderRadius="12px",s.style.position="absolute",s.textContent=`Multiple Panels (${this.group.size})`,dM(n,s)}return{dispose:()=>{this.panelTransfer.clearData(Ni.prototype)}}}}class hM extends He{get element(){return this._element}constructor(t,n){super(),this.accessor=t,this.group=n,this._onDrop=new ie,this.onDrop=this._onDrop.event,this._onDragStart=new ie,this.onDragStart=this._onDragStart.event,this._element=document.createElement("div"),this._element.className="dv-void-container",this._element.tabIndex=0,this._element.draggable=!0,this.addDisposables(this._onDrop,this._onDragStart,tt(this._element,"pointerdown",()=>{this.accessor.doSetGroupActive(this.group)}));const i=new fM(this._element,t,n);this.dropTraget=new Ri(this._element,{acceptedTargetZones:["center"],canDisplayOverlay:(o,r)=>{var s;const a=Dt();return a&&this.accessor.id===a.viewId?a.panelId===null&&a.groupId===this.group.id?!1:((s=BT(this.group.panels))===null||s===void 0?void 0:s.id)!==a.panelId:n.model.canDisplayOverlay(o,r,"header_space")}}),this.onWillShowOverlay=this.dropTraget.onWillShowOverlay,this.addDisposables(i,i.onDragStart(o=>{this._onDragStart.fire(o)}),this.dropTraget.onDrop(o=>{this._onDrop.fire(o)}),this.dropTraget)}}class mM extends He{get panels(){return this.tabs.map(t=>t.value.panel.id)}get size(){return this.tabs.length}get hidden(){return this._hidden}set hidden(t){this._hidden=t,this.element.style.display=t?"none":""}show(){this.hidden||(this.element.style.display="")}hide(){this._element.style.display="none"}setRightActionsElement(t){this.rightActions!==t&&(this.rightActions&&(this.rightActions.remove(),this.rightActions=void 0),t&&(this.rightActionsContainer.appendChild(t),this.rightActions=t))}setLeftActionsElement(t){this.leftActions!==t&&(this.leftActions&&(this.leftActions.remove(),this.leftActions=void 0),t&&(this.leftActionsContainer.appendChild(t),this.leftActions=t))}setPrefixActionsElement(t){this.preActions!==t&&(this.preActions&&(this.preActions.remove(),this.preActions=void 0),t&&(this.preActionsContainer.appendChild(t),this.preActions=t))}get element(){return this._element}isActive(t){return this.selectedIndex>-1&&this.tabs[this.selectedIndex].value===t}indexOf(t){return this.tabs.findIndex(n=>n.value.panel.id===t)}constructor(t,n){super(),this.accessor=t,this.group=n,this.tabs=[],this.selectedIndex=-1,this._hidden=!1,this._onDrop=new ie,this.onDrop=this._onDrop.event,this._onTabDragStart=new ie,this.onTabDragStart=this._onTabDragStart.event,this._onGroupDragStart=new ie,this.onGroupDragStart=this._onGroupDragStart.event,this._onWillShowOverlay=new ie,this.onWillShowOverlay=this._onWillShowOverlay.event,this._element=document.createElement("div"),this._element.className="dv-tabs-and-actions-container",Re(this._element,"dv-full-width-single-tab",this.accessor.options.singleTabMode==="fullwidth"),this.rightActionsContainer=document.createElement("div"),this.rightActionsContainer.className="dv-right-actions-container",this.leftActionsContainer=document.createElement("div"),this.leftActionsContainer.className="dv-left-actions-container",this.preActionsContainer=document.createElement("div"),this.preActionsContainer.className="dv-pre-actions-container",this.tabContainer=document.createElement("div"),this.tabContainer.className="dv-tabs-container",this.voidContainer=new hM(this.accessor,this.group),this._element.appendChild(this.preActionsContainer),this._element.appendChild(this.tabContainer),this._element.appendChild(this.leftActionsContainer),this._element.appendChild(this.voidContainer.element),this._element.appendChild(this.rightActionsContainer),this.addDisposables(this.accessor.onDidAddPanel(i=>{i.api.group===this.group&&Re(this._element,"dv-single-tab",this.size===1)}),this.accessor.onDidRemovePanel(i=>{i.api.group===this.group&&Re(this._element,"dv-single-tab",this.size===1)}),this._onWillShowOverlay,this._onDrop,this._onTabDragStart,this._onGroupDragStart,this.voidContainer,this.voidContainer.onDragStart(i=>{this._onGroupDragStart.fire({nativeEvent:i,group:this.group})}),this.voidContainer.onDrop(i=>{this._onDrop.fire({event:i.nativeEvent,index:this.tabs.length})}),this.voidContainer.onWillShowOverlay(i=>{this._onWillShowOverlay.fire(new Al(i,{kind:"header_space",panel:this.group.activePanel,api:this.accessor.api,group:this.group,getData:Dt}))}),tt(this.voidContainer.element,"pointerdown",i=>{if(!this.accessor.options.disableFloatingGroups&&i.shiftKey&&this.group.api.location.type!=="floating"){i.preventDefault();const{top:r,left:s}=this.element.getBoundingClientRect(),{top:a,left:l}=this.accessor.element.getBoundingClientRect();this.accessor.addFloatingGroup(this.group,{x:s-l+20,y:r-a+20,inDragMode:!0})}}),tt(this.tabContainer,"pointerdown",i=>{if(i.defaultPrevented)return;i.button===0&&this.accessor.doSetGroupActive(this.group)}))}setActive(t){}addTab(t,n=this.tabs.length){if(n<0||n>this.tabs.length)throw new Error("invalid location");this.tabContainer.insertBefore(t.value.element,this.tabContainer.children[n]),this.tabs=[...this.tabs.slice(0,n),t,...this.tabs.slice(n)],this.selectedIndex<0&&(this.selectedIndex=n)}delete(t){const n=this.tabs.findIndex(s=>s.value.panel.id===t),i=this.tabs.splice(n,1)[0],{value:o,disposable:r}=i;r.dispose(),o.dispose(),o.element.remove()}setActivePanel(t){this.tabs.forEach(n=>{const i=t.id===n.value.panel.id;n.value.setActive(i)})}openPanel(t,n=this.tabs.length){if(this.tabs.find(s=>s.value.panel.id===t.id))return;const i=new cM(t,this.accessor,this.group);i.setContent(t.view.tab);const o=new He(i.onDragStart(s=>{this._onTabDragStart.fire({nativeEvent:s,panel:t})}),i.onChanged(s=>{const a=!this.accessor.options.disableFloatingGroups,l=this.group.api.location.type==="floating"&&this.size===1;if(a&&!l&&s.shiftKey){s.preventDefault();const c=this.accessor.getGroupPanel(i.panel.id),{top:d,left:f}=i.element.getBoundingClientRect(),{top:h,left:g}=this.accessor.element.getBoundingClientRect();this.accessor.addFloatingGroup(c,{x:f-g,y:d-h,inDragMode:!0});return}!(s.button===0)||s.defaultPrevented||this.group.activePanel!==t&&this.group.model.openPanel(t)}),i.onDrop(s=>{this._onDrop.fire({event:s.nativeEvent,index:this.tabs.findIndex(a=>a.value===i)})}),i.onWillShowOverlay(s=>{this._onWillShowOverlay.fire(new Al(s,{kind:"tab",panel:this.group.activePanel,api:this.accessor.api,group:this.group,getData:Dt}))})),r={value:i,disposable:o};this.addTab(r,n)}closePanel(t){this.delete(t.id)}dispose(){super.dispose();for(const{value:t,disposable:n}of this.tabs)n.dispose(),t.dispose();this.tabs=[]}}class D0{get isAccepted(){return this._isAccepted}constructor(t,n,i,o,r){this.nativeEvent=t,this.target=n,this.position=i,this.getData=o,this.group=r,this._isAccepted=!1}accept(){this._isAccepted=!0}}const lp=Object.keys({disableAutoResizing:void 0,hideBorders:void 0,singleTabMode:void 0,disableFloatingGroups:void 0,floatingGroupBounds:void 0,popoutUrl:void 0,defaultRenderer:void 0,debug:void 0,rootOverlayModel:void 0,locked:void 0,disableDnd:void 0,gap:void 0,className:void 0});function gM(e){return!!e.referencePanel}function pM(e){return!!e.referenceGroup}function vM(e){return!!e.referencePanel}function yM(e){return!!e.referenceGroup}class uh extends lh{get nativeEvent(){return this.options.nativeEvent}get position(){return this.options.position}get panel(){return this.options.panel}get group(){return this.options.group}get api(){return this.options.api}constructor(t){super(),this.options=t}getData(){return this.options.getData()}}class P0 extends uh{get kind(){return this._kind}constructor(t){super(t),this._kind=t.kind}}class Al{get kind(){return this.options.kind}get nativeEvent(){return this.event.nativeEvent}get position(){return this.event.position}get defaultPrevented(){return this.event.defaultPrevented}get panel(){return this.options.panel}get api(){return this.options.api}get group(){return this.options.group}preventDefault(){this.event.preventDefault()}getData(){return this.options.getData()}constructor(t,n){this.event=t,this.options=n}}class bM extends He{get element(){throw new Error("dockview: not supported")}get activePanel(){return this._activePanel}get locked(){return this._locked}set locked(t){this._locked=t,Re(this.container,"dv-locked-groupview",t==="no-drop-target"||t)}get isActive(){return this._isGroupActive}get panels(){return this._panels}get size(){return this._panels.length}get isEmpty(){return this._panels.length===0}get hasWatermark(){return!!(this.watermark&&this.container.contains(this.watermark.element))}get header(){return this.tabsContainer}get isContentFocused(){return document.activeElement?xd(document.activeElement,this.contentContainer.element):!1}get location(){return this._location}set location(t){switch(this._location=t,Re(this.container,"dv-groupview-floating",!1),Re(this.container,"dv-groupview-popout",!1),t.type){case"grid":this.contentContainer.dropTarget.setTargetZones(["top","bottom","left","right","center"]);break;case"floating":this.contentContainer.dropTarget.setTargetZones(["center"]),this.contentContainer.dropTarget.setTargetZones(t?["center"]:["top","bottom","left","right","center"]),Re(this.container,"dv-groupview-floating",!0);break;case"popout":this.contentContainer.dropTarget.setTargetZones(["center"]),Re(this.container,"dv-groupview-popout",!0);break}this.groupPanel.api._onDidLocationChange.fire({location:this.location})}constructor(t,n,i,o,r){var s;super(),this.container=t,this.accessor=n,this.id=i,this.options=o,this.groupPanel=r,this._isGroupActive=!1,this._locked=!1,this._location={type:"grid"},this.mostRecentlyUsed=[],this._overwriteRenderContainer=null,this._onDidChange=new ie,this.onDidChange=this._onDidChange.event,this._width=0,this._height=0,this._panels=[],this._panelDisposables=new Map,this._onMove=new ie,this.onMove=this._onMove.event,this._onDidDrop=new ie,this.onDidDrop=this._onDidDrop.event,this._onWillDrop=new ie,this.onWillDrop=this._onWillDrop.event,this._onWillShowOverlay=new ie,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onTabDragStart=new ie,this.onTabDragStart=this._onTabDragStart.event,this._onGroupDragStart=new ie,this.onGroupDragStart=this._onGroupDragStart.event,this._onDidAddPanel=new ie,this.onDidAddPanel=this._onDidAddPanel.event,this._onDidPanelTitleChange=new ie,this.onDidPanelTitleChange=this._onDidPanelTitleChange.event,this._onDidPanelParametersChange=new ie,this.onDidPanelParametersChange=this._onDidPanelParametersChange.event,this._onDidRemovePanel=new ie,this.onDidRemovePanel=this._onDidRemovePanel.event,this._onDidActivePanelChange=new ie,this.onDidActivePanelChange=this._onDidActivePanelChange.event,this._onUnhandledDragOverEvent=new ie,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,Re(this.container,"dv-groupview",!0),this._api=new kl(this.accessor),this.tabsContainer=new mM(this.accessor,this.groupPanel),this.contentContainer=new lM(this.accessor,this),t.append(this.tabsContainer.element,this.contentContainer.element),this.header.hidden=!!o.hideHeader,this.locked=(s=o.locked)!==null&&s!==void 0?s:!1,this.addDisposables(this._onTabDragStart,this._onGroupDragStart,this._onWillShowOverlay,this.tabsContainer.onTabDragStart(a=>{this._onTabDragStart.fire(a)}),this.tabsContainer.onGroupDragStart(a=>{this._onGroupDragStart.fire(a)}),this.tabsContainer.onDrop(a=>{this.handleDropEvent("header",a.event,"center",a.index)}),this.contentContainer.onDidFocus(()=>{this.accessor.doSetGroupActive(this.groupPanel)}),this.contentContainer.onDidBlur(()=>{}),this.contentContainer.dropTarget.onDrop(a=>{this.handleDropEvent("content",a.nativeEvent,a.position)}),this.tabsContainer.onWillShowOverlay(a=>{this._onWillShowOverlay.fire(a)}),this.contentContainer.dropTarget.onWillShowOverlay(a=>{this._onWillShowOverlay.fire(new Al(a,{kind:"content",panel:this.activePanel,api:this._api,group:this.groupPanel,getData:Dt}))}),this._onMove,this._onDidChange,this._onDidDrop,this._onWillDrop,this._onDidAddPanel,this._onDidRemovePanel,this._onDidActivePanelChange,this._onUnhandledDragOverEvent)}focusContent(){this.contentContainer.element.focus()}set renderContainer(t){this.panels.forEach(n=>{this.renderContainer.detatch(n)}),this._overwriteRenderContainer=t,this.panels.forEach(n=>{this.rerender(n)})}get renderContainer(){var t;return(t=this._overwriteRenderContainer)!==null&&t!==void 0?t:this.accessor.overlayRenderContainer}initialize(){this.options.panels&&this.options.panels.forEach(t=>{this.doAddPanel(t)}),this.options.activePanel&&this.openPanel(this.options.activePanel),this.setActive(this.isActive,!0),this.updateContainer(),this.accessor.options.createRightHeaderActionComponent&&(this._rightHeaderActions=this.accessor.options.createRightHeaderActionComponent(this.groupPanel),this.addDisposables(this._rightHeaderActions),this._rightHeaderActions.init({containerApi:this._api,api:this.groupPanel.api,group:this.groupPanel}),this.tabsContainer.setRightActionsElement(this._rightHeaderActions.element)),this.accessor.options.createLeftHeaderActionComponent&&(this._leftHeaderActions=this.accessor.options.createLeftHeaderActionComponent(this.groupPanel),this.addDisposables(this._leftHeaderActions),this._leftHeaderActions.init({containerApi:this._api,api:this.groupPanel.api,group:this.groupPanel}),this.tabsContainer.setLeftActionsElement(this._leftHeaderActions.element)),this.accessor.options.createPrefixHeaderActionComponent&&(this._prefixHeaderActions=this.accessor.options.createPrefixHeaderActionComponent(this.groupPanel),this.addDisposables(this._prefixHeaderActions),this._prefixHeaderActions.init({containerApi:this._api,api:this.groupPanel.api,group:this.groupPanel}),this.tabsContainer.setPrefixActionsElement(this._prefixHeaderActions.element))}rerender(t){this.contentContainer.renderPanel(t,{asActive:!1})}indexOf(t){return this.tabsContainer.indexOf(t.id)}toJSON(){var t;const n={views:this.tabsContainer.panels,activeView:(t=this._activePanel)===null||t===void 0?void 0:t.id,id:this.id};return this.locked!==!1&&(n.locked=this.locked),this.header.hidden&&(n.hideHeader=!0),n}moveToNext(t){t||(t={}),t.panel||(t.panel=this.activePanel);const n=t.panel?this.panels.indexOf(t.panel):-1;let i;if(n<this.panels.length-1)i=n+1;else if(!t.suppressRoll)i=0;else return;this.openPanel(this.panels[i])}moveToPrevious(t){if(t||(t={}),t.panel||(t.panel=this.activePanel),!t.panel)return;const n=this.panels.indexOf(t.panel);let i;if(n>0)i=n-1;else if(!t.suppressRoll)i=this.panels.length-1;else return;this.openPanel(this.panels[i])}containsPanel(t){return this.panels.includes(t)}init(t){}update(t){}focus(){var t;(t=this._activePanel)===null||t===void 0||t.focus()}openPanel(t,n={}){(typeof n.index!="number"||n.index>this.panels.length)&&(n.index=this.panels.length);const i=!!n.skipSetActive;if(t.updateParentGroup(this.groupPanel,{skipSetActive:n.skipSetActive}),this.doAddPanel(t,n.index,{skipSetActive:i}),this._activePanel===t){this.contentContainer.renderPanel(t,{asActive:!0});return}i||this.doSetActivePanel(t),n.skipSetGroupActive||this.accessor.doSetGroupActive(this.groupPanel),n.skipSetActive||this.updateContainer()}removePanel(t,n={skipSetActive:!1}){const i=typeof t=="string"?t:t.id,o=this._panels.find(r=>r.id===i);if(!o)throw new Error("invalid operation");return this._removePanel(o,n)}closeAllPanels(){if(this.panels.length>0){const t=[...this.panels];for(const n of t)this.doClose(n)}else this.accessor.removeGroup(this.groupPanel)}closePanel(t){this.doClose(t)}doClose(t){this.accessor.removePanel(t)}isPanelActive(t){return this._activePanel===t}updateActions(t){this.tabsContainer.setRightActionsElement(t)}setActive(t,n=!1){!n&&this.isActive===t||(this._isGroupActive=t,Re(this.container,"dv-active-group",t),Re(this.container,"dv-inactive-group",!t),this.tabsContainer.setActive(this.isActive),!this._activePanel&&this.panels.length>0&&this.doSetActivePanel(this.panels[0]),this.updateContainer())}layout(t,n){var i;this._width=t,this._height=n,this.contentContainer.layout(this._width,this._height),!((i=this._activePanel)===null||i===void 0)&&i.layout&&this._activePanel.layout(this._width,this._height)}_removePanel(t,n){const i=this._activePanel===t;if(this.doRemovePanel(t),i&&this.panels.length>0){const o=this.mostRecentlyUsed[0];this.openPanel(o,{skipSetActive:n.skipSetActive,skipSetGroupActive:n.skipSetActiveGroup})}return this._activePanel&&this.panels.length===0&&this.doSetActivePanel(void 0),n.skipSetActive||this.updateContainer(),t}doRemovePanel(t){const n=this.panels.indexOf(t);if(this._activePanel===t&&this.contentContainer.closePanel(),this.tabsContainer.delete(t.id),this._panels.splice(n,1),this.mostRecentlyUsed.includes(t)){const o=this.mostRecentlyUsed.indexOf(t);this.mostRecentlyUsed.splice(o,1)}const i=this._panelDisposables.get(t.id);i&&(i.dispose(),this._panelDisposables.delete(t.id)),this._onDidRemovePanel.fire({panel:t})}doAddPanel(t,n=this.panels.length,i={skipSetActive:!1}){const r=this._panels.indexOf(t)>-1;this.tabsContainer.show(),this.contentContainer.show(),this.tabsContainer.openPanel(t,n),i.skipSetActive||this.contentContainer.openPanel(t),!r&&(this.updateMru(t),this.panels.splice(n,0,t),this._panelDisposables.set(t.id,new He(t.api.onDidTitleChange(s=>this._onDidPanelTitleChange.fire(s)),t.api.onDidParametersChange(s=>this._onDidPanelParametersChange.fire(s)))),this._onDidAddPanel.fire({panel:t}))}doSetActivePanel(t){this._activePanel!==t&&(this._activePanel=t,t&&(this.tabsContainer.setActivePanel(t),t.layout(this._width,this._height),this.updateMru(t),this._onDidActivePanelChange.fire({panel:t})))}updateMru(t){this.mostRecentlyUsed.includes(t)&&this.mostRecentlyUsed.splice(this.mostRecentlyUsed.indexOf(t),1),this.mostRecentlyUsed=[t,...this.mostRecentlyUsed]}updateContainer(){var t,n;if(Re(this.container,"dv-empty",this.isEmpty),this.panels.forEach(i=>i.runEvents()),this.isEmpty&&!this.watermark){const i=this.accessor.createWatermarkComponent();i.init({containerApi:this._api,group:this.groupPanel}),this.watermark=i,tt(this.watermark.element,"pointerdown",()=>{this.isActive||this.accessor.doSetGroupActive(this.groupPanel)}),this.tabsContainer.hide(),this.contentContainer.element.appendChild(this.watermark.element)}!this.isEmpty&&this.watermark&&(this.watermark.element.remove(),(n=(t=this.watermark).dispose)===null||n===void 0||n.call(t),this.watermark=void 0,this.tabsContainer.show())}canDisplayOverlay(t,n,i){const o=new D0(t,i,n,Dt,this.accessor.getPanel(this.id));return this._onUnhandledDragOverEvent.fire(o),o.isAccepted}handleDropEvent(t,n,i,o){if(this.locked==="no-drop-target")return;function r(){switch(t){case"header":return typeof o=="number"?"tab":"header_space";case"content":return"content"}}const s=typeof o=="number"?this.panels[o]:void 0,a=new P0({nativeEvent:n,position:i,panel:s,getData:()=>Dt(),kind:r(),group:this.groupPanel,api:this._api});if(this._onWillDrop.fire(a),a.defaultPrevented)return;const l=Dt();if(l&&l.viewId===this.accessor.id){if(l.panelId===null){const{groupId:h}=l;this._onMove.fire({target:i,groupId:h,index:o});return}if(this.tabsContainer.indexOf(l.panelId)!==-1&&this.tabsContainer.size===1)return;const{groupId:c,panelId:d}=l;if(this.id===c&&!i&&this.tabsContainer.indexOf(d)===o)return;this._onMove.fire({target:i,groupId:l.groupId,itemId:l.panelId,index:o})}else this._onDidDrop.fire(new uh({nativeEvent:n,position:i,panel:s,getData:()=>Dt(),group:this.groupPanel,api:this._api}))}dispose(){var t,n,i;super.dispose(),(t=this.watermark)===null||t===void 0||t.element.remove(),(i=(n=this.watermark)===null||n===void 0?void 0:n.dispose)===null||i===void 0||i.call(n),this.watermark=void 0;for(const o of this.panels)o.dispose();this.tabsContainer.dispose(),this.contentContainer.dispose()}}class ch extends sM{constructor(t,n,i){super(t,n),this._onDidConstraintsChangeInternal=new ie,this.onDidConstraintsChangeInternal=this._onDidConstraintsChangeInternal.event,this._onDidConstraintsChange=new ie,this.onDidConstraintsChange=this._onDidConstraintsChange.event,this._onDidSizeChange=new ie,this.onDidSizeChange=this._onDidSizeChange.event,this.addDisposables(this._onDidConstraintsChangeInternal,this._onDidConstraintsChange,this._onDidSizeChange),i&&this.initialize(i)}setConstraints(t){this._onDidConstraintsChangeInternal.fire(t)}setSize(t){this._onDidSizeChange.fire(t)}}class wM extends aM{get priority(){return this._priority}get snap(){return this._snap}get minimumWidth(){return this.__minimumWidth()}get minimumHeight(){return this.__minimumHeight()}get maximumHeight(){return this.__maximumHeight()}get maximumWidth(){return this.__maximumWidth()}__minimumWidth(){const t=typeof this._minimumWidth=="function"?this._minimumWidth():this._minimumWidth;return t!==this._evaluatedMinimumWidth&&(this._evaluatedMinimumWidth=t,this.updateConstraints()),t}__maximumWidth(){const t=typeof this._maximumWidth=="function"?this._maximumWidth():this._maximumWidth;return t!==this._evaluatedMaximumWidth&&(this._evaluatedMaximumWidth=t,this.updateConstraints()),t}__minimumHeight(){const t=typeof this._minimumHeight=="function"?this._minimumHeight():this._minimumHeight;return t!==this._evaluatedMinimumHeight&&(this._evaluatedMinimumHeight=t,this.updateConstraints()),t}__maximumHeight(){const t=typeof this._maximumHeight=="function"?this._maximumHeight():this._maximumHeight;return t!==this._evaluatedMaximumHeight&&(this._evaluatedMaximumHeight=t,this.updateConstraints()),t}get isActive(){return this.api.isActive}get isVisible(){return this.api.isVisible}constructor(t,n,i,o){super(t,n,o??new ch(t,n)),this._evaluatedMinimumWidth=0,this._evaluatedMaximumWidth=Number.MAX_SAFE_INTEGER,this._evaluatedMinimumHeight=0,this._evaluatedMaximumHeight=Number.MAX_SAFE_INTEGER,this._minimumWidth=0,this._minimumHeight=0,this._maximumWidth=Number.MAX_SAFE_INTEGER,this._maximumHeight=Number.MAX_SAFE_INTEGER,this._snap=!1,this._onDidChange=new ie,this.onDidChange=this._onDidChange.event,typeof(i==null?void 0:i.minimumWidth)=="number"&&(this._minimumWidth=i.minimumWidth),typeof(i==null?void 0:i.maximumWidth)=="number"&&(this._maximumWidth=i.maximumWidth),typeof(i==null?void 0:i.minimumHeight)=="number"&&(this._minimumHeight=i.minimumHeight),typeof(i==null?void 0:i.maximumHeight)=="number"&&(this._maximumHeight=i.maximumHeight),this.api.initialize(this),this.addDisposables(this.api.onWillVisibilityChange(r=>{const{isVisible:s}=r,{accessor:a}=this._params;a.setVisible(this,s)}),this.api.onActiveChange(()=>{const{accessor:r}=this._params;r.doSetGroupActive(this)}),this.api.onDidConstraintsChangeInternal(r=>{(typeof r.minimumWidth=="number"||typeof r.minimumWidth=="function")&&(this._minimumWidth=r.minimumWidth),(typeof r.minimumHeight=="number"||typeof r.minimumHeight=="function")&&(this._minimumHeight=r.minimumHeight),(typeof r.maximumWidth=="number"||typeof r.maximumWidth=="function")&&(this._maximumWidth=r.maximumWidth),(typeof r.maximumHeight=="number"||typeof r.maximumHeight=="function")&&(this._maximumHeight=r.maximumHeight)}),this.api.onDidSizeChange(r=>{this._onDidChange.fire({height:r.height,width:r.width})}),this._onDidChange)}setVisible(t){this.api._onDidVisibilityChange.fire({isVisible:t})}setActive(t){this.api._onDidActiveChange.fire({isActive:t})}init(t){t.maximumHeight&&(this._maximumHeight=t.maximumHeight),t.minimumHeight&&(this._minimumHeight=t.minimumHeight),t.maximumWidth&&(this._maximumWidth=t.maximumWidth),t.minimumWidth&&(this._minimumWidth=t.minimumWidth),this._priority=t.priority,this._snap=!!t.snap,super.init(t),typeof t.isVisible=="boolean"&&this.setVisible(t.isVisible)}updateConstraints(){this.api._onDidConstraintsChange.fire({minimumWidth:this._evaluatedMinimumWidth,maximumWidth:this._evaluatedMaximumWidth,minimumHeight:this._evaluatedMinimumHeight,maximumHeight:this._evaluatedMaximumHeight})}toJSON(){const t=super.toJSON(),n=o=>o===Number.MAX_SAFE_INTEGER?void 0:o,i=o=>o<=0?void 0:o;return Object.assign(Object.assign({},t),{minimumHeight:i(this.minimumHeight),maximumHeight:n(this.maximumHeight),minimumWidth:i(this.minimumWidth),maximumWidth:n(this.maximumWidth),snap:this.snap,priority:this.priority})}}const $r="dockview: DockviewGroupPanelApiImpl not initialized";class _M extends ch{get location(){if(!this._group)throw new Error($r);return this._group.model.location}constructor(t,n){super(t,"__dockviewgroup__"),this.accessor=n,this._mutableDisposable=new Rn,this._onDidLocationChange=new ie,this.onDidLocationChange=this._onDidLocationChange.event,this._onDidActivePanelChange=new ie,this.onDidActivePanelChange=this._onDidActivePanelChange.event,this.addDisposables(this._onDidLocationChange,this._onDidActivePanelChange,this._mutableDisposable)}close(){if(this._group)return this.accessor.removeGroup(this._group)}getWindow(){return this.location.type==="popout"?this.location.getWindow():window}moveTo(t){var n,i,o;if(!this._group)throw new Error($r);const r=(n=t.group)!==null&&n!==void 0?n:this.accessor.addGroup({direction:QT((i=t.position)!==null&&i!==void 0?i:"right"),skipSetActive:!0});this.accessor.moveGroupOrPanel({from:{groupId:this._group.id},to:{group:r,position:t.group&&(o=t.position)!==null&&o!==void 0?o:"center",index:t.index}})}maximize(){if(!this._group)throw new Error($r);this.location.type==="grid"&&this.accessor.maximizeGroup(this._group)}isMaximized(){if(!this._group)throw new Error($r);return this.accessor.isMaximizedGroup(this._group)}exitMaximized(){if(!this._group)throw new Error($r);this.isMaximized()&&this.accessor.exitMaximizedGroup()}initialize(t){this._group=t,queueMicrotask(()=>{this._mutableDisposable.value=this._group.model.onDidActivePanelChange(n=>{this._onDidActivePanelChange.fire(n)})})}}const SM=100,CM=100;class up extends wM{get minimumWidth(){var t;const n=(t=this.activePanel)===null||t===void 0?void 0:t.minimumWidth;return typeof n=="number"?n:super.__minimumWidth()}get minimumHeight(){var t;const n=(t=this.activePanel)===null||t===void 0?void 0:t.minimumHeight;return typeof n=="number"?n:super.__minimumHeight()}get maximumWidth(){var t;const n=(t=this.activePanel)===null||t===void 0?void 0:t.maximumWidth;return typeof n=="number"?n:super.__maximumWidth()}get maximumHeight(){var t;const n=(t=this.activePanel)===null||t===void 0?void 0:t.maximumHeight;return typeof n=="number"?n:super.__maximumHeight()}get panels(){return this._model.panels}get activePanel(){return this._model.activePanel}get size(){return this._model.size}get model(){return this._model}get locked(){return this._model.locked}set locked(t){this._model.locked=t}get header(){return this._model.header}constructor(t,n,i){var o,r,s,a,l,u;super(n,"groupview_default",{minimumHeight:(r=(o=i.constraints)===null||o===void 0?void 0:o.minimumHeight)!==null&&r!==void 0?r:CM,minimumWidth:(a=(s=i.constraints)===null||s===void 0?void 0:s.maximumHeight)!==null&&a!==void 0?a:SM,maximumHeight:(l=i.constraints)===null||l===void 0?void 0:l.maximumHeight,maximumWidth:(u=i.constraints)===null||u===void 0?void 0:u.maximumWidth},new _M(n,t)),this.api.initialize(this),this._model=new bM(this.element,t,n,i,this)}focus(){this.api.isActive||this.api.setActive(),super.focus()}initialize(){this._model.initialize()}setActive(t){super.setActive(t),this.model.setActive(t)}layout(t,n){super.layout(t,n),this.model.layout(t,n)}getComponent(){return this._model}toJSON(){return this.model.toJSON()}}class xM extends ch{get location(){return this.group.api.location}get title(){return this.panel.title}get isGroupActive(){return this.group.isActive}get renderer(){return this.panel.renderer}set group(t){const n=this._group;this._group!==t&&(this._group=t,this._onDidGroupChange.fire({}),this.setupGroupEventListeners(n),this._onDidLocationChange.fire({location:this.group.api.location}))}get group(){return this._group}get tabComponent(){return this._tabComponent}constructor(t,n,i,o,r){super(t.id,o),this.panel=t,this.accessor=i,this._onDidTitleChange=new ie,this.onDidTitleChange=this._onDidTitleChange.event,this._onDidActiveGroupChange=new ie,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._onDidGroupChange=new ie,this.onDidGroupChange=this._onDidGroupChange.event,this._onDidRendererChange=new ie,this.onDidRendererChange=this._onDidRendererChange.event,this._onDidLocationChange=new ie,this.onDidLocationChange=this._onDidLocationChange.event,this.groupEventsDisposable=new Rn,this._tabComponent=r,this.initialize(t),this._group=n,this.setupGroupEventListeners(),this.addDisposables(this.groupEventsDisposable,this._onDidRendererChange,this._onDidTitleChange,this._onDidGroupChange,this._onDidActiveGroupChange,this._onDidLocationChange)}getWindow(){return this.group.api.getWindow()}moveTo(t){var n,i;this.accessor.moveGroupOrPanel({from:{groupId:this._group.id,panelId:this.panel.id},to:{group:(n=t.group)!==null&&n!==void 0?n:this._group,position:t.group&&(i=t.position)!==null&&i!==void 0?i:"center",index:t.index}})}setTitle(t){this.panel.setTitle(t)}setRenderer(t){this.panel.setRenderer(t)}close(){this.group.model.closePanel(this.panel)}maximize(){this.group.api.maximize()}isMaximized(){return this.group.api.isMaximized()}exitMaximized(){this.group.api.exitMaximized()}setupGroupEventListeners(t){var n;let i=(n=t==null?void 0:t.isActive)!==null&&n!==void 0?n:!1;this.groupEventsDisposable.value=new He(this.group.api.onDidVisibilityChange(o=>{const r=!o.isVisible&&this.isVisible,s=o.isVisible&&!this.isVisible,a=this.group.model.isPanelActive(this.panel);(r||s&&a)&&this._onDidVisibilityChange.fire(o)}),this.group.api.onDidLocationChange(o=>{this.group===this.panel.group&&this._onDidLocationChange.fire(o)}),this.group.api.onDidActiveChange(()=>{this.group===this.panel.group&&i!==this.isGroupActive&&(i=this.isGroupActive,this._onDidActiveGroupChange.fire({isActive:this.isGroupActive}))}))}}class Uo extends He{get params(){return this._params}get title(){return this._title}get group(){return this._group}get renderer(){var t;return(t=this._renderer)!==null&&t!==void 0?t:this.accessor.renderer}get minimumWidth(){return this._minimumWidth}get minimumHeight(){return this._minimumHeight}get maximumWidth(){return this._maximumWidth}get maximumHeight(){return this._maximumHeight}constructor(t,n,i,o,r,s,a,l){super(),this.id=t,this.accessor=o,this.containerApi=r,this.view=a,this._renderer=l.renderer,this._group=s,this._minimumWidth=l.minimumWidth,this._minimumHeight=l.minimumHeight,this._maximumWidth=l.maximumWidth,this._maximumHeight=l.maximumHeight,this.api=new xM(this,this._group,o,n,i),this.addDisposables(this.api.onActiveChange(()=>{o.setActivePanel(this)}),this.api.onDidSizeChange(u=>{this.group.api.setSize(u)}),this.api.onDidRendererChange(()=>{this.group.model.rerender(this)}))}init(t){this._params=t.params,this.view.init(Object.assign(Object.assign({},t),{api:this.api,containerApi:this.containerApi})),this.setTitle(t.title)}focus(){const t=new A0;this.api._onWillFocus.fire(t),!t.defaultPrevented&&(this.api.isActive||this.api.setActive())}toJSON(){return{id:this.id,contentComponent:this.view.contentComponent,tabComponent:this.view.tabComponent,params:Object.keys(this._params||{}).length>0?this._params:void 0,title:this.title,renderer:this._renderer,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,minimumWidth:this._minimumWidth,maximumWidth:this._maximumWidth}}setTitle(t){t!==this.title&&(this._title=t,this.api._onDidTitleChange.fire({title:t}))}setRenderer(t){t!==this.renderer&&(this._renderer=t,this.api._onDidRendererChange.fire({renderer:t}))}update(t){var n;this._params=Object.assign(Object.assign({},(n=this._params)!==null&&n!==void 0?n:{}),t.params);for(const i of Object.keys(t.params))t.params[i]===void 0&&delete this._params[i];this.view.update({params:this._params})}updateParentGroup(t,n){this._group=t,this.api.group=this._group;const i=this._group.model.isPanelActive(this),o=this.group.api.isActive&&i;n!=null&&n.skipSetActive||this.api.isActive!==o&&this.api._onDidActiveChange.fire({isActive:this.group.api.isActive&&i}),this.api.isVisible!==i&&this.api._onDidVisibilityChange.fire({isVisible:i})}runEvents(){const t=this._group.model.isPanelActive(this),n=this.group.api.isActive&&t;this.api.isActive!==n&&this.api._onDidActiveChange.fire({isActive:this.group.api.isActive&&t}),this.api.isVisible!==t&&this.api._onDidVisibilityChange.fire({isVisible:t})}layout(t,n){this.api._onDidDimensionChange.fire({width:t,height:n}),this.view.layout(t,n)}dispose(){this.api.dispose(),this.view.dispose()}}const EM=e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttributeNS(null,"height",e.height),t.setAttributeNS(null,"width",e.width),t.setAttributeNS(null,"viewBox",e.viewbox),t.setAttributeNS(null,"aria-hidden","false"),t.setAttributeNS(null,"focusable","false"),t.classList.add("dv-svg");const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d",e.path),t.appendChild(n),t},I0=()=>EM({width:"11",height:"11",viewbox:"0 0 28 28",path:"M2.1 27.3L0 25.2L11.55 13.65L0 2.1L2.1 0L13.65 11.55L25.2 0L27.3 2.1L15.75 13.65L27.3 25.2L25.2 27.3L13.65 15.75L2.1 27.3Z"});class cp extends He{get element(){return this._element}constructor(){super(),this._element=document.createElement("div"),this._element.className="dv-default-tab",this._content=document.createElement("div"),this._content.className="dv-default-tab-content",this.action=document.createElement("div"),this.action.className="dv-default-tab-action",this.action.appendChild(I0()),this._element.appendChild(this._content),this._element.appendChild(this.action),this.addDisposables(tt(this.action,"pointerdown",t=>{t.preventDefault()})),this.render()}init(t){this._title=t.title,this.addDisposables(t.api.onDidTitleChange(n=>{this._title=n.title,this.render()}),tt(this.action,"pointerdown",n=>{n.preventDefault()}),tt(this.action,"click",n=>{n.defaultPrevented||(n.preventDefault(),t.api.close())})),this.render()}render(){var t;this._content.textContent!==this._title&&(this._content.textContent=(t=this._title)!==null&&t!==void 0?t:"")}}class T0{get content(){return this._content}get tab(){return this._tab}constructor(t,n,i,o){this.accessor=t,this.id=n,this.contentComponent=i,this.tabComponent=o,this._content=this.createContentComponent(this.id,i),this._tab=this.createTabComponent(this.id,o)}init(t){this.content.init(t),this.tab.init(t)}updateParentGroup(t,n){}layout(t,n){var i,o;(o=(i=this.content).layout)===null||o===void 0||o.call(i,t,n)}update(t){var n,i,o,r;(i=(n=this.content).update)===null||i===void 0||i.call(n,t),(r=(o=this.tab).update)===null||r===void 0||r.call(o,t)}dispose(){var t,n,i,o;(n=(t=this.content).dispose)===null||n===void 0||n.call(t),(o=(i=this.tab).dispose)===null||o===void 0||o.call(i)}createContentComponent(t,n){return this.accessor.options.createComponent({id:t,name:n})}createTabComponent(t,n){const i=n??this.accessor.options.defaultTabComponent;if(i){if(this.accessor.options.createTabComponent){const o=this.accessor.options.createTabComponent({id:t,name:i});return o||new cp}console.warn(`dockview: tabComponent '${n}' was not found. falling back to the default tab.`)}return new cp}}class kM{constructor(t){this.accessor=t}fromJSON(t,n){var i,o;const r=t.id,s=t.params,a=t.title,l=t.view,u=l?l.content.id:(i=t.contentComponent)!==null&&i!==void 0?i:"unknown",c=l?(o=l.tab)===null||o===void 0?void 0:o.id:t.tabComponent,d=new T0(this.accessor,r,u,c),f=new Uo(r,u,c,this.accessor,new kl(this.accessor),n,d,{renderer:t.renderer,minimumWidth:t.minimumWidth,minimumHeight:t.minimumHeight,maximumWidth:t.maximumWidth,maximumHeight:t.maximumHeight});return f.init({title:a??r,params:s??{}}),f}}class AM extends He{get element(){return this._element}constructor(){super(),this._element=document.createElement("div"),this._element.className="dv-watermark";const t=document.createElement("div");t.className="dv-watermark-title";const n=document.createElement("span");n.style.flexGrow="1";const i=document.createElement("div");i.className="dv-watermark-content",this._element.appendChild(t),this._element.appendChild(i);const o=document.createElement("div");o.className="dv-actions-container";const r=document.createElement("div");r.className="dv-close-action",r.appendChild(I0()),o.appendChild(r),t.appendChild(n),t.appendChild(o),this.addDisposables(tt(r,"click",s=>{var a;s.preventDefault(),this._group&&((a=this._api)===null||a===void 0||a.removeGroup(this._group))}))}init(t){this._api=t.containerApi,this._group=t.group,this.render()}render(){const t=!!(this._api&&this._api.size<=1);Re(this.element,"dv-has-actions",t)}}class DM{constructor(){this._orderedList=[]}push(t){this._orderedList=[...this._orderedList.filter(n=>n!==t),t],this.update()}destroy(t){this._orderedList=this._orderedList.filter(n=>n!==t),this.update()}update(){for(let t=0;t<this._orderedList.length;t++)this._orderedList[t].setAttribute("aria-level",`${t}`),this._orderedList[t].style.zIndex=`calc(var(--dv-overlay-z-index, 999) + ${t*2})`}}const ga=new DM;class Pi extends He{set minimumInViewportWidth(t){this.options.minimumInViewportWidth=t}set minimumInViewportHeight(t){this.options.minimumInViewportHeight=t}get element(){return this._element}constructor(t){super(),this.options=t,this._element=document.createElement("div"),this._onDidChange=new ie,this.onDidChange=this._onDidChange.event,this._onDidChangeEnd=new ie,this.onDidChangeEnd=this._onDidChangeEnd.event,this.addDisposables(this._onDidChange,this._onDidChangeEnd),this._element.className="dv-resize-container",this.setupResize("top"),this.setupResize("bottom"),this.setupResize("left"),this.setupResize("right"),this.setupResize("topleft"),this.setupResize("topright"),this.setupResize("bottomleft"),this.setupResize("bottomright"),this._element.appendChild(this.options.content),this.options.container.appendChild(this._element),this.setBounds(Object.assign(Object.assign(Object.assign(Object.assign({height:this.options.height,width:this.options.width},"top"in this.options&&{top:this.options.top}),"bottom"in this.options&&{bottom:this.options.bottom}),"left"in this.options&&{left:this.options.left}),"right"in this.options&&{right:this.options.right})),ga.push(this._element)}bringToFront(){ga.push(this._element)}setBounds(t={}){typeof t.height=="number"&&(this._element.style.height=`${t.height}px`),typeof t.width=="number"&&(this._element.style.width=`${t.width}px`),"top"in t&&typeof t.top=="number"&&(this._element.style.top=`${t.top}px`,this._element.style.bottom="auto",this.verticalAlignment="top"),"bottom"in t&&typeof t.bottom=="number"&&(this._element.style.bottom=`${t.bottom}px`,this._element.style.top="auto",this.verticalAlignment="bottom"),"left"in t&&typeof t.left=="number"&&(this._element.style.left=`${t.left}px`,this._element.style.right="auto",this.horiziontalAlignment="left"),"right"in t&&typeof t.right=="number"&&(this._element.style.right=`${t.right}px`,this._element.style.left="auto",this.horiziontalAlignment="right");const n=this.options.container.getBoundingClientRect(),i=this._element.getBoundingClientRect(),o=Math.max(0,this.getMinimumWidth(i.width)),r=Math.max(0,this.getMinimumHeight(i.height));if(this.verticalAlignment==="top"){const s=Qe(i.top-n.top,-r,Math.max(0,n.height-i.height+r));this._element.style.top=`${s}px`,this._element.style.bottom="auto"}if(this.verticalAlignment==="bottom"){const s=Qe(n.bottom-i.bottom,-r,Math.max(0,n.height-i.height+r));this._element.style.bottom=`${s}px`,this._element.style.top="auto"}if(this.horiziontalAlignment==="left"){const s=Qe(i.left-n.left,-o,Math.max(0,n.width-i.width+o));this._element.style.left=`${s}px`,this._element.style.right="auto"}if(this.horiziontalAlignment==="right"){const s=Qe(n.right-i.right,-o,Math.max(0,n.width-i.width+o));this._element.style.right=`${s}px`,this._element.style.left="auto"}this._onDidChange.fire()}toJSON(){const t=this.options.container.getBoundingClientRect(),n=this._element.getBoundingClientRect(),i={};return this.verticalAlignment==="top"?i.top=parseFloat(this._element.style.top):this.verticalAlignment==="bottom"?i.bottom=parseFloat(this._element.style.bottom):i.top=n.top-t.top,this.horiziontalAlignment==="left"?i.left=parseFloat(this._element.style.left):this.horiziontalAlignment==="right"?i.right=parseFloat(this._element.style.right):i.left=n.left-t.left,i.width=n.width,i.height=n.height,i}setupDrag(t,n={inDragMode:!1}){const i=new Rn,o=()=>{let r=null;const s=El();i.value=new He({dispose:()=>{s.release()}},Qn(window,"pointermove",a=>{const l=this.options.container.getBoundingClientRect(),u=a.clientX-l.left,c=a.clientY-l.top;Re(this._element,"dv-resize-container-dragging",!0);const d=this._element.getBoundingClientRect();r===null&&(r={x:a.clientX-d.left,y:a.clientY-d.top});const f=Math.max(0,this.getMinimumWidth(d.width)),h=Math.max(0,this.getMinimumHeight(d.height)),g=Qe(c-r.y,-h,Math.max(0,l.height-d.height+h)),m=Qe(r.y-c+l.height-d.height,-h,Math.max(0,l.height-d.height+h)),p=Qe(u-r.x,-f,Math.max(0,l.width-d.width+f)),y=Qe(r.x-u+l.width-d.width,-f,Math.max(0,l.width-d.width+f)),S={};g<=m?S.top=g:S.bottom=m,p<=y?S.left=p:S.right=y,this.setBounds(S)}),Qn(window,"pointerup",()=>{Re(this._element,"dv-resize-container-dragging",!1),i.dispose(),this._onDidChangeEnd.fire()}))};this.addDisposables(i,tt(t,"pointerdown",r=>{if(r.defaultPrevented){r.preventDefault();return}ip(r)||o()}),tt(this.options.content,"pointerdown",r=>{r.defaultPrevented||ip(r)||r.shiftKey&&o()}),tt(this.options.content,"pointerdown",()=>{ga.push(this._element)},!0)),n.inDragMode&&o()}setupResize(t){const n=document.createElement("div");n.className=`dv-resize-handle-${t}`,this._element.appendChild(n);const i=new Rn;this.addDisposables(i,tt(n,"pointerdown",o=>{o.preventDefault();let r=null;const s=El();i.value=new He(Qn(window,"pointermove",a=>{const l=this.options.container.getBoundingClientRect(),u=this._element.getBoundingClientRect(),c=a.clientY-l.top,d=a.clientX-l.left;r===null&&(r={originalY:c,originalHeight:u.height,originalX:d,originalWidth:u.width});let f,h,g,m,p,y;const S=()=>{f=Qe(c,-Number.MAX_VALUE,r.originalY+r.originalHeight>l.height?this.getMinimumHeight(l.height):Math.max(0,r.originalY+r.originalHeight-Pi.MINIMUM_HEIGHT)),g=r.originalY+r.originalHeight-f,h=l.height-f-g},v=()=>{f=r.originalY-r.originalHeight,g=Qe(c-f,f<0&&typeof this.options.minimumInViewportHeight=="number"?-f+this.options.minimumInViewportHeight:Pi.MINIMUM_HEIGHT,Number.MAX_VALUE),h=l.height-f-g},w=()=>{m=Qe(d,-Number.MAX_VALUE,r.originalX+r.originalWidth>l.width?this.getMinimumWidth(l.width):Math.max(0,r.originalX+r.originalWidth-Pi.MINIMUM_WIDTH)),y=r.originalX+r.originalWidth-m,p=l.width-m-y},M=()=>{m=r.originalX-r.originalWidth,y=Qe(d-m,m<0&&typeof this.options.minimumInViewportWidth=="number"?-m+this.options.minimumInViewportWidth:Pi.MINIMUM_WIDTH,Number.MAX_VALUE),p=l.width-m-y};switch(t){case"top":S();break;case"bottom":v();break;case"left":w();break;case"right":M();break;case"topleft":S(),w();break;case"topright":S(),M();break;case"bottomleft":v(),w();break;case"bottomright":v(),M();break}const I={};f<=h?I.top=f:I.bottom=h,m<=p?I.left=m:I.right=p,I.height=g,I.width=y,this.setBounds(I)}),{dispose:()=>{s.release()}},Qn(window,"pointerup",()=>{i.dispose(),this._onDidChangeEnd.fire()}))}))}getMinimumWidth(t){return typeof this.options.minimumInViewportWidth=="number"?t-this.options.minimumInViewportWidth:0}getMinimumHeight(t){return typeof this.options.minimumInViewportHeight=="number"?t-this.options.minimumInViewportHeight:0}dispose(){ga.destroy(this._element),this._element.remove(),super.dispose()}}Pi.MINIMUM_HEIGHT=20;Pi.MINIMUM_WIDTH=20;class PM extends He{constructor(t,n){super(),this.group=t,this.overlay=n,this.addDisposables(n)}position(t){this.overlay.setBounds(t)}}const pa=100,mi={left:100,top:100,width:300,height:300};function IM(){const e=document.createElement("div");return e.tabIndex=-1,e}class dp extends He{constructor(t,n){super(),this.element=t,this.accessor=n,this.map={},this._disposed=!1,this.addDisposables(Vt.from(()=>{for(const i of Object.values(this.map))i.disposable.dispose(),i.destroy.dispose();this._disposed=!0}))}detatch(t){if(this.map[t.api.id]){const{disposable:n,destroy:i}=this.map[t.api.id];return n.dispose(),i.dispose(),delete this.map[t.api.id],!0}return!1}attach(t){const{panel:n,referenceContainer:i}=t;if(!this.map[n.api.id]){const c=IM();c.className="dv-render-overlay",this.map[n.api.id]={panel:n,disposable:Vt.NONE,destroy:Vt.NONE,element:c}}const o=this.map[n.api.id].element;n.view.content.element.parentElement!==o&&o.appendChild(n.view.content.element),o.parentElement!==this.element&&this.element.appendChild(o);const r=()=>{const c=op(i.element),d=op(this.element);o.style.left=`${c.left-d.left}px`,o.style.top=`${c.top-d.top}px`,o.style.width=`${c.width}px`,o.style.height=`${c.height}px`,Re(o,"dv-render-overlay-float",n.group.api.location.type==="floating")},s=()=>{n.api.isVisible&&r(),o.style.display=n.api.isVisible?"":"none"},a=new Rn,l=()=>{n.api.location.type==="floating"?queueMicrotask(()=>{const c=this.accessor.floatingGroups.find(g=>g.group===n.api.group);if(!c)return;const d=c.overlay.element,f=()=>{const g=Number(d.getAttribute("aria-level"));o.style.zIndex=`calc(var(--dv-overlay-z-index, 999) + ${g*2+1})`},h=new MutationObserver(()=>{f()});a.value=Vt.from(()=>h.disconnect()),h.observe(d,{attributeFilter:["aria-level"],attributes:!0}),f()}):o.style.zIndex=""},u=new He(a,new k0(o,{onDragEnd:c=>{i.dropTarget.dnd.onDragEnd(c)},onDragEnter:c=>{i.dropTarget.dnd.onDragEnter(c)},onDragLeave:c=>{i.dropTarget.dnd.onDragLeave(c)},onDrop:c=>{i.dropTarget.dnd.onDrop(c)},onDragOver:c=>{i.dropTarget.dnd.onDragOver(c)}}),n.api.onDidVisibilityChange(()=>{s()}),n.api.onDidDimensionsChange(()=>{n.api.isVisible&&r()}),n.api.onDidLocationChange(()=>{l()}));return this.map[n.api.id].destroy=Vt.from(()=>{var c;n.view.content.element.parentElement===o&&o.removeChild(n.view.content.element),(c=o.parentElement)===null||c===void 0||c.removeChild(o)}),l(),queueMicrotask(()=>{this.isDisposed||s()}),this.map[n.api.id].disposable.dispose(),this.map[n.api.id].disposable=u,o}}var TM=function(e,t,n,i){function o(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function a(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?r(c.value):o(c.value).then(a,l)}u((i=i.apply(e,t||[])).next())})};class MM extends He{get window(){var t,n;return(n=(t=this._window)===null||t===void 0?void 0:t.value)!==null&&n!==void 0?n:null}constructor(t,n,i){super(),this.target=t,this.className=n,this.options=i,this._onWillClose=new ie,this.onWillClose=this._onWillClose.event,this._onDidClose=new ie,this.onDidClose=this._onDidClose.event,this._window=null,this.addDisposables(this._onWillClose,this._onDidClose,{dispose:()=>{this.close()}})}dimensions(){if(!this._window)return null;const t=this._window.value.screenX,n=this._window.value.screenY,i=this._window.value.innerWidth,o=this._window.value.innerHeight;return{top:n,left:t,width:i,height:o}}close(){var t,n;this._window&&(this._onWillClose.fire(),(n=(t=this.options).onWillClose)===null||n===void 0||n.call(t,{id:this.target,window:this._window.value}),this._window.disposable.dispose(),this._window=null,this._onDidClose.fire())}open(){var t,n;return TM(this,void 0,void 0,function*(){if(this._window)throw new Error("instance of popout window is already open");const i=`${this.options.url}`,o=Object.entries({top:this.options.top,left:this.options.left,width:this.options.width,height:this.options.height}).map(([l,u])=>`${l}=${u}`).join(","),r=window.open(i,this.target,o);if(!r)return null;const s=new He;this._window={value:r,disposable:s},s.addDisposables(Vt.from(()=>{r.close()}),Qn(window,"beforeunload",()=>{this.close()}));const a=this.createPopoutWindowContainer();return this.className&&a.classList.add(this.className),(n=(t=this.options).onDidOpen)===null||n===void 0||n.call(t,{id:this.target,window:r}),new Promise((l,u)=>{r.addEventListener("unload",c=>{}),r.addEventListener("load",()=>{try{const c=r.document;c.title=document.title,c.body.appendChild(a),$T(c,window.document.styleSheets),Qn(r,"beforeunload",()=>{this.close()}),l(a)}catch(c){u(c)}})})})}createPopoutWindowContainer(){const t=document.createElement("div");return t.classList.add("dv-popout-window"),t.id="dv-popout-window",t.style.position="absolute",t.style.width="100%",t.style.height="100%",t.style.top="0px",t.style.left="0px",t}}const fp={activationSize:{type:"pixels",value:10},size:{type:"pixels",value:20}};function fc(e){const t=e.from.activePanel;[...e.from.panels].map(i=>{const o=e.from.model.removePanel(i);return e.from.model.renderContainer.detatch(i),o}).forEach(i=>{e.to.model.openPanel(i,{skipSetActive:t!==i,skipSetGroupActive:!0})})}class NM extends ZT{get orientation(){return this.gridview.orientation}get totalPanels(){return this.panels.length}get panels(){return this.groups.flatMap(t=>t.panels)}get options(){return this._options}get activePanel(){const t=this.activeGroup;if(t)return t.activePanel}get renderer(){var t;return(t=this.options.defaultRenderer)!==null&&t!==void 0?t:"onlyWhenVisible"}get api(){return this._api}get gap(){return this.gridview.margin}get floatingGroups(){return this._floatingGroups}constructor(t,n){var i;super(t,{proportionalLayout:!0,orientation:De.HORIZONTAL,styles:n.hideBorders?{separatorBorder:"transparent"}:void 0,disableAutoResizing:n.disableAutoResizing,locked:n.locked,margin:n.gap,className:n.className}),this.nextGroupId=C0(),this._deserializer=new kM(this),this.watermark=null,this._onWillDragPanel=new ie,this.onWillDragPanel=this._onWillDragPanel.event,this._onWillDragGroup=new ie,this.onWillDragGroup=this._onWillDragGroup.event,this._onDidDrop=new ie,this.onDidDrop=this._onDidDrop.event,this._onWillDrop=new ie,this.onWillDrop=this._onWillDrop.event,this._onWillShowOverlay=new ie,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onUnhandledDragOverEvent=new ie,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,this._onDidRemovePanel=new ie,this.onDidRemovePanel=this._onDidRemovePanel.event,this._onDidAddPanel=new ie,this.onDidAddPanel=this._onDidAddPanel.event,this._onDidLayoutFromJSON=new ie,this.onDidLayoutFromJSON=this._onDidLayoutFromJSON.event,this._onDidActivePanelChange=new ie,this.onDidActivePanelChange=this._onDidActivePanelChange.event,this._onDidMovePanel=new ie,this.onDidMovePanel=this._onDidMovePanel.event,this._floatingGroups=[],this._popoutGroups=[],this._onDidRemoveGroup=new ie,this.onDidRemoveGroup=this._onDidRemoveGroup.event,this._onDidAddGroup=new ie,this.onDidAddGroup=this._onDidAddGroup.event,this._onDidActiveGroupChange=new ie,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._moving=!1,this.overlayRenderContainer=new dp(this.gridview.element,this),Re(this.gridview.element,"dv-dockview",!0),Re(this.element,"dv-debug",!!n.debug),this.addDisposables(this.overlayRenderContainer,this._onWillDragPanel,this._onWillDragGroup,this._onWillShowOverlay,this._onDidActivePanelChange,this._onDidAddPanel,this._onDidRemovePanel,this._onDidLayoutFromJSON,this._onDidDrop,this._onWillDrop,this._onDidMovePanel,this._onDidAddGroup,this._onDidRemoveGroup,this._onDidActiveGroupChange,this._onUnhandledDragOverEvent,this.onDidViewVisibilityChangeMicroTaskQueue(()=>{this.updateWatermark()}),this.onDidAdd(o=>{this._moving||this._onDidAddGroup.fire(o)}),this.onDidRemove(o=>{this._moving||this._onDidRemoveGroup.fire(o)}),this.onDidActiveChange(o=>{this._moving||this._onDidActiveGroupChange.fire(o)}),go.any(this.onDidAdd,this.onDidRemove)(()=>{this.updateWatermark()}),go.any(this.onDidAddPanel,this.onDidRemovePanel,this.onDidAddGroup,this.onDidRemove,this.onDidMovePanel,this.onDidActivePanelChange)(()=>{this._bufferOnDidLayoutChange.fire()}),Vt.from(()=>{for(const o of[...this._floatingGroups])o.dispose();for(const o of[...this._popoutGroups])o.disposable.dispose()})),this._options=n,this._rootDropTarget=new Ri(this.element,{canDisplayOverlay:(o,r)=>{const s=Dt();if(s)return s.viewId!==this.id?!1:r==="center"?this.gridview.length===0:!0;if(r==="center"&&this.gridview.length!==0)return!1;const a=new D0(o,"edge",r,Dt);return this._onUnhandledDragOverEvent.fire(a),a.isAccepted},acceptedTargetZones:["top","bottom","left","right","center"],overlayModel:(i=this.options.rootOverlayModel)!==null&&i!==void 0?i:fp}),this.addDisposables(this._rootDropTarget,this._rootDropTarget.onWillShowOverlay(o=>{this.gridview.length>0&&o.position==="center"||this._onWillShowOverlay.fire(new Al(o,{kind:"edge",panel:void 0,api:this._api,group:void 0,getData:Dt}))}),this._rootDropTarget.onDrop(o=>{var r;const s=new P0({nativeEvent:o.nativeEvent,position:o.position,panel:void 0,api:this._api,group:void 0,getData:Dt,kind:"edge"});if(this._onWillDrop.fire(s),s.defaultPrevented)return;const a=Dt();a?this.moveGroupOrPanel({from:{groupId:a.groupId,panelId:(r=a.panelId)!==null&&r!==void 0?r:void 0},to:{group:this.orthogonalize(o.position),position:"center"}}):this._onDidDrop.fire(new uh({nativeEvent:o.nativeEvent,position:o.position,panel:void 0,api:this._api,group:void 0,getData:Dt}))}),this._rootDropTarget),this._api=new kl(this),this.updateWatermark()}addPopoutGroup(t,n){var i,o,r;if(t instanceof Uo&&t.group.size===1)return this.addPopoutGroup(t.group,n);const s=LT(this.gridview.element),a=this.element;function l(){return n!=null&&n.position?n.position:t instanceof up?t.element.getBoundingClientRect():t.group?t.group.element.getBoundingClientRect():a.getBoundingClientRect()}const u=l(),c=(o=(i=n==null?void 0:n.overridePopoutGroup)===null||i===void 0?void 0:i.id)!==null&&o!==void 0?o:this.getNextGroupId(),d=new MM(`${this.id}-${c}`,s??"",{url:(r=n==null?void 0:n.popoutUrl)!==null&&r!==void 0?r:"/popout.html",left:window.screenX+u.left,top:window.screenY+u.top,width:u.width,height:u.height,onDidOpen:n==null?void 0:n.onDidOpen,onWillClose:n==null?void 0:n.onWillClose}),f=new He(d,d.onDidClose(()=>{f.dispose()}));return d.open().then(h=>{var g;if(d.isDisposed)return!1;if(h===null)return f.dispose(),!1;const m=document.createElement("div");m.className="dv-overlay-render-container";const p=new dp(m,this),y=t instanceof Uo?t.group:t,S=t.api.location.type,v=y.element.parentElement!==null,w=v?(g=n==null?void 0:n.overridePopoutGroup)!==null&&g!==void 0?g:this.createGroup({id:c}):y;if(w.model.renderContainer=p,w.layout(d.window.innerWidth,d.window.innerHeight),this._groups.has(w.api.id)||this._onDidAddGroup.fire(w),!(n!=null&&n.overridePopoutGroup)&&v)if(t instanceof Uo)this.movingLock(()=>{const O=y.model.removePanel(t);w.model.openPanel(O)});else switch(this.movingLock(()=>fc({from:y,to:w})),S){case"grid":y.api.setVisible(!1);break;case"floating":case"popout":this.removeGroup(y);break}h.classList.add("dv-dockview"),h.style.overflow="hidden",h.appendChild(m),h.appendChild(w.element),w.model.location={type:"popout",getWindow:()=>d.window},v&&t.api.location.type==="grid"&&t.api.setVisible(!1),this.doSetGroupAndPanelActive(w),f.addDisposables(w.api.onDidActiveChange(O=>{var V;O.isActive&&((V=d.window)===null||V===void 0||V.focus())}),w.api.onWillFocus(()=>{var O;(O=d.window)===null||O===void 0||O.focus()}));let M;const I={window:d,popoutGroup:w,referenceGroup:v&&y&&this.getPanel(y.id)?y.id:void 0,disposable:{dispose:()=>(f.dispose(),M)}};return f.addDisposables(Qn(d.window,"resize",()=>{w.layout(d.window.innerWidth,d.window.innerHeight)}),p,Vt.from(()=>{if(v&&this.getPanel(y.id))this.movingLock(()=>fc({from:w,to:y})),y.api.isVisible||y.api.setVisible(!0),this.getPanel(w.id)&&this.doRemoveGroup(w,{skipPopoutAssociated:!0});else if(this.getPanel(w.id)){this.doRemoveGroup(w,{skipDispose:!0,skipActive:!0,skipPopoutReturn:!0});const O=w;O.model.renderContainer=this.overlayRenderContainer,O.model.location={type:"grid"},M=O,this.doAddGroup(O,[0]),this.doSetGroupAndPanelActive(O)}})),this._popoutGroups.push(I),this.updateWatermark(),!0}).catch(h=>(console.error("dockview: failed to create popout window",h),!1))}addFloatingGroup(t,n){var i,o,r,s,a;let l;if(t instanceof Uo)l=this.createGroup(),this._onDidAddGroup.fire(l),this.movingLock(()=>this.removePanel(t,{removeEmptyGroup:!0,skipDispose:!0,skipSetActiveGroup:!0})),this.movingLock(()=>l.model.openPanel(t,{skipSetGroupActive:!0}));else{l=t;const m=(i=this._popoutGroups.find(S=>S.popoutGroup===l))===null||i===void 0?void 0:i.referenceGroup,p=m?this.getPanel(m):void 0;typeof(n==null?void 0:n.skipRemoveGroup)=="boolean"&&n.skipRemoveGroup||(p?(this.movingLock(()=>fc({from:t,to:p})),this.doRemoveGroup(t,{skipPopoutReturn:!0,skipPopoutAssociated:!0}),this.doRemoveGroup(p,{skipDispose:!0}),l=p):this.doRemoveGroup(t,{skipDispose:!0,skipPopoutReturn:!0,skipPopoutAssociated:!1}))}function u(){if(n!=null&&n.position){const m={};return"left"in n.position?m.left=Math.max(n.position.left,0):"right"in n.position?m.right=Math.max(n.position.right,0):m.left=mi.left,"top"in n.position?m.top=Math.max(n.position.top,0):"bottom"in n.position?m.bottom=Math.max(n.position.bottom,0):m.top=mi.top,typeof n.width=="number"?m.width=Math.max(n.width,0):m.width=mi.width,typeof n.height=="number"?m.height=Math.max(n.height,0):m.height=mi.height,m}return{left:typeof(n==null?void 0:n.x)=="number"?Math.max(n.x,0):mi.left,top:typeof(n==null?void 0:n.y)=="number"?Math.max(n.y,0):mi.top,width:typeof(n==null?void 0:n.width)=="number"?Math.max(n.width,0):mi.width,height:typeof(n==null?void 0:n.height)=="number"?Math.max(n.height,0):mi.height}}const c=u(),d=new Pi(Object.assign(Object.assign({container:this.gridview.element,content:l.element},c),{minimumInViewportWidth:this.options.floatingGroupBounds==="boundedWithinViewport"?void 0:(r=(o=this.options.floatingGroupBounds)===null||o===void 0?void 0:o.minimumWidthWithinViewport)!==null&&r!==void 0?r:pa,minimumInViewportHeight:this.options.floatingGroupBounds==="boundedWithinViewport"?void 0:(a=(s=this.options.floatingGroupBounds)===null||s===void 0?void 0:s.minimumHeightWithinViewport)!==null&&a!==void 0?a:pa})),f=l.element.querySelector(".dv-void-container");if(!f)throw new Error("failed to find drag handle");d.setupDrag(f,{inDragMode:typeof(n==null?void 0:n.inDragMode)=="boolean"?n.inDragMode:!1});const h=new PM(l,d),g=new He(l.api.onDidActiveChange(m=>{m.isActive&&d.bringToFront()}),b0(l.element,m=>{const{width:p,height:y}=m.contentRect;l.layout(p,y)}));h.addDisposables(d.onDidChange(()=>{l.layout(l.width,l.height)}),d.onDidChangeEnd(()=>{this._bufferOnDidLayoutChange.fire()}),l.onDidChange(m=>{d.setBounds({height:m==null?void 0:m.height,width:m==null?void 0:m.width})}),{dispose:()=>{g.dispose(),dc(this._floatingGroups,h),l.model.location={type:"grid"},this.updateWatermark()}}),this._floatingGroups.push(h),l.model.location={type:"floating"},n!=null&&n.skipActiveGroup||this.doSetGroupAndPanelActive(l),this.updateWatermark()}orthogonalize(t){switch(t){case"top":case"bottom":this.gridview.orientation===De.HORIZONTAL&&this.gridview.insertOrthogonalSplitviewAtRoot();break;case"left":case"right":this.gridview.orientation===De.VERTICAL&&this.gridview.insertOrthogonalSplitviewAtRoot();break}switch(t){case"top":case"left":case"center":return this.createGroupAtLocation([0]);case"bottom":case"right":return this.createGroupAtLocation([this.gridview.length]);default:throw new Error(`unsupported position ${t}`)}}updateOptions(t){var n,i,o,r;if(super.updateOptions(t),"floatingGroupBounds"in t)for(const s of this._floatingGroups){switch(t.floatingGroupBounds){case"boundedWithinViewport":s.overlay.minimumInViewportHeight=void 0,s.overlay.minimumInViewportWidth=void 0;break;case void 0:s.overlay.minimumInViewportHeight=pa,s.overlay.minimumInViewportWidth=pa;break;default:s.overlay.minimumInViewportHeight=(n=t.floatingGroupBounds)===null||n===void 0?void 0:n.minimumHeightWithinViewport,s.overlay.minimumInViewportWidth=(i=t.floatingGroupBounds)===null||i===void 0?void 0:i.minimumWidthWithinViewport}s.overlay.setBounds()}"rootOverlayModel"in t&&this._rootDropTarget.setOverlayModel((o=t.rootOverlayModel)!==null&&o!==void 0?o:fp),"gap"in t&&(this.gridview.margin=(r=t.gap)!==null&&r!==void 0?r:0),this._options=Object.assign(Object.assign({},this.options),t),this.layout(this.gridview.width,this.gridview.height,!0)}layout(t,n,i){if(super.layout(t,n,i),this._floatingGroups)for(const o of this._floatingGroups)o.overlay.setBounds()}focus(){var t;(t=this.activeGroup)===null||t===void 0||t.focus()}getGroupPanel(t){return this.panels.find(n=>n.id===t)}setActivePanel(t){t.group.model.openPanel(t),this.doSetGroupAndPanelActive(t.group)}moveToNext(t={}){var n;if(!t.group){if(!this.activeGroup)return;t.group=this.activeGroup}if(t.includePanel&&t.group&&t.group.activePanel!==t.group.panels[t.group.panels.length-1]){t.group.model.moveToNext({suppressRoll:!0});return}const i=Et(t.group.element),o=(n=this.gridview.next(i))===null||n===void 0?void 0:n.view;this.doSetGroupAndPanelActive(o)}moveToPrevious(t={}){var n;if(!t.group){if(!this.activeGroup)return;t.group=this.activeGroup}if(t.includePanel&&t.group&&t.group.activePanel!==t.group.panels[0]){t.group.model.moveToPrevious({suppressRoll:!0});return}const i=Et(t.group.element),o=(n=this.gridview.previous(i))===null||n===void 0?void 0:n.view;o&&this.doSetGroupAndPanelActive(o)}toJSON(){var t;const n=this.gridview.serialize(),i=this.panels.reduce((a,l)=>(a[l.id]=l.toJSON(),a),{}),o=this._floatingGroups.map(a=>({data:a.group.toJSON(),position:a.overlay.toJSON()})),r=this._popoutGroups.map(a=>({data:a.popoutGroup.toJSON(),gridReferenceGroup:a.referenceGroup,position:a.window.dimensions()})),s={grid:n,panels:i,activeGroup:(t=this.activeGroup)===null||t===void 0?void 0:t.id};return o.length>0&&(s.floatingGroups=o),r.length>0&&(s.popoutGroups=r),s}fromJSON(t){var n,i,o;if(this.clear(),typeof t!="object"||t===null)throw new Error("serialized layout must be a non-null object");const{grid:r,panels:s,activeGroup:a}=t;if(r.root.type!=="branch"||!Array.isArray(r.root.data))throw new Error("root must be of type branch");try{const l=this.width,u=this.height,c=h=>{const{id:g,locked:m,hideHeader:p,views:y,activeView:S}=h;if(typeof g!="string")throw new Error("group id must be of type string");const v=this.createGroup({id:g,locked:!!m,hideHeader:!!p}),w=[];for(const M of y){const I=this._deserializer.fromJSON(s[M],v);w.push(I)}this._onDidAddGroup.fire(v);for(let M=0;M<y.length;M++){const I=w[M],O=typeof S=="string"&&S===I.id;v.model.openPanel(I,{skipSetActive:!O,skipSetGroupActive:!0})}return!v.activePanel&&v.panels.length>0&&v.model.openPanel(v.panels[v.panels.length-1],{skipSetGroupActive:!0}),v};this.gridview.deserialize(r,{fromJSON:h=>c(h.data)}),this.layout(l,u,!0);const d=(n=t.floatingGroups)!==null&&n!==void 0?n:[];for(const h of d){const{data:g,position:m}=h,p=c(g);this.addFloatingGroup(p,{position:m,width:m.width,height:m.height,skipRemoveGroup:!0,inDragMode:!1})}const f=(i=t.popoutGroups)!==null&&i!==void 0?i:[];for(const h of f){const{data:g,position:m,gridReferenceGroup:p}=h,y=c(g);this.addPopoutGroup((o=p?this.getPanel(p):void 0)!==null&&o!==void 0?o:y,{position:m??void 0,overridePopoutGroup:p?y:void 0})}for(const h of this._floatingGroups)h.overlay.setBounds();if(typeof a=="string"){const h=this.getPanel(a);h&&this.doSetGroupAndPanelActive(h)}}catch(l){console.error("dockview: failed to deserialize layout. Reverting changes",l);for(const u of this.groups)for(const c of u.panels)this.removePanel(c,{removeEmptyGroup:!1,skipDispose:!1});for(const u of this.groups)u.dispose(),this._groups.delete(u.id),this._onDidRemoveGroup.fire(u);for(const u of[...this._floatingGroups])u.dispose();throw this.clear(),l}this.updateWatermark(),this._onDidLayoutFromJSON.fire()}clear(){const t=Array.from(this._groups.values()).map(i=>i.value),n=!!this.activeGroup;for(const i of t)this.removeGroup(i,{skipActive:!0});n&&this.doSetGroupAndPanelActive(void 0),this.gridview.clear()}closeAllGroups(){for(const t of this._groups.entries()){const[n,i]=t;i.value.model.closeAllPanels()}}addPanel(t){var n,i;if(this.panels.find(l=>l.id===t.id))throw new Error(`panel with id ${t.id} already exists`);let o;if(t.position&&t.floating)throw new Error("you can only provide one of: position, floating as arguments to .addPanel(...)");const r={width:t.initialWidth,height:t.initialHeight};let s;if(t.position)if(gM(t.position)){const l=typeof t.position.referencePanel=="string"?this.getGroupPanel(t.position.referencePanel):t.position.referencePanel;if(s=t.position.index,!l)throw new Error(`referencePanel '${t.position.referencePanel}' does not exist`);o=this.findGroup(l)}else if(pM(t.position)){if(o=typeof t.position.referenceGroup=="string"?(n=this._groups.get(t.position.referenceGroup))===null||n===void 0?void 0:n.value:t.position.referenceGroup,s=t.position.index,!o)throw new Error(`referenceGroup '${t.position.referenceGroup}' does not exist`)}else{const l=this.orthogonalize(ap(t.position.direction)),u=this.createPanel(t,l);return l.model.openPanel(u,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s}),t.inactive||this.doSetGroupAndPanelActive(l),l.api.setSize({height:r==null?void 0:r.height,width:r==null?void 0:r.width}),u}else o=this.activeGroup;let a;if(o){const l=sp(((i=t.position)===null||i===void 0?void 0:i.direction)||"within");if(t.floating){const u=this.createGroup();this._onDidAddGroup.fire(u);const c=typeof t.floating=="object"&&t.floating!==null?t.floating:{};this.addFloatingGroup(u,Object.assign(Object.assign({},c),{inDragMode:!1,skipRemoveGroup:!0,skipActiveGroup:!0})),a=this.createPanel(t,u),u.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s})}else if(o.api.location.type==="floating"||l==="center")a=this.createPanel(t,o),o.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s}),o.api.setSize({width:r==null?void 0:r.width,height:r==null?void 0:r.height}),t.inactive||this.doSetGroupAndPanelActive(o);else{const u=Et(o.element),c=Fo(this.gridview.orientation,u,l),d=this.createGroupAtLocation(c,this.orientationAtLocation(c)===De.VERTICAL?r==null?void 0:r.height:r==null?void 0:r.width);a=this.createPanel(t,d),d.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s}),t.inactive||this.doSetGroupAndPanelActive(d)}}else if(t.floating){const l=this.createGroup();this._onDidAddGroup.fire(l);const u=typeof t.floating=="object"&&t.floating!==null?t.floating:{};this.addFloatingGroup(l,Object.assign(Object.assign({},u),{inDragMode:!1,skipRemoveGroup:!0,skipActiveGroup:!0})),a=this.createPanel(t,l),l.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s})}else{const l=this.createGroupAtLocation([0],this.gridview.orientation===De.VERTICAL?r==null?void 0:r.height:r==null?void 0:r.width);a=this.createPanel(t,l),l.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s}),t.inactive||this.doSetGroupAndPanelActive(l)}return a}removePanel(t,n={removeEmptyGroup:!0,skipDispose:!1}){const i=t.group;if(!i)throw new Error(`cannot remove panel ${t.id}. it's missing a group.`);i.model.removePanel(t,{skipSetActiveGroup:n.skipSetActiveGroup}),n.skipDispose||(t.group.model.renderContainer.detatch(t),t.dispose()),i.size===0&&n.removeEmptyGroup&&this.removeGroup(i,{skipActive:n.skipSetActiveGroup})}createWatermarkComponent(){return this.options.createWatermarkComponent?this.options.createWatermarkComponent():new AM}updateWatermark(){var t,n;if(this.groups.filter(i=>i.api.location.type==="grid"&&i.api.isVisible).length===0){if(!this.watermark){this.watermark=this.createWatermarkComponent(),this.watermark.init({containerApi:new kl(this)});const i=document.createElement("div");i.className="dv-watermark-container",VT(i,"watermark-component"),i.appendChild(this.watermark.element),this.gridview.element.appendChild(i)}}else this.watermark&&(this.watermark.element.parentElement.remove(),(n=(t=this.watermark).dispose)===null||n===void 0||n.call(t),this.watermark=null)}addGroup(t){var n;if(t){let i;if(vM(t)){const u=typeof t.referencePanel=="string"?this.panels.find(c=>c.id===t.referencePanel):t.referencePanel;if(!u)throw new Error(`reference panel ${t.referencePanel} does not exist`);if(i=this.findGroup(u),!i)throw new Error(`reference group for reference panel ${t.referencePanel} does not exist`)}else if(yM(t)){if(i=typeof t.referenceGroup=="string"?(n=this._groups.get(t.referenceGroup))===null||n===void 0?void 0:n.value:t.referenceGroup,!i)throw new Error(`reference group ${t.referenceGroup} does not exist`)}else{const u=this.orthogonalize(ap(t.direction));return t.skipSetActive||this.doSetGroupAndPanelActive(u),u}const o=sp(t.direction||"within"),r=Et(i.element),s=Fo(this.gridview.orientation,r,o),a=this.createGroup(t),l=this.getLocationOrientation(s)===De.VERTICAL?t.initialHeight:t.initialWidth;return this.doAddGroup(a,s,l),t.skipSetActive||this.doSetGroupAndPanelActive(a),a}else{const i=this.createGroup(t);return this.doAddGroup(i),this.doSetGroupAndPanelActive(i),i}}getLocationOrientation(t){return t.length%2==0&&this.gridview.orientation===De.HORIZONTAL?De.HORIZONTAL:De.VERTICAL}removeGroup(t,n){this.doRemoveGroup(t,n)}doRemoveGroup(t,n){var i;const o=[...t.panels];if(!(n!=null&&n.skipDispose))for(const a of o)this.removePanel(a,{removeEmptyGroup:!1,skipDispose:(i=n==null?void 0:n.skipDispose)!==null&&i!==void 0?i:!1});const r=this.activePanel;if(t.api.location.type==="floating"){const a=this._floatingGroups.find(l=>l.group===t);if(a){if(n!=null&&n.skipDispose||(a.group.dispose(),this._groups.delete(t.id),this._onDidRemoveGroup.fire(t)),dc(this._floatingGroups,a),a.dispose(),!(n!=null&&n.skipActive)&&this._activeGroup===t){const l=Array.from(this._groups.values());this.doSetGroupAndPanelActive(l.length>0?l[0].value:void 0)}return a.group}throw new Error("failed to find floating group")}if(t.api.location.type==="popout"){const a=this._popoutGroups.find(l=>l.popoutGroup===t);if(a){if(!(n!=null&&n.skipDispose)){if(!(n!=null&&n.skipPopoutAssociated)){const u=a.referenceGroup?this.getPanel(a.referenceGroup):void 0;u&&this.removeGroup(u)}a.popoutGroup.dispose(),this._groups.delete(t.id),this._onDidRemoveGroup.fire(t)}dc(this._popoutGroups,a);const l=a.disposable.dispose();if(!(n!=null&&n.skipPopoutReturn)&&l&&(this.doAddGroup(l,[0]),this.doSetGroupAndPanelActive(l)),!(n!=null&&n.skipActive)&&this._activeGroup===t){const u=Array.from(this._groups.values());this.doSetGroupAndPanelActive(u.length>0?u[0].value:void 0)}return this.updateWatermark(),a.popoutGroup}throw new Error("failed to find popout group")}const s=super.doRemoveGroup(t,n);return n!=null&&n.skipActive||this.activePanel!==r&&this._onDidActivePanelChange.fire(this.activePanel),s}movingLock(t){const n=this._moving;try{return this._moving=!0,t()}finally{this._moving=n}}moveGroupOrPanel(t){var n;const i=t.to.group,o=t.from.groupId,r=t.from.panelId,s=t.to.position,a=t.to.index,l=o?(n=this._groups.get(o))===null||n===void 0?void 0:n.value:void 0;if(!l)throw new Error(`Failed to find group id ${o}`);if(r===void 0){this.moveGroup({from:{group:l},to:{group:i,position:s}});return}if(!s||s==="center"){const u=this.movingLock(()=>l.model.removePanel(r,{skipSetActive:!1,skipSetActiveGroup:!0}));if(!u)throw new Error(`No panel with id ${r}`);l.model.size===0&&this.doRemoveGroup(l,{skipActive:!0}),this.movingLock(()=>i.model.openPanel(u,{index:a,skipSetGroupActive:!0})),this.doSetGroupAndPanelActive(i),this._onDidMovePanel.fire({panel:u,from:l})}else{const u=Et(i.element),c=Fo(this.gridview.orientation,u,s);if(l.size<2){const[d,f]=so(c);if(l.api.location.type==="grid"){const p=Et(l.element),[y,S]=so(p);if(HT(y,d)){this.gridview.moveView(y,S,f),this._onDidMovePanel.fire({panel:this.getGroupPanel(r),from:l});return}}if(l.api.location.type==="popout"){const p=this._popoutGroups.find(v=>v.popoutGroup===l),y=this.movingLock(()=>p.popoutGroup.model.removePanel(p.popoutGroup.panels[0],{skipSetActive:!0,skipSetActiveGroup:!0}));this.doRemoveGroup(l,{skipActive:!0});const S=this.createGroupAtLocation(c);this.movingLock(()=>S.model.openPanel(y,{skipSetActive:!0})),this.doSetGroupAndPanelActive(S),this._onDidMovePanel.fire({panel:this.getGroupPanel(r),from:l});return}const h=this.movingLock(()=>this.doRemoveGroup(l,{skipActive:!0,skipDispose:!0})),g=Et(i.element),m=Fo(this.gridview.orientation,g,s);this.movingLock(()=>this.doAddGroup(h,m)),this.doSetGroupAndPanelActive(h),this._onDidMovePanel.fire({panel:this.getGroupPanel(r),from:l})}else{const d=this.movingLock(()=>l.model.removePanel(r,{skipSetActive:!1,skipSetActiveGroup:!0}));if(!d)throw new Error(`No panel with id ${r}`);const f=Fo(this.gridview.orientation,u,s),h=this.createGroupAtLocation(f);this.movingLock(()=>h.model.openPanel(d,{skipSetGroupActive:!0})),this.doSetGroupAndPanelActive(h),this._onDidMovePanel.fire({panel:d,from:l})}}}moveGroup(t){const n=t.from.group,i=t.to.group,o=t.to.position;if(o==="center"){const r=n.activePanel,s=this.movingLock(()=>[...n.panels].map(a=>n.model.removePanel(a.id,{skipSetActive:!0})));(n==null?void 0:n.model.size)===0&&this.doRemoveGroup(n,{skipActive:!0}),this.movingLock(()=>{for(const a of s)i.model.openPanel(a,{skipSetActive:a!==r,skipSetGroupActive:!0})}),this.doSetGroupAndPanelActive(i)}else{switch(n.api.location.type){case"grid":this.gridview.removeView(Et(n.element));break;case"floating":{const l=this._floatingGroups.find(u=>u.group===n);if(!l)throw new Error("failed to find floating group");l.dispose();break}case"popout":{const l=this._popoutGroups.find(u=>u.popoutGroup===n);if(!l)throw new Error("failed to find popout group");l.disposable.dispose()}}const r=Et(i.element),s=Fo(this.gridview.orientation,r,o);let a;switch(this.gridview.orientation){case De.VERTICAL:a=r.length%2==0?n.api.width:n.api.height;break;case De.HORIZONTAL:a=r.length%2==0?n.api.height:n.api.width;break}this.gridview.addView(n,a,s)}n.panels.forEach(r=>{this._onDidMovePanel.fire({panel:r,from:n})})}doSetGroupActive(t){super.doSetGroupActive(t);const n=this.activePanel;!this._moving&&n!==this._onDidActivePanelChange.value&&this._onDidActivePanelChange.fire(n)}doSetGroupAndPanelActive(t){super.doSetGroupActive(t);const n=this.activePanel;t&&this.hasMaximizedGroup()&&!this.isMaximizedGroup(t)&&this.exitMaximizedGroup(),!this._moving&&n!==this._onDidActivePanelChange.value&&this._onDidActivePanelChange.fire(n)}getNextGroupId(){let t=this.nextGroupId.next();for(;this._groups.has(t);)t=this.nextGroupId.next();return t}createGroup(t){t||(t={});let n=t==null?void 0:t.id;if(n&&this._groups.has(t.id)&&(console.warn(`dockview: Duplicate group id ${t==null?void 0:t.id}. reassigning group id to avoid errors`),n=void 0),!n)for(n=this.nextGroupId.next();this._groups.has(n);)n=this.nextGroupId.next();const i=new up(this,n,t);if(i.init({params:{},accessor:this}),!this._groups.has(i.id)){const o=new He(i.model.onTabDragStart(r=>{this._onWillDragPanel.fire(r)}),i.model.onGroupDragStart(r=>{this._onWillDragGroup.fire(r)}),i.model.onMove(r=>{const{groupId:s,itemId:a,target:l,index:u}=r;this.moveGroupOrPanel({from:{groupId:s,panelId:a},to:{group:i,position:l,index:u}})}),i.model.onDidDrop(r=>{this._onDidDrop.fire(r)}),i.model.onWillDrop(r=>{this._onWillDrop.fire(r)}),i.model.onWillShowOverlay(r=>{if(this.options.disableDnd){r.preventDefault();return}this._onWillShowOverlay.fire(r)}),i.model.onUnhandledDragOverEvent(r=>{this._onUnhandledDragOverEvent.fire(r)}),i.model.onDidAddPanel(r=>{this._moving||this._onDidAddPanel.fire(r.panel)}),i.model.onDidRemovePanel(r=>{this._moving||this._onDidRemovePanel.fire(r.panel)}),i.model.onDidActivePanelChange(r=>{this._moving||r.panel===this.activePanel&&this._onDidActivePanelChange.value!==r.panel&&this._onDidActivePanelChange.fire(r.panel)}),go.any(i.model.onDidPanelTitleChange,i.model.onDidPanelParametersChange)(()=>{this._bufferOnDidLayoutChange.fire()}));this._groups.set(i.id,{value:i,disposable:o})}return i.initialize(),i}createPanel(t,n){var i,o,r;const s=t.component,a=(i=t.tabComponent)!==null&&i!==void 0?i:this.options.defaultTabComponent,l=new T0(this,t.id,s,a),u=new Uo(t.id,s,a,this,this._api,n,l,{renderer:t.renderer,minimumWidth:t.minimumWidth,minimumHeight:t.minimumHeight,maximumWidth:t.maximumWidth,maximumHeight:t.maximumHeight});return u.init({title:(o=t.title)!==null&&o!==void 0?o:t.id,params:(r=t==null?void 0:t.params)!==null&&r!==void 0?r:{}}),u}createGroupAtLocation(t,n){const i=this.createGroup();return this.doAddGroup(i,t,n),i}findGroup(t){var n;return(n=Array.from(this._groups.values()).find(i=>i.value.model.containsPanel(t)))===null||n===void 0?void 0:n.value}orientationAtLocation(t){const n=this.gridview.orientation;return t.length%2==1?n:Pn(n)}}function OM(e,t){return new NM(e,t).api}var $M=Object.defineProperty,RM=(e,t,n)=>t in e?$M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ir=(e,t,n)=>(RM(e,typeof t!="symbol"?t+"":t,n),n);function Qi(e,t){var n,i;let o=e,r=null;for(;!r&&o;)r=(n=o.components)==null?void 0:n[t],o=o.parent;if(r||(r=(i=e.appContext.components)==null?void 0:i[t]),!r)throw new Error(`Failed to find Vue Component '${t}'`);return r}function dh(e,t,n,i){let o=k(e,Object.freeze(n));o.appContext=t.appContext,o.appContext.provides={...o.appContext.provides?o.appContext.provides:{},...t.provides?t.provides:{}},Xu(o,i);let r=n;return{update:s=>{r={...n,...s},o=$n(o,r),Xu(o,i)},dispose:()=>{Xu(null,i)}}}class fh{constructor(t,n){ir(this,"_element"),this.component=t,this.parent=n,this._element=document.createElement("div"),this.element.className="dv-vue-part",this.element.style.height="100%",this.element.style.width="100%"}get element(){return this._element}}class hp extends fh{constructor(){super(...arguments),ir(this,"_renderDisposable"),ir(this,"_api"),ir(this,"_containerApi")}init(t){var n;this._api=t.api,this._containerApi=t.containerApi;const i={params:t.params,api:t.api,containerApi:t.containerApi};(n=this._renderDisposable)==null||n.dispose(),this._renderDisposable=dh(this.component,this.parent,{params:i},this.element)}update(t){var n;if(!this._api||!this._containerApi)return;const i=t.params;(n=this._renderDisposable)==null||n.update({params:{params:i,api:this._api,containerApi:this._containerApi}})}dispose(){var t;(t=this._renderDisposable)==null||t.dispose()}}class VM extends fh{constructor(){super(...arguments),ir(this,"_renderDisposable")}get element(){return this._element}init(t){var n;const i={group:t.group,containerApi:t.containerApi};(n=this._renderDisposable)==null||n.dispose(),this._renderDisposable=dh(this.component,this.parent,{params:i},this.element)}update(t){}dispose(){var t;(t=this._renderDisposable)==null||t.dispose()}}class hc extends fh{constructor(t,n,i){super(t,n),ir(this,"_renderDisposable")}get element(){return this._element}init(t){var n;(n=this._renderDisposable)==null||n.dispose(),this._renderDisposable=dh(this.component,this.parent,{params:t},this.element)}dispose(){var t;(t=this._renderDisposable)==null||t.dispose()}}const LM=Pe({__name:"dockview",props:{disableAutoResizing:{type:Boolean},hideBorders:{type:Boolean},singleTabMode:{},disableFloatingGroups:{type:Boolean},floatingGroupBounds:{},popoutUrl:{},defaultRenderer:{},debug:{type:Boolean},rootOverlayModel:{},locked:{type:Boolean},disableDnd:{type:Boolean},className:{},gap:{},watermarkComponent:{},defaultTabComponent:{},rightHeaderActionsComponent:{},leftHeaderActionsComponent:{},prefixHeaderActionsComponent:{}},emits:["ready"],setup(e,{emit:t}){function n(a){return lp.reduce((u,c)=>(u[c]=a[c],u),{})}const i=t,o=e,r=ne(null),s=ne(null);return lp.forEach(a=>{ae(()=>o[a],(l,u)=>{s.value&&s.value.updateOptions({[a]:l})})}),_t(()=>{if(!r.value)throw new Error("dockview-vue: element is not mounted");const a=Bt();if(!a)throw new Error("dockview-vue: getCurrentInstance() returned null");const l={createComponent(f){const h=Qi(a,f.name);return new hp(h,a)},createTabComponent(f){let h=Qi(a,f.name);if(!h&&o.defaultTabComponent&&(h=Qi(a,o.defaultTabComponent)),h)return new hp(h,a)},createWatermarkComponent:o.watermarkComponent?()=>{const f=Qi(a,o.watermarkComponent);return new VM(f,a)}:void 0,createLeftHeaderActionComponent:o.leftHeaderActionsComponent?f=>{const h=Qi(a,o.leftHeaderActionsComponent);return new hc(h,a,f)}:void 0,createPrefixHeaderActionComponent:o.prefixHeaderActionsComponent?f=>{const h=Qi(a,o.prefixHeaderActionsComponent);return new hc(h,a,f)}:void 0,createRightHeaderActionComponent:o.rightHeaderActionsComponent?f=>{const h=Qi(a,o.rightHeaderActionsComponent);return new hc(h,a,f)}:void 0},u=OM(r.value,{...n(o),...l}),{clientWidth:c,clientHeight:d}=r.value;u.layout(c,d),s.value=Mn(u),i("ready",{api:u})}),zt(()=>{s.value&&s.value.dispose()}),(a,l)=>(se(),Ae("div",{ref_key:"el",ref:r},null,512))}}),zM=Symbol.for("nuxt:client-only"),BM=Pe({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const i=ne(!1);return _t(()=>{i.value=!0}),rt(zM,!0),o=>{var l;if(i.value)return(l=t.default)==null?void 0:l.call(t);const r=t.fallback||t.placeholder;if(r)return r();const s=o.fallback||o.placeholder||"",a=o.fallbackTag||o.placeholderTag||"span";return Ae(a,n,s)}}});function hu(e){return br()?(it(e),!0):!1}function Zn(e){return typeof e=="function"?e():Q(e)}const HM=typeof window<"u"&&typeof document<"u",FM=e=>typeof e<"u",GM=Object.prototype.toString,WM=e=>GM.call(e)==="[object Object]",UM=()=>{};function jM(e,t){function n(...i){return new Promise((o,r)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(r)})}return n}const M0=e=>e();function YM(e=M0){const t=ne(!0);function n(){t.value=!1}function i(){t.value=!0}const o=(...r)=>{t.value&&e(...r)};return{isActive:wr(t),pause:n,resume:i,eventFilter:o}}function mp(e,t=!1,n="Timeout"){return new Promise((i,o)=>{setTimeout(t?()=>o(n):i,e)})}function KM(e,t,n={}){const{eventFilter:i=M0,...o}=n;return ae(e,jM(i,t),o)}function Go(e,t,n={}){const{eventFilter:i,...o}=n,{eventFilter:r,pause:s,resume:a,isActive:l}=YM(i);return{stop:KM(e,t,{...o,eventFilter:r}),pause:s,resume:a,isActive:l}}function qM(e,t={}){if(!Ve(e))return Vs(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const i in e.value)n[i]=$y(()=>({get(){return e.value[i]},set(o){var r;if((r=Zn(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const a=[...e.value];a[i]=o,e.value=a}else{const a={...e.value,[i]:o};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[i]=o}}));return n}function Ad(e,t=!1){function n(d,{flush:f="sync",deep:h=!1,timeout:g,throwOnTimeout:m}={}){let p=null;const S=[new Promise(v=>{p=ae(e,w=>{d(w)!==t&&(p==null||p(),v(w))},{flush:f,deep:h,immediate:!0})})];return g!=null&&S.push(mp(g,m).then(()=>Zn(e)).finally(()=>p==null?void 0:p())),Promise.race(S)}function i(d,f){if(!Ve(d))return n(w=>w===d,f);const{flush:h="sync",deep:g=!1,timeout:m,throwOnTimeout:p}=f??{};let y=null;const v=[new Promise(w=>{y=ae([e,d],([M,I])=>{t!==(M===I)&&(y==null||y(),w(M))},{flush:h,deep:g,immediate:!0})})];return m!=null&&v.push(mp(m,p).then(()=>Zn(e)).finally(()=>(y==null||y(),Zn(e)))),Promise.race(v)}function o(d){return n(f=>!!f,d)}function r(d){return i(null,d)}function s(d){return i(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,f){return n(h=>{const g=Array.from(h);return g.includes(d)||g.includes(Zn(d))},f)}function u(d){return c(1,d)}function c(d=1,f){let h=-1;return n(()=>(h+=1,h>=d),f)}return Array.isArray(Zn(e))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return Ad(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:o,toBeNull:r,toBeNaN:a,toBeUndefined:s,changed:u,changedTimes:c,get not(){return Ad(e,!t)}}}function Dd(e){return Ad(e)}function XM(e){var t;const n=Zn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const N0=HM?window:void 0;function O0(...e){let t,n,i,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,o]=e,t=N0):[t,n,i,o]=e,!t)return UM;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],s=()=>{r.forEach(c=>c()),r.length=0},a=(c,d,f,h)=>(c.addEventListener(d,f,h),()=>c.removeEventListener(d,f,h)),l=ae(()=>[XM(t),Zn(o)],([c,d])=>{if(s(),!c)return;const f=WM(d)?{...d}:d;r.push(...n.flatMap(h=>i.map(g=>a(c,h,g,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return hu(u),u}function ZM(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function gp(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=N0,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=i,l=ZM(t);return O0(o,r,c=>{c.repeat&&Zn(a)||l(c)&&n(c)},s)}function JM(e){return JSON.parse(JSON.stringify(e))}function mc(e,t,n,i={}){var o,r,s;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=i,h=Bt(),g=n||(h==null?void 0:h.emit)||((o=h==null?void 0:h.$emit)==null?void 0:o.bind(h))||((s=(r=h==null?void 0:h.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(h==null?void 0:h.proxy));let m=u;t||(t="modelValue"),m=m||`update:${t.toString()}`;const p=v=>a?typeof a=="function"?a(v):JM(v):v,y=()=>FM(e[t])?p(e[t]):d,S=v=>{f?f(v)&&g(m,v):g(m,v)};if(l){const v=y(),w=ne(v);let M=!1;return ae(()=>e[t],I=>{M||(M=!0,w.value=p(I),Ue(()=>M=!1))}),ae(w,I=>{!M&&(I!==e[t]||c)&&S(I)},{deep:c}),w}else return z({get(){return y()},set(v){S(v)}})}var QM={value:()=>{}};function mu(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Ba(n)}function Ba(e){this._=e}function eN(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Ba.prototype=mu.prototype={constructor:Ba,on:function(e,t){var n=this._,i=eN(e+"",n),o,r=-1,s=i.length;if(arguments.length<2){for(;++r<s;)if((o=(e=i[r]).type)&&(o=tN(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++r<s;)if(o=(e=i[r]).type)n[o]=pp(n[o],e.name,t);else if(t==null)for(o in n)n[o]=pp(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ba(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,r;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}};function tN(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function pp(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=QM,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}var Pd="http://www.w3.org/1999/xhtml";const vp={svg:"http://www.w3.org/2000/svg",xhtml:Pd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gu(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),vp.hasOwnProperty(t)?{space:vp[t],local:e}:e}function nN(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Pd&&t.documentElement.namespaceURI===Pd?t.createElement(e):t.createElementNS(n,e)}}function iN(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $0(e){var t=gu(e);return(t.local?iN:nN)(t)}function oN(){}function hh(e){return e==null?oN:function(){return this.querySelector(e)}}function rN(e){typeof e!="function"&&(e=hh(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r=t[o],s=r.length,a=i[o]=new Array(s),l,u,c=0;c<s;++c)(l=r[c])&&(u=e.call(l,l.__data__,c,r))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new tn(i,this._parents)}function sN(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function aN(){return[]}function R0(e){return e==null?aN:function(){return this.querySelectorAll(e)}}function lN(e){return function(){return sN(e.apply(this,arguments))}}function uN(e){typeof e=="function"?e=lN(e):e=R0(e);for(var t=this._groups,n=t.length,i=[],o=[],r=0;r<n;++r)for(var s=t[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(i.push(e.call(l,l.__data__,u,s)),o.push(l));return new tn(i,o)}function V0(e){return function(){return this.matches(e)}}function L0(e){return function(t){return t.matches(e)}}var cN=Array.prototype.find;function dN(e){return function(){return cN.call(this.children,e)}}function fN(){return this.firstElementChild}function hN(e){return this.select(e==null?fN:dN(typeof e=="function"?e:L0(e)))}var mN=Array.prototype.filter;function gN(){return Array.from(this.children)}function pN(e){return function(){return mN.call(this.children,e)}}function vN(e){return this.selectAll(e==null?gN:pN(typeof e=="function"?e:L0(e)))}function yN(e){typeof e!="function"&&(e=V0(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r=t[o],s=r.length,a=i[o]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new tn(i,this._parents)}function z0(e){return new Array(e.length)}function bN(){return new tn(this._enter||this._groups.map(z0),this._parents)}function Dl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Dl.prototype={constructor:Dl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function wN(e){return function(){return e}}function _N(e,t,n,i,o,r){for(var s=0,a,l=t.length,u=r.length;s<u;++s)(a=t[s])?(a.__data__=r[s],i[s]=a):n[s]=new Dl(e,r[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function SN(e,t,n,i,o,r,s){var a,l,u=new Map,c=t.length,d=r.length,f=new Array(c),h;for(a=0;a<c;++a)(l=t[a])&&(f[a]=h=s.call(l,l.__data__,a,t)+"",u.has(h)?o[a]=l:u.set(h,l));for(a=0;a<d;++a)h=s.call(e,r[a],a,r)+"",(l=u.get(h))?(i[a]=l,l.__data__=r[a],u.delete(h)):n[a]=new Dl(e,r[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(f[a])===l&&(o[a]=l)}function CN(e){return e.__data__}function xN(e,t){if(!arguments.length)return Array.from(this,CN);var n=t?SN:_N,i=this._parents,o=this._groups;typeof e!="function"&&(e=wN(e));for(var r=o.length,s=new Array(r),a=new Array(r),l=new Array(r),u=0;u<r;++u){var c=i[u],d=o[u],f=d.length,h=EN(e.call(c,c&&c.__data__,u,i)),g=h.length,m=a[u]=new Array(g),p=s[u]=new Array(g),y=l[u]=new Array(f);n(c,d,m,p,y,h,t);for(var S=0,v=0,w,M;S<g;++S)if(w=m[S]){for(S>=v&&(v=S+1);!(M=p[v])&&++v<g;);w._next=M||null}}return s=new tn(s,i),s._enter=a,s._exit=l,s}function EN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function kN(){return new tn(this._exit||this._groups.map(z0),this._parents)}function AN(e,t,n){var i=this.enter(),o=this,r=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?r.remove():n(r),i&&o?i.merge(o).order():o}function DN(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var u=n[l],c=i[l],d=u.length,f=a[l]=new Array(d),h,g=0;g<d;++g)(h=u[g]||c[g])&&(f[g]=h);for(;l<o;++l)a[l]=n[l];return new tn(a,this._parents)}function PN(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],o=i.length-1,r=i[o],s;--o>=0;)(s=i[o])&&(r&&s.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(s,r),r=s);return this}function IN(e){e||(e=TN);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s=n[r],a=s.length,l=o[r]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new tn(o,this._parents).order()}function TN(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function MN(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function NN(){return Array.from(this)}function ON(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length;o<r;++o){var s=i[o];if(s)return s}return null}function $N(){let e=0;for(const t of this)++e;return e}function RN(){return!this.node()}function VN(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],r=0,s=o.length,a;r<s;++r)(a=o[r])&&e.call(a,a.__data__,r,o);return this}function LN(e){return function(){this.removeAttribute(e)}}function zN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function BN(e,t){return function(){this.setAttribute(e,t)}}function HN(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function FN(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function GN(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function WN(e,t){var n=gu(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?zN:LN:typeof t=="function"?n.local?GN:FN:n.local?HN:BN)(n,t))}function B0(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function UN(e){return function(){this.style.removeProperty(e)}}function jN(e,t,n){return function(){this.style.setProperty(e,t,n)}}function YN(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function KN(e,t,n){return arguments.length>1?this.each((t==null?UN:typeof t=="function"?YN:jN)(e,t,n??"")):dr(this.node(),e)}function dr(e,t){return e.style.getPropertyValue(t)||B0(e).getComputedStyle(e,null).getPropertyValue(t)}function qN(e){return function(){delete this[e]}}function XN(e,t){return function(){this[e]=t}}function ZN(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function JN(e,t){return arguments.length>1?this.each((t==null?qN:typeof t=="function"?ZN:XN)(e,t)):this.node()[e]}function H0(e){return e.trim().split(/^|\s+/)}function mh(e){return e.classList||new F0(e)}function F0(e){this._node=e,this._names=H0(e.getAttribute("class")||"")}F0.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function G0(e,t){for(var n=mh(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function W0(e,t){for(var n=mh(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function QN(e){return function(){G0(this,e)}}function eO(e){return function(){W0(this,e)}}function tO(e,t){return function(){(t.apply(this,arguments)?G0:W0)(this,e)}}function nO(e,t){var n=H0(e+"");if(arguments.length<2){for(var i=mh(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?tO:t?QN:eO)(n,t))}function iO(){this.textContent=""}function oO(e){return function(){this.textContent=e}}function rO(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function sO(e){return arguments.length?this.each(e==null?iO:(typeof e=="function"?rO:oO)(e)):this.node().textContent}function aO(){this.innerHTML=""}function lO(e){return function(){this.innerHTML=e}}function uO(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function cO(e){return arguments.length?this.each(e==null?aO:(typeof e=="function"?uO:lO)(e)):this.node().innerHTML}function dO(){this.nextSibling&&this.parentNode.appendChild(this)}function fO(){return this.each(dO)}function hO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mO(){return this.each(hO)}function gO(e){var t=typeof e=="function"?e:$0(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function pO(){return null}function vO(e,t){var n=typeof e=="function"?e:$0(e),i=t==null?pO:typeof t=="function"?t:hh(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function yO(){var e=this.parentNode;e&&e.removeChild(this)}function bO(){return this.each(yO)}function wO(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _O(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function SO(e){return this.select(e?_O:wO)}function CO(e){return arguments.length?this.property("__data__",e):this.node().__data__}function xO(e){return function(t){e.call(this,t,this.__data__)}}function EO(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function kO(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,r;n<o;++n)r=t[n],(!e.type||r.type===e.type)&&r.name===e.name?this.removeEventListener(r.type,r.listener,r.options):t[++i]=r;++i?t.length=i:delete this.__on}}}function AO(e,t,n){return function(){var i=this.__on,o,r=xO(t);if(i){for(var s=0,a=i.length;s<a;++s)if((o=i[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=r,o.options=n),o.value=t;return}}this.addEventListener(e.type,r,n),o={type:e.type,name:e.name,value:t,listener:r,options:n},i?i.push(o):this.__on=[o]}}function DO(e,t,n){var i=EO(e+""),o,r=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(o=0,c=a[l];o<r;++o)if((s=i[o]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?AO:kO,o=0;o<r;++o)this.each(a(i[o],t,n));return this}function U0(e,t,n){var i=B0(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function PO(e,t){return function(){return U0(this,e,t)}}function IO(e,t){return function(){return U0(this,e,t.apply(this,arguments))}}function TO(e,t){return this.each((typeof t=="function"?IO:PO)(e,t))}function*MO(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length,s;o<r;++o)(s=i[o])&&(yield s)}var j0=[null];function tn(e,t){this._groups=e,this._parents=t}function Gs(){return new tn([[document.documentElement]],j0)}function NO(){return this}tn.prototype=Gs.prototype={constructor:tn,select:rN,selectAll:uN,selectChild:hN,selectChildren:vN,filter:yN,data:xN,enter:bN,exit:kN,join:AN,merge:DN,selection:NO,order:PN,sort:IN,call:MN,nodes:NN,node:ON,size:$N,empty:RN,each:VN,attr:WN,style:KN,property:JN,classed:nO,text:sO,html:cO,raise:fO,lower:mO,append:gO,insert:vO,remove:bO,clone:SO,datum:CO,on:DO,dispatch:TO,[Symbol.iterator]:MO};function mn(e){return typeof e=="string"?new tn([[document.querySelector(e)]],[document.documentElement]):new tn([[e]],j0)}function OO(e){let t;for(;t=e.sourceEvent;)e=t;return e}function kn(e,t){if(e=OO(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const $O={passive:!1},bs={capture:!0,passive:!1};function gc(e){e.stopImmediatePropagation()}function or(e){e.preventDefault(),e.stopImmediatePropagation()}function Y0(e){var t=e.document.documentElement,n=mn(e).on("dragstart.drag",or,bs);"onselectstart"in t?n.on("selectstart.drag",or,bs):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function K0(e,t){var n=e.document.documentElement,i=mn(e).on("dragstart.drag",null);t&&(i.on("click.drag",or,bs),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const va=e=>()=>e;function Id(e,{sourceEvent:t,subject:n,target:i,identifier:o,active:r,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}Id.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function RO(e){return!e.ctrlKey&&!e.button}function VO(){return this.parentNode}function LO(e,t){return t??{x:e.x,y:e.y}}function zO(){return navigator.maxTouchPoints||"ontouchstart"in this}function BO(){var e=RO,t=VO,n=LO,i=zO,o={},r=mu("start","drag","end"),s=0,a,l,u,c,d=0;function f(w){w.on("mousedown.drag",h).filter(i).on("touchstart.drag",p).on("touchmove.drag",y,$O).on("touchend.drag touchcancel.drag",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(w,M){if(!(c||!e.call(this,w,M))){var I=v(this,t.call(this,w,M),w,M,"mouse");I&&(mn(w.view).on("mousemove.drag",g,bs).on("mouseup.drag",m,bs),Y0(w.view),gc(w),u=!1,a=w.clientX,l=w.clientY,I("start",w))}}function g(w){if(or(w),!u){var M=w.clientX-a,I=w.clientY-l;u=M*M+I*I>d}o.mouse("drag",w)}function m(w){mn(w.view).on("mousemove.drag mouseup.drag",null),K0(w.view,u),or(w),o.mouse("end",w)}function p(w,M){if(e.call(this,w,M)){var I=w.changedTouches,O=t.call(this,w,M),V=I.length,N,$;for(N=0;N<V;++N)($=v(this,O,w,M,I[N].identifier,I[N]))&&(gc(w),$("start",w,I[N]))}}function y(w){var M=w.changedTouches,I=M.length,O,V;for(O=0;O<I;++O)(V=o[M[O].identifier])&&(or(w),V("drag",w,M[O]))}function S(w){var M=w.changedTouches,I=M.length,O,V;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),O=0;O<I;++O)(V=o[M[O].identifier])&&(gc(w),V("end",w,M[O]))}function v(w,M,I,O,V,N){var $=r.copy(),H=kn(N||I,M),E,W,b;if((b=n.call(w,new Id("beforestart",{sourceEvent:I,target:f,identifier:V,active:s,x:H[0],y:H[1],dx:0,dy:0,dispatch:$}),O))!=null)return E=b.x-H[0]||0,W=b.y-H[1]||0,function P(C,F,B){var R=H,L;switch(C){case"start":o[V]=P,L=s++;break;case"end":delete o[V],--s;case"drag":H=kn(B||F,M),L=s;break}$.call(C,w,new Id(C,{sourceEvent:F,subject:b,target:f,identifier:V,active:L,x:H[0]+E,y:H[1]+W,dx:H[0]-R[0],dy:H[1]-R[1],dispatch:$}),O)}}return f.filter=function(w){return arguments.length?(e=typeof w=="function"?w:va(!!w),f):e},f.container=function(w){return arguments.length?(t=typeof w=="function"?w:va(w),f):t},f.subject=function(w){return arguments.length?(n=typeof w=="function"?w:va(w),f):n},f.touchable=function(w){return arguments.length?(i=typeof w=="function"?w:va(!!w),f):i},f.on=function(){var w=r.on.apply(r,arguments);return w===r?f:w},f.clickDistance=function(w){return arguments.length?(d=(w=+w)*w,f):Math.sqrt(d)},f}function gh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function q0(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Ws(){}var ws=.7,Pl=1/ws,rr="\\s*([+-]?\\d+)\\s*",_s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HO=/^#([0-9a-f]{3,8})$/,FO=new RegExp(`^rgb\\(${rr},${rr},${rr}\\)$`),GO=new RegExp(`^rgb\\(${Nn},${Nn},${Nn}\\)$`),WO=new RegExp(`^rgba\\(${rr},${rr},${rr},${_s}\\)$`),UO=new RegExp(`^rgba\\(${Nn},${Nn},${Nn},${_s}\\)$`),jO=new RegExp(`^hsl\\(${_s},${Nn},${Nn}\\)$`),YO=new RegExp(`^hsla\\(${_s},${Nn},${Nn},${_s}\\)$`),yp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};gh(Ws,Ss,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bp,formatHex:bp,formatHex8:KO,formatHsl:qO,formatRgb:wp,toString:wp});function bp(){return this.rgb().formatHex()}function KO(){return this.rgb().formatHex8()}function qO(){return X0(this).formatHsl()}function wp(){return this.rgb().formatRgb()}function Ss(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=HO.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_p(t):n===3?new Ft(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ya(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ya(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=FO.exec(e))?new Ft(t[1],t[2],t[3],1):(t=GO.exec(e))?new Ft(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=WO.exec(e))?ya(t[1],t[2],t[3],t[4]):(t=UO.exec(e))?ya(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jO.exec(e))?xp(t[1],t[2]/100,t[3]/100,1):(t=YO.exec(e))?xp(t[1],t[2]/100,t[3]/100,t[4]):yp.hasOwnProperty(e)?_p(yp[e]):e==="transparent"?new Ft(NaN,NaN,NaN,0):null}function _p(e){return new Ft(e>>16&255,e>>8&255,e&255,1)}function ya(e,t,n,i){return i<=0&&(e=t=n=NaN),new Ft(e,t,n,i)}function XO(e){return e instanceof Ws||(e=Ss(e)),e?(e=e.rgb(),new Ft(e.r,e.g,e.b,e.opacity)):new Ft}function Td(e,t,n,i){return arguments.length===1?XO(e):new Ft(e,t,n,i??1)}function Ft(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}gh(Ft,Td,q0(Ws,{brighter(e){return e=e==null?Pl:Math.pow(Pl,e),new Ft(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ws:Math.pow(ws,e),new Ft(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ft(po(this.r),po(this.g),po(this.b),Il(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Sp,formatHex:Sp,formatHex8:ZO,formatRgb:Cp,toString:Cp}));function Sp(){return`#${ao(this.r)}${ao(this.g)}${ao(this.b)}`}function ZO(){return`#${ao(this.r)}${ao(this.g)}${ao(this.b)}${ao((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cp(){const e=Il(this.opacity);return`${e===1?"rgb(":"rgba("}${po(this.r)}, ${po(this.g)}, ${po(this.b)}${e===1?")":`, ${e})`}`}function Il(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function po(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ao(e){return e=po(e),(e<16?"0":"")+e.toString(16)}function xp(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gn(e,t,n,i)}function X0(e){if(e instanceof gn)return new gn(e.h,e.s,e.l,e.opacity);if(e instanceof Ws||(e=Ss(e)),!e)return new gn;if(e instanceof gn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(t===r?s=(n-i)/a+(n<i)*6:n===r?s=(i-t)/a+2:s=(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new gn(s,a,l,e.opacity)}function JO(e,t,n,i){return arguments.length===1?X0(e):new gn(e,t,n,i??1)}function gn(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}gh(gn,JO,q0(Ws,{brighter(e){return e=e==null?Pl:Math.pow(Pl,e),new gn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ws:Math.pow(ws,e),new gn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Ft(pc(e>=240?e-240:e+120,o,i),pc(e,o,i),pc(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new gn(Ep(this.h),ba(this.s),ba(this.l),Il(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Il(this.opacity);return`${e===1?"hsl(":"hsla("}${Ep(this.h)}, ${ba(this.s)*100}%, ${ba(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ep(e){return e=(e||0)%360,e<0?e+360:e}function ba(e){return Math.max(0,Math.min(1,e||0))}function pc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Z0=e=>()=>e;function QO(e,t){return function(n){return e+n*t}}function e$(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function t$(e){return(e=+e)==1?J0:function(t,n){return n-t?e$(t,n,e):Z0(isNaN(t)?n:t)}}function J0(e,t){var n=t-e;return n?QO(e,n):Z0(isNaN(e)?t:e)}const kp=function e(t){var n=t$(t);function i(o,r){var s=n((o=Td(o)).r,(r=Td(r)).r),a=n(o.g,r.g),l=n(o.b,r.b),u=J0(o.opacity,r.opacity);return function(c){return o.r=s(c),o.g=a(c),o.b=l(c),o.opacity=u(c),o+""}}return i.gamma=e,i}(1);function xi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Md=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vc=new RegExp(Md.source,"g");function n$(e){return function(){return e}}function i$(e){return function(t){return e(t)+""}}function o$(e,t){var n=Md.lastIndex=vc.lastIndex=0,i,o,r,s=-1,a=[],l=[];for(e=e+"",t=t+"";(i=Md.exec(e))&&(o=vc.exec(t));)(r=o.index)>n&&(r=t.slice(n,r),a[s]?a[s]+=r:a[++s]=r),(i=i[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:xi(i,o)})),n=vc.lastIndex;return n<t.length&&(r=t.slice(n),a[s]?a[s]+=r:a[++s]=r),a.length<2?l[0]?i$(l[0].x):n$(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)a[(d=l[c]).i]=d.x(u);return a.join("")})}var Ap=180/Math.PI,Nd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Q0(e,t,n,i,o,r){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*Ap,skewX:Math.atan(l)*Ap,scaleX:s,scaleY:a}}var wa;function r$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Nd:Q0(t.a,t.b,t.c,t.d,t.e,t.f)}function s$(e){return e==null||(wa||(wa=document.createElementNS("http://www.w3.org/2000/svg","g")),wa.setAttribute("transform",e),!(e=wa.transform.baseVal.consolidate()))?Nd:(e=e.matrix,Q0(e.a,e.b,e.c,e.d,e.e,e.f))}function e_(e,t,n,i){function o(u){return u.length?u.pop()+" ":""}function r(u,c,d,f,h,g){if(u!==d||c!==f){var m=h.push("translate(",null,t,null,n);g.push({i:m-4,x:xi(u,d)},{i:m-2,x:xi(c,f)})}else(d||f)&&h.push("translate("+d+t+f+n)}function s(u,c,d,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:d.push(o(d)+"rotate(",null,i)-2,x:xi(u,c)})):c&&d.push(o(d)+"rotate("+c+i)}function a(u,c,d,f){u!==c?f.push({i:d.push(o(d)+"skewX(",null,i)-2,x:xi(u,c)}):c&&d.push(o(d)+"skewX("+c+i)}function l(u,c,d,f,h,g){if(u!==d||c!==f){var m=h.push(o(h)+"scale(",null,",",null,")");g.push({i:m-4,x:xi(u,d)},{i:m-2,x:xi(c,f)})}else(d!==1||f!==1)&&h.push(o(h)+"scale("+d+","+f+")")}return function(u,c){var d=[],f=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,d,f),s(u.rotate,c.rotate,d,f),a(u.skewX,c.skewX,d,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,f),u=c=null,function(h){for(var g=-1,m=f.length,p;++g<m;)d[(p=f[g]).i]=p.x(h);return d.join("")}}}var a$=e_(r$,"px, ","px)","deg)"),l$=e_(s$,", ",")",")"),u$=1e-12;function Dp(e){return((e=Math.exp(e))+1/e)/2}function c$(e){return((e=Math.exp(e))-1/e)/2}function d$(e){return((e=Math.exp(2*e))-1)/(e+1)}const f$=function e(t,n,i){function o(r,s){var a=r[0],l=r[1],u=r[2],c=s[0],d=s[1],f=s[2],h=c-a,g=d-l,m=h*h+g*g,p,y;if(m<u$)y=Math.log(f/u)/t,p=function(O){return[a+O*h,l+O*g,u*Math.exp(t*O*y)]};else{var S=Math.sqrt(m),v=(f*f-u*u+i*m)/(2*u*n*S),w=(f*f-u*u-i*m)/(2*f*n*S),M=Math.log(Math.sqrt(v*v+1)-v),I=Math.log(Math.sqrt(w*w+1)-w);y=(I-M)/t,p=function(O){var V=O*y,N=Dp(M),$=u/(n*S)*(N*d$(t*V+M)-c$(M));return[a+$*h,l+$*g,u*N/Dp(t*V+M)]}}return p.duration=y*1e3*t/Math.SQRT2,p}return o.rho=function(r){var s=Math.max(.001,+r),a=s*s,l=a*a;return e(s,a,l)},o}(Math.SQRT2,2,4);var fr=0,Ur=0,Rr=0,t_=1e3,Tl,jr,Ml=0,Ao=0,pu=0,Cs=typeof performance=="object"&&performance.now?performance:Date,n_=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ph(){return Ao||(n_(h$),Ao=Cs.now()+pu)}function h$(){Ao=0}function Nl(){this._call=this._time=this._next=null}Nl.prototype=i_.prototype={constructor:Nl,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?ph():+n)+(t==null?0:+t),!this._next&&jr!==this&&(jr?jr._next=this:Tl=this,jr=this),this._call=e,this._time=n,Od()},stop:function(){this._call&&(this._call=null,this._time=1/0,Od())}};function i_(e,t,n){var i=new Nl;return i.restart(e,t,n),i}function m$(){ph(),++fr;for(var e=Tl,t;e;)(t=Ao-e._time)>=0&&e._call.call(void 0,t),e=e._next;--fr}function Pp(){Ao=(Ml=Cs.now())+pu,fr=Ur=0;try{m$()}finally{fr=0,p$(),Ao=0}}function g$(){var e=Cs.now(),t=e-Ml;t>t_&&(pu-=t,Ml=e)}function p$(){for(var e,t=Tl,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Tl=n);jr=e,Od(i)}function Od(e){if(!fr){Ur&&(Ur=clearTimeout(Ur));var t=e-Ao;t>24?(e<1/0&&(Ur=setTimeout(Pp,e-Cs.now()-pu)),Rr&&(Rr=clearInterval(Rr))):(Rr||(Ml=Cs.now(),Rr=setInterval(g$,t_)),fr=1,n_(Pp))}}function Ip(e,t,n){var i=new Nl;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var v$=mu("start","end","cancel","interrupt"),y$=[],o_=0,Tp=1,$d=2,Ha=3,Mp=4,Rd=5,Fa=6;function vu(e,t,n,i,o,r){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;b$(e,n,{name:t,index:i,group:o,on:v$,tween:y$,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:o_})}function vh(e,t){var n=wn(e,t);if(n.state>o_)throw new Error("too late; already scheduled");return n}function zn(e,t){var n=wn(e,t);if(n.state>Ha)throw new Error("too late; already running");return n}function wn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function b$(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=i_(r,0,n.time);function r(u){n.state=Tp,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,d,f,h;if(n.state!==Tp)return l();for(c in i)if(h=i[c],h.name===n.name){if(h.state===Ha)return Ip(s);h.state===Mp?(h.state=Fa,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=Fa,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(Ip(function(){n.state===Ha&&(n.state=Mp,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=$d,n.on.call("start",e,e.__data__,n.index,n.group),n.state===$d){for(n.state=Ha,o=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=h);o.length=d+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=Rd,1),d=-1,f=o.length;++d<f;)o[d].call(e,c);n.state===Rd&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Fa,n.timer.stop(),delete i[t];for(var u in i)return;delete e.__transition}}function Ga(e,t){var n=e.__transition,i,o,r=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((i=n[s]).name!==t){r=!1;continue}o=i.state>$d&&i.state<Rd,i.state=Fa,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[s]}r&&delete e.__transition}}function w$(e){return this.each(function(){Ga(this,e)})}function _$(e,t){var n,i;return function(){var o=zn(this,e),r=o.tween;if(r!==n){i=n=r;for(var s=0,a=i.length;s<a;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function S$(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var r=zn(this,e),s=r.tween;if(s!==i){o=(i=s).slice();for(var a={name:t,value:n},l=0,u=o.length;l<u;++l)if(o[l].name===t){o[l]=a;break}l===u&&o.push(a)}r.tween=o}}function C$(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=wn(this.node(),n).tween,o=0,r=i.length,s;o<r;++o)if((s=i[o]).name===e)return s.value;return null}return this.each((t==null?_$:S$)(n,e,t))}function yh(e,t,n){var i=e._id;return e.each(function(){var o=zn(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return wn(o,i).value[t]}}function r_(e,t){var n;return(typeof t=="number"?xi:t instanceof Ss?kp:(n=Ss(t))?(t=n,kp):o$)(e,t)}function x$(e){return function(){this.removeAttribute(e)}}function E$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function k$(e,t,n){var i,o=n+"",r;return function(){var s=this.getAttribute(e);return s===o?null:s===i?r:r=t(i=s,n)}}function A$(e,t,n){var i,o=n+"",r;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?r:r=t(i=s,n)}}function D$(e,t,n){var i,o,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a)))}}function P$(e,t,n){var i,o,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a)))}}function I$(e,t){var n=gu(e),i=n==="transform"?l$:r_;return this.attrTween(e,typeof t=="function"?(n.local?P$:D$)(n,i,yh(this,"attr."+e,t)):t==null?(n.local?E$:x$)(n):(n.local?A$:k$)(n,i,t))}function T$(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function M$(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function N$(e,t){var n,i;function o(){var r=t.apply(this,arguments);return r!==i&&(n=(i=r)&&M$(e,r)),n}return o._value=t,o}function O$(e,t){var n,i;function o(){var r=t.apply(this,arguments);return r!==i&&(n=(i=r)&&T$(e,r)),n}return o._value=t,o}function $$(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=gu(e);return this.tween(n,(i.local?N$:O$)(i,t))}function R$(e,t){return function(){vh(this,e).delay=+t.apply(this,arguments)}}function V$(e,t){return t=+t,function(){vh(this,e).delay=t}}function L$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?R$:V$)(t,e)):wn(this.node(),t).delay}function z$(e,t){return function(){zn(this,e).duration=+t.apply(this,arguments)}}function B$(e,t){return t=+t,function(){zn(this,e).duration=t}}function H$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?z$:B$)(t,e)):wn(this.node(),t).duration}function F$(e,t){if(typeof t!="function")throw new Error;return function(){zn(this,e).ease=t}}function G$(e){var t=this._id;return arguments.length?this.each(F$(t,e)):wn(this.node(),t).ease}function W$(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;zn(this,e).ease=n}}function U$(e){if(typeof e!="function")throw new Error;return this.each(W$(this._id,e))}function j$(e){typeof e!="function"&&(e=V0(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r=t[o],s=r.length,a=i[o]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new li(i,this._parents,this._name,this._id)}function Y$(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l=t[a],u=n[a],c=l.length,d=s[a]=new Array(c),f,h=0;h<c;++h)(f=l[h]||u[h])&&(d[h]=f);for(;a<i;++a)s[a]=t[a];return new li(s,this._parents,this._name,this._id)}function K$(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function q$(e,t,n){var i,o,r=K$(t)?vh:zn;return function(){var s=r(this,e),a=s.on;a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}function X$(e,t){var n=this._id;return arguments.length<2?wn(this.node(),n).on.on(e):this.each(q$(n,e,t))}function Z$(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function J$(){return this.on("end.remove",Z$(this._id))}function Q$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=hh(e));for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a=i[s],l=a.length,u=r[s]=new Array(l),c,d,f=0;f<l;++f)(c=a[f])&&(d=e.call(c,c.__data__,f,a))&&("__data__"in c&&(d.__data__=c.__data__),u[f]=d,vu(u[f],t,n,f,u,wn(c,n)));return new li(r,this._parents,t,n)}function e2(e){var t=this._name,n=this._id;typeof e!="function"&&(e=R0(e));for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l=i[a],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var f=e.call(c,c.__data__,d,l),h,g=wn(c,n),m=0,p=f.length;m<p;++m)(h=f[m])&&vu(h,t,n,m,f,g);r.push(f),s.push(c)}return new li(r,s,t,n)}var t2=Gs.prototype.constructor;function n2(){return new t2(this._groups,this._parents)}function i2(e,t){var n,i,o;return function(){var r=dr(this,e),s=(this.style.removeProperty(e),dr(this,e));return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}function s_(e){return function(){this.style.removeProperty(e)}}function o2(e,t,n){var i,o=n+"",r;return function(){var s=dr(this,e);return s===o?null:s===i?r:r=t(i=s,n)}}function r2(e,t,n){var i,o,r;return function(){var s=dr(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),dr(this,e))),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}function s2(e,t){var n,i,o,r="style."+t,s="end."+r,a;return function(){var l=zn(this,e),u=l.on,c=l.value[r]==null?a||(a=s_(t)):void 0;(u!==n||o!==c)&&(i=(n=u).copy()).on(s,o=c),l.on=i}}function a2(e,t,n){var i=(e+="")=="transform"?a$:r_;return t==null?this.styleTween(e,i2(e,i)).on("end.style."+e,s_(e)):typeof t=="function"?this.styleTween(e,r2(e,i,yh(this,"style."+e,t))).each(s2(this._id,e)):this.styleTween(e,o2(e,i,t),n).on("end.style."+e,null)}function l2(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function u2(e,t,n){var i,o;function r(){var s=t.apply(this,arguments);return s!==o&&(i=(o=s)&&l2(e,s,n)),i}return r._value=t,r}function c2(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,u2(e,t,n??""))}function d2(e){return function(){this.textContent=e}}function f2(e){return function(){var t=e(this);this.textContent=t??""}}function h2(e){return this.tween("text",typeof e=="function"?f2(yh(this,"text",e)):d2(e==null?"":e+""))}function m2(e){return function(t){this.textContent=e.call(this,t)}}function g2(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&m2(o)),t}return i._value=e,i}function p2(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,g2(e))}function v2(){for(var e=this._name,t=this._id,n=a_(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s=i[r],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=wn(l,t);vu(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new li(i,this._parents,e,n)}function y2(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(r,s){var a={value:s},l={value:function(){--o===0&&r()}};n.each(function(){var u=zn(this,i),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),o===0&&r()})}var b2=0;function li(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function a_(){return++b2}var Un=Gs.prototype;li.prototype={constructor:li,select:Q$,selectAll:e2,selectChild:Un.selectChild,selectChildren:Un.selectChildren,filter:j$,merge:Y$,selection:n2,transition:v2,call:Un.call,nodes:Un.nodes,node:Un.node,size:Un.size,empty:Un.empty,each:Un.each,on:X$,attr:I$,attrTween:$$,style:a2,styleTween:c2,text:h2,textTween:p2,remove:J$,tween:C$,delay:L$,duration:H$,ease:G$,easeVarying:U$,end:y2,[Symbol.iterator]:Un[Symbol.iterator]};function w2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var _2={time:null,delay:0,duration:250,ease:w2};function S2(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function C2(e){var t,n;e instanceof li?(t=e._id,e=e._name):(t=a_(),(n=_2).time=ph(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s=i[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&vu(l,e,t,u,s,n||S2(l,t));return new li(i,this._parents,e,t)}Gs.prototype.interrupt=w$;Gs.prototype.transition=C2;const _a=e=>()=>e;function x2(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function ti(e,t,n){this.k=e,this.x=t,this.y=n}ti.prototype={constructor:ti,scale:function(e){return e===1?this:new ti(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ti(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var hr=new ti(1,0,0);ti.prototype;function yc(e){e.stopImmediatePropagation()}function Vr(e){e.preventDefault(),e.stopImmediatePropagation()}function E2(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function k2(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Np(){return this.__zoom||hr}function A2(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function D2(){return navigator.maxTouchPoints||"ontouchstart"in this}function P2(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function I2(){var e=E2,t=k2,n=P2,i=A2,o=D2,r=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=f$,u=mu("start","zoom","end"),c,d,f,h=500,g=150,m=0,p=10;function y(b){b.property("__zoom",Np).on("wheel.zoom",V,{passive:!1}).on("mousedown.zoom",N).on("dblclick.zoom",$).filter(o).on("touchstart.zoom",H).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",W).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(b,P,C,F){var B=b.selection?b.selection():b;B.property("__zoom",Np),b!==B?M(b,P,C,F):B.interrupt().each(function(){I(this,arguments).event(F).start().zoom(null,typeof P=="function"?P.apply(this,arguments):P).end()})},y.scaleBy=function(b,P,C,F){y.scaleTo(b,function(){var B=this.__zoom.k,R=typeof P=="function"?P.apply(this,arguments):P;return B*R},C,F)},y.scaleTo=function(b,P,C,F){y.transform(b,function(){var B=t.apply(this,arguments),R=this.__zoom,L=C==null?w(B):typeof C=="function"?C.apply(this,arguments):C,U=R.invert(L),j=typeof P=="function"?P.apply(this,arguments):P;return n(v(S(R,j),L,U),B,s)},C,F)},y.translateBy=function(b,P,C,F){y.transform(b,function(){return n(this.__zoom.translate(typeof P=="function"?P.apply(this,arguments):P,typeof C=="function"?C.apply(this,arguments):C),t.apply(this,arguments),s)},null,F)},y.translateTo=function(b,P,C,F,B){y.transform(b,function(){var R=t.apply(this,arguments),L=this.__zoom,U=F==null?w(R):typeof F=="function"?F.apply(this,arguments):F;return n(hr.translate(U[0],U[1]).scale(L.k).translate(typeof P=="function"?-P.apply(this,arguments):-P,typeof C=="function"?-C.apply(this,arguments):-C),R,s)},F,B)};function S(b,P){return P=Math.max(r[0],Math.min(r[1],P)),P===b.k?b:new ti(P,b.x,b.y)}function v(b,P,C){var F=P[0]-C[0]*b.k,B=P[1]-C[1]*b.k;return F===b.x&&B===b.y?b:new ti(b.k,F,B)}function w(b){return[(+b[0][0]+ +b[1][0])/2,(+b[0][1]+ +b[1][1])/2]}function M(b,P,C,F){b.on("start.zoom",function(){I(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){I(this,arguments).event(F).end()}).tween("zoom",function(){var B=this,R=arguments,L=I(B,R).event(F),U=t.apply(B,R),j=C==null?w(U):typeof C=="function"?C.apply(B,R):C,J=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),X=B.__zoom,re=typeof P=="function"?P.apply(B,R):P,ee=l(X.invert(j).concat(J/X.k),re.invert(j).concat(J/re.k));return function(le){if(le===1)le=re;else{var ue=ee(le),pe=J/ue[2];le=new ti(pe,j[0]-ue[0]*pe,j[1]-ue[1]*pe)}L.zoom(null,le)}})}function I(b,P,C){return!C&&b.__zooming||new O(b,P)}function O(b,P){this.that=b,this.args=P,this.active=0,this.sourceEvent=null,this.extent=t.apply(b,P),this.taps=0}O.prototype={event:function(b){return b&&(this.sourceEvent=b),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(b,P){return this.mouse&&b!=="mouse"&&(this.mouse[1]=P.invert(this.mouse[0])),this.touch0&&b!=="touch"&&(this.touch0[1]=P.invert(this.touch0[0])),this.touch1&&b!=="touch"&&(this.touch1[1]=P.invert(this.touch1[0])),this.that.__zoom=P,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(b){var P=mn(this.that).datum();u.call(b,this.that,new x2(b,{sourceEvent:this.sourceEvent,target:y,type:b,transform:this.that.__zoom,dispatch:u}),P)}};function V(b,...P){if(!e.apply(this,arguments))return;var C=I(this,P).event(b),F=this.__zoom,B=Math.max(r[0],Math.min(r[1],F.k*Math.pow(2,i.apply(this,arguments)))),R=kn(b);if(C.wheel)(C.mouse[0][0]!==R[0]||C.mouse[0][1]!==R[1])&&(C.mouse[1]=F.invert(C.mouse[0]=R)),clearTimeout(C.wheel);else{if(F.k===B)return;C.mouse=[R,F.invert(R)],Ga(this),C.start()}Vr(b),C.wheel=setTimeout(L,g),C.zoom("mouse",n(v(S(F,B),C.mouse[0],C.mouse[1]),C.extent,s));function L(){C.wheel=null,C.end()}}function N(b,...P){if(f||!e.apply(this,arguments))return;var C=b.currentTarget,F=I(this,P,!0).event(b),B=mn(b.view).on("mousemove.zoom",j,!0).on("mouseup.zoom",J,!0),R=kn(b,C),L=b.clientX,U=b.clientY;Y0(b.view),yc(b),F.mouse=[R,this.__zoom.invert(R)],Ga(this),F.start();function j(X){if(Vr(X),!F.moved){var re=X.clientX-L,ee=X.clientY-U;F.moved=re*re+ee*ee>m}F.event(X).zoom("mouse",n(v(F.that.__zoom,F.mouse[0]=kn(X,C),F.mouse[1]),F.extent,s))}function J(X){B.on("mousemove.zoom mouseup.zoom",null),K0(X.view,F.moved),Vr(X),F.event(X).end()}}function $(b,...P){if(e.apply(this,arguments)){var C=this.__zoom,F=kn(b.changedTouches?b.changedTouches[0]:b,this),B=C.invert(F),R=C.k*(b.shiftKey?.5:2),L=n(v(S(C,R),F,B),t.apply(this,P),s);Vr(b),a>0?mn(this).transition().duration(a).call(M,L,F,b):mn(this).call(y.transform,L,F,b)}}function H(b,...P){if(e.apply(this,arguments)){var C=b.touches,F=C.length,B=I(this,P,b.changedTouches.length===F).event(b),R,L,U,j;for(yc(b),L=0;L<F;++L)U=C[L],j=kn(U,this),j=[j,this.__zoom.invert(j),U.identifier],B.touch0?!B.touch1&&B.touch0[2]!==j[2]&&(B.touch1=j,B.taps=0):(B.touch0=j,R=!0,B.taps=1+!!c);c&&(c=clearTimeout(c)),R&&(B.taps<2&&(d=j[0],c=setTimeout(function(){c=null},h)),Ga(this),B.start())}}function E(b,...P){if(this.__zooming){var C=I(this,P).event(b),F=b.changedTouches,B=F.length,R,L,U,j;for(Vr(b),R=0;R<B;++R)L=F[R],U=kn(L,this),C.touch0&&C.touch0[2]===L.identifier?C.touch0[0]=U:C.touch1&&C.touch1[2]===L.identifier&&(C.touch1[0]=U);if(L=C.that.__zoom,C.touch1){var J=C.touch0[0],X=C.touch0[1],re=C.touch1[0],ee=C.touch1[1],le=(le=re[0]-J[0])*le+(le=re[1]-J[1])*le,ue=(ue=ee[0]-X[0])*ue+(ue=ee[1]-X[1])*ue;L=S(L,Math.sqrt(le/ue)),U=[(J[0]+re[0])/2,(J[1]+re[1])/2],j=[(X[0]+ee[0])/2,(X[1]+ee[1])/2]}else if(C.touch0)U=C.touch0[0],j=C.touch0[1];else return;C.zoom("touch",n(v(L,U,j),C.extent,s))}}function W(b,...P){if(this.__zooming){var C=I(this,P).event(b),F=b.changedTouches,B=F.length,R,L;for(yc(b),f&&clearTimeout(f),f=setTimeout(function(){f=null},h),R=0;R<B;++R)L=F[R],C.touch0&&C.touch0[2]===L.identifier?delete C.touch0:C.touch1&&C.touch1[2]===L.identifier&&delete C.touch1;if(C.touch1&&!C.touch0&&(C.touch0=C.touch1,delete C.touch1),C.touch0)C.touch0[1]=this.__zoom.invert(C.touch0[0]);else if(C.end(),C.taps===2&&(L=kn(L,this),Math.hypot(d[0]-L[0],d[1]-L[1])<p)){var U=mn(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return y.wheelDelta=function(b){return arguments.length?(i=typeof b=="function"?b:_a(+b),y):i},y.filter=function(b){return arguments.length?(e=typeof b=="function"?b:_a(!!b),y):e},y.touchable=function(b){return arguments.length?(o=typeof b=="function"?b:_a(!!b),y):o},y.extent=function(b){return arguments.length?(t=typeof b=="function"?b:_a([[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]]),y):t},y.scaleExtent=function(b){return arguments.length?(r[0]=+b[0],r[1]=+b[1],y):[r[0],r[1]]},y.translateExtent=function(b){return arguments.length?(s[0][0]=+b[0][0],s[1][0]=+b[1][0],s[0][1]=+b[0][1],s[1][1]=+b[1][1],y):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},y.constrain=function(b){return arguments.length?(n=b,y):n},y.duration=function(b){return arguments.length?(a=+b,y):a},y.interpolate=function(b){return arguments.length?(l=b,y):l},y.on=function(){var b=u.on.apply(u,arguments);return b===u?y:b},y.clickDistance=function(b){return arguments.length?(m=(b=+b)*b,y):Math.sqrt(m)},y.tapDistance=function(b){return arguments.length?(p=+b,y):p},y}var ye=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(ye||{}),bh=(e=>(e.Partial="partial",e.Full="full",e))(bh||{}),no=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(no||{}),Do=(e=>(e.Strict="strict",e.Loose="loose",e))(Do||{}),Vd=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(Vd||{}),rs=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(rs||{});function Ld(e){var t,n;const i=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,o=typeof(i==null?void 0:i.hasAttribute)=="function"?i.hasAttribute("contenteditable"):!1,r=typeof(i==null?void 0:i.closest)=="function"?i.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(i==null?void 0:i.nodeName)||o||!!r}function T2(e){return e.ctrlKey||e.metaKey||e.shiftKey}function Op(e,t,n,i){const o=t.replace("+",`
|
|
30
|
+
`).replace(`
|
|
31
|
+
|
|
32
|
+
`,`
|
|
33
|
+
+`).split(`
|
|
34
|
+
`).map(s=>s.trim().toLowerCase());if(o.length===1)return e.toLowerCase()===t.toLowerCase();i||n.add(e.toLowerCase());const r=o.every((s,a)=>n.has(s)&&Array.from(n.values())[a]===o[a]);return i&&n.delete(e.toLowerCase()),r}function M2(e,t){return n=>{if(!n.code&&!n.key)return!1;const i=N2(n.code,e);return Array.isArray(e)?e.some(o=>Op(n[i],o,t,n.type==="keyup")):Op(n[i],e,t,n.type==="keyup")}}function N2(e,t){return t.includes(e)?"code":"key"}function ss(e,t){const n=de(()=>Le(t==null?void 0:t.actInsideInputWithModifier)??!1),i=de(()=>Le(t==null?void 0:t.target)??window),o=ne(Le(e)===!0);let r=!1;const s=new Set;let a=u(Le(e));ae(()=>Le(e),(c,d)=>{typeof d=="boolean"&&typeof c!="boolean"&&l(),a=u(c)},{immediate:!0}),O0(["blur","contextmenu"],l),gp((...c)=>a(...c),c=>{r=T2(c),!((!r||r&&!n.value)&&Ld(c))&&(c.preventDefault(),o.value=!0)},{eventName:"keydown",target:i}),gp((...c)=>a(...c),c=>{if(o.value){if((!r||r&&!n.value)&&Ld(c))return;r=!1,o.value=!1}},{eventName:"keyup",target:i});function l(){r=!1,s.clear(),o.value=Le(e)===!0}function u(c){return c===null?(l(),()=>!1):typeof c=="boolean"?(l(),o.value=c,()=>!1):Array.isArray(c)||typeof c=="string"?M2(c,s):c}return o}const l_="vue-flow__node-desc",u_="vue-flow__edge-desc",O2="vue-flow__aria-live",c_=["Enter"," ","Escape"],sr={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function zd(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function Bd(e,t){const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),i=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*i)}function yu(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Po(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function d_(e,t){return{x:Po(e.x,t[0][0],t[1][0]),y:Po(e.y,t[0][1],t[1][1])}}function $p(e){const t=e.getRootNode();return"elementFromPoint"in t?t:window.document}function Vi(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function vo(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!Vi(e)}function Yr(e){return vo(e)&&"computedPosition"in e}function Sa(e){return!Number.isNaN(e)&&Number.isFinite(e)}function $2(e){return Sa(e.width)&&Sa(e.height)&&Sa(e.x)&&Sa(e.y)}function R2(e,t,n){const i={id:e.id.toString(),type:e.type??"default",dimensions:Mn({width:0,height:0}),computedPosition:Mn({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:ct(e.data)?e.data:{},events:Mn(ct(e.events)?e.events:{})};return Object.assign(t??i,e,{id:e.id.toString(),parentNode:n})}function f_(e,t,n){var i,o;const r={id:e.id.toString(),type:e.type??(t==null?void 0:t.type)??"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(i=e.sourceHandle)==null?void 0:i.toString(),targetHandle:(o=e.targetHandle)==null?void 0:o.toString(),updatable:e.updatable??(n==null?void 0:n.updatable),selectable:e.selectable??(n==null?void 0:n.selectable),focusable:e.focusable??(n==null?void 0:n.focusable),data:ct(e.data)?e.data:{},events:Mn(ct(e.events)?e.events:{}),label:e.label??"",interactionWidth:e.interactionWidth??(n==null?void 0:n.interactionWidth),...n??{}};return Object.assign(t??r,e,{id:e.id.toString()})}function h_(e,t,n,i){const o=typeof e=="string"?e:e.id,r=new Set,s=i==="source"?"target":"source";for(const a of n)a[s]===o&&r.add(a[i]);return t.filter(a=>r.has(a.id))}function V2(...e){if(e.length===3){const[r,s,a]=e;return h_(r,s,a,"target")}const[t,n]=e,i=typeof t=="string"?t:t.id;return n.filter(r=>Vi(r)&&r.source===i).map(r=>n.find(s=>vo(s)&&s.id===r.target))}function L2(...e){if(e.length===3){const[r,s,a]=e;return h_(r,s,a,"source")}const[t,n]=e,i=typeof t=="string"?t:t.id;return n.filter(r=>Vi(r)&&r.target===i).map(r=>n.find(s=>vo(s)&&s.id===r.source))}function m_({source:e,sourceHandle:t,target:n,targetHandle:i}){return`vueflow__edge-${e}${t??""}-${n}${i??""}`}function z2(e,t){return t.some(n=>Vi(n)&&n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle))}function g_({x:e,y:t},{x:n,y:i,zoom:o}){return{x:e*o+n,y:t*o+i}}function xs({x:e,y:t},{x:n,y:i,zoom:o},r=!1,s=[1,1]){const a={x:(e-n)/o,y:(t-i)/o};return r?bu(a,s):a}function p_(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function Ol({x:e,y:t,width:n,height:i}){return{x:e,y:t,x2:e+n,y2:t+i}}function v_({x:e,y:t,x2:n,y2:i}){return{x:e,y:t,width:n-e,height:i-t}}function B2(e,t){return v_(p_(Ol(e),Ol(t)))}function wh(e){let t={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let n=0;n<e.length;n++){const i=e[n];t=p_(t,Ol({...i.computedPosition,...i.dimensions}))}return v_(t)}function y_(e,t,n={x:0,y:0,zoom:1},i=!1,o=!1){const r={...xs(t,n),width:t.width/n.zoom,height:t.height/n.zoom},s=[];for(const a of e){const{dimensions:l,selectable:u=!0,hidden:c=!1}=a,d=l.width??a.width??null,f=l.height??a.height??null;if(o&&!u||c)continue;const h=Bd(r,zd(a)),g=d===null||f===null,m=i&&h>0,p=(d??0)*(f??0);(g||m||h>=p||a.dragging)&&s.push(a)}return s}function io(e,t){const n=new Set;if(typeof e=="string")n.add(e);else if(e.length>=1)for(const i of e)n.add(i.id);return t.filter(i=>n.has(i.source)||n.has(i.target))}function Rp(e,t,n,i,o,r=.1,s={x:0,y:0}){const a=t/(e.width*(1+r)),l=n/(e.height*(1+r)),u=Math.min(a,l),c=Po(u,i,o),d=e.x+e.width/2,f=e.y+e.height/2,h=t/2-d*c+(s.x??0),g=n/2-f*c+(s.y??0);return{x:h,y:g,zoom:c}}function H2(e,t){return{x:t.x+e.x,y:t.y+e.y,z:(e.z>t.z?e.z:t.z)+1}}function b_(e,t){if(!e.parentNode)return!1;const n=t(e.parentNode);return n?n.selected?!0:b_(n,t):!1}function Es(e,t){return typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(i=>`${i}=${e[i]}`).join("&")}`}function Vp(e,t,n){return e<t?Po(Math.abs(e-t),1,t)/t:e>n?-Po(Math.abs(e-n),1,t)/t:0}function w_(e,t,n=15,i=40){const o=Vp(e.x,i,t.width-i)*n,r=Vp(e.y,i,t.height-i)*n;return[o,r]}function bc(e,t){if(t){const n=e.position.x+e.dimensions.width-t.dimensions.width,i=e.position.y+e.dimensions.height-t.dimensions.height;if(n>0||i>0||e.position.x<0||e.position.y<0){let o={};if(typeof t.style=="function"?o={...t.style(t)}:t.style&&(o={...t.style}),o.width=o.width??`${t.dimensions.width}px`,o.height=o.height??`${t.dimensions.height}px`,n>0)if(typeof o.width=="string"){const r=Number(o.width.replace("px",""));o.width=`${r+n}px`}else o.width+=n;if(i>0)if(typeof o.height=="string"){const r=Number(o.height.replace("px",""));o.height=`${r+i}px`}else o.height+=i;if(e.position.x<0){const r=Math.abs(e.position.x);if(t.position.x=t.position.x-r,typeof o.width=="string"){const s=Number(o.width.replace("px",""));o.width=`${s+r}px`}else o.width+=r;e.position.x=0}if(e.position.y<0){const r=Math.abs(e.position.y);if(t.position.y=t.position.y-r,typeof o.height=="string"){const s=Number(o.height.replace("px",""));o.height=`${s+r}px`}else o.height+=r;e.position.y=0}t.dimensions.width=Number(o.width.toString().replace("px","")),t.dimensions.height=Number(o.height.toString().replace("px","")),typeof t.style=="function"?t.style=r=>{const s=t.style;return{...s(r),...o}}:t.style={...t.style,...o}}}}function Lp(e,t){var n,i;const o=e.filter(s=>s.type==="add"||s.type==="remove");for(const s of o)if(s.type==="add")t.findIndex(l=>l.id===s.item.id)===-1&&t.push(s.item);else if(s.type==="remove"){const a=t.findIndex(l=>l.id===s.id);a!==-1&&t.splice(a,1)}const r=t.map(s=>s.id);for(const s of t)for(const a of e)if(a.id===s.id)switch(a.type){case"select":s.selected=a.selected;break;case"position":if(Yr(s)&&(typeof a.position<"u"&&(s.position=a.position),typeof a.dragging<"u"&&(s.dragging=a.dragging),s.expandParent&&s.parentNode)){const l=t[r.indexOf(s.parentNode)];l&&Yr(l)&&bc(s,l)}break;case"dimensions":if(Yr(s)&&(typeof a.dimensions<"u"&&(s.dimensions=a.dimensions),typeof a.updateStyle<"u"&&a.updateStyle&&(s.style={...s.style||{},width:`${(n=a.dimensions)==null?void 0:n.width}px`,height:`${(i=a.dimensions)==null?void 0:i.height}px`}),typeof a.resizing<"u"&&(s.resizing=a.resizing),s.expandParent&&s.parentNode)){const l=t[r.indexOf(s.parentNode)];l&&Yr(l)&&(!!l.dimensions.width&&!!l.dimensions.height?bc(s,l):Ue(()=>{bc(s,l)}))}break}return t}function yi(e,t){return{id:e,type:"select",selected:t}}function zp(e){return{item:e,type:"add"}}function Bp(e){return{id:e,type:"remove"}}function Hp(e,t,n,i,o){return{id:e,source:t,target:n,sourceHandle:i||null,targetHandle:o||null,type:"remove"}}function Ei(e,t=new Set,n=!1){const i=[];for(const[o,r]of e){const s=t.has(o);!(r.selected===void 0&&!s)&&r.selected!==s&&(n&&(r.selected=s),i.push(yi(r.id,s)))}return i}function ge(e){const t=new Set;let n=!1;const i=()=>t.size>0;e&&(n=!0,t.add(e));const o=a=>{t.delete(a)};return{on:a=>{e&&n&&t.delete(e),t.add(a);const l=()=>{o(a),e&&n&&t.add(e)};return hu(l),{off:l}},off:o,trigger:a=>Promise.all(Array.from(t).map(l=>l(a))),hasListeners:i,fns:t}}function Fp(e,t,n){let i=e;do{if(i&&i.matches(t))return!0;if(i===n)return!1;i=i.parentElement}while(i);return!1}function F2(e,t,n,i,o){var r,s;const a=[];for(const l of e)(l.selected||l.id===o)&&(!l.parentNode||!b_(l,i))&&(l.draggable||t&&typeof l.draggable>"u")&&a.push(Mn({id:l.id,position:l.position||{x:0,y:0},distance:{x:n.x-((r=l.computedPosition)==null?void 0:r.x)||0,y:n.y-((s=l.computedPosition)==null?void 0:s.y)||0},from:l.computedPosition,extent:l.extent,parentNode:l.parentNode,dimensions:l.dimensions,expandParent:l.expandParent}));return a}function wc({id:e,dragItems:t,findNode:n}){const i=[];for(const o of t){const r=n(o.id);r&&i.push(r)}return[e?i.find(o=>o.id===e):i[0],i]}function __(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function G2(e,t,n){const[i,o,r,s]=typeof e!="string"?__(e.padding):[0,0,0,0];return n&&typeof n.computedPosition.x<"u"&&typeof n.computedPosition.y<"u"&&typeof n.dimensions.width<"u"&&typeof n.dimensions.height<"u"?[[n.computedPosition.x+s,n.computedPosition.y+i],[n.computedPosition.x+n.dimensions.width-o,n.computedPosition.y+n.dimensions.height-r]]:!1}function W2(e,t,n,i){let o=e.extent||n;if((o==="parent"||!Array.isArray(o)&&(o==null?void 0:o.range)==="parent")&&!e.expandParent)if(e.parentNode&&i&&e.dimensions.width&&e.dimensions.height){const r=G2(o,e,i);r&&(o=r)}else t(new yt(ht.NODE_EXTENT_INVALID,e.id)),o=n;else if(Array.isArray(o)){const r=(i==null?void 0:i.computedPosition.x)||0,s=(i==null?void 0:i.computedPosition.y)||0;o=[[o[0][0]+r,o[0][1]+s],[o[1][0]+r,o[1][1]+s]]}else if(o!=="parent"&&(o!=null&&o.range)&&Array.isArray(o.range)){const[r,s,a,l]=__(o.padding),u=(i==null?void 0:i.computedPosition.x)||0,c=(i==null?void 0:i.computedPosition.y)||0;o=[[o.range[0][0]+u+l,o.range[0][1]+c+r],[o.range[1][0]+u-s,o.range[1][1]+c-a]]}return o==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:o}function U2({width:e,height:t},n){return[n[0],[n[1][0]-(e||0),n[1][1]-(t||0)]]}function _h(e,t,n,i,o){const r=U2(e.dimensions,W2(e,n,i,o)),s=d_(t,r);return{position:{x:s.x-((o==null?void 0:o.computedPosition.x)||0),y:s.y-((o==null?void 0:o.computedPosition.y)||0)},computedPosition:s}}function $l(e,t,n=ye.Left){const i=((t==null?void 0:t.x)??0)+e.computedPosition.x,o=((t==null?void 0:t.y)??0)+e.computedPosition.y,{width:r,height:s}=t??K2(e);switch((t==null?void 0:t.position)??n){case ye.Top:return{x:i+r/2,y:o};case ye.Right:return{x:i+r,y:o+s/2};case ye.Bottom:return{x:i+r/2,y:o+s};case ye.Left:return{x:i,y:o+s/2}}}function Gp(e=[],t){return e.length&&(t?e.find(n=>n.id===t):e[0])||null}function j2({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:i,targetWidth:o,targetHeight:r,width:s,height:a,viewport:l}){const u={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+o),y2:Math.max(e.y+i,t.y+r)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);const c=Ol({x:(0-l.x)/l.zoom,y:(0-l.y)/l.zoom,width:s/l.zoom,height:a/l.zoom}),d=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),f=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(d*f)>0}function Y2(e,t,n=!1){const i=typeof e.zIndex=="number";let o=i?e.zIndex:0;const r=t(e.source),s=t(e.target);return!r||!s?0:(n&&(o=i?e.zIndex:Math.max(r.computedPosition.z||0,s.computedPosition.z||0)),o)}var ht=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(ht||{});const Wp={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid
|
|
35
|
+
Node: ${e}`,NODE_NOT_FOUND:e=>`Node not found
|
|
36
|
+
Node: ${e}`,NODE_MISSING_PARENT:(e,t)=>`Node is missing a parent
|
|
37
|
+
Node: ${e}
|
|
38
|
+
Parent: ${t}`,NODE_TYPE_MISSING:e=>`Node type is missing
|
|
39
|
+
Type: ${e}`,NODE_EXTENT_INVALID:e=>`Only child nodes can use a parent extent
|
|
40
|
+
Node: ${e}`,EDGE_INVALID:e=>`An edge needs a source and a target
|
|
41
|
+
Edge: ${e}`,EDGE_SOURCE_MISSING:(e,t)=>`Edge source is missing
|
|
42
|
+
Edge: ${e}
|
|
43
|
+
Source: ${t}`,EDGE_TARGET_MISSING:(e,t)=>`Edge target is missing
|
|
44
|
+
Edge: ${e}
|
|
45
|
+
Target: ${t}`,EDGE_TYPE_MISSING:e=>`Edge type is missing
|
|
46
|
+
Type: ${e}`,EDGE_SOURCE_TARGET_SAME:(e,t,n)=>`Edge source and target are the same
|
|
47
|
+
Edge: ${e}
|
|
48
|
+
Source: ${t}
|
|
49
|
+
Target: ${n}`,EDGE_SOURCE_TARGET_MISSING:(e,t,n)=>`Edge source or target is missing
|
|
50
|
+
Edge: ${e}
|
|
51
|
+
Source: ${t}
|
|
52
|
+
Target: ${n}`,EDGE_ORPHANED:e=>`Edge was orphaned (suddenly missing source or target) and has been removed
|
|
53
|
+
Edge: ${e}`,EDGE_NOT_FOUND:e=>`Edge not found
|
|
54
|
+
Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class yt extends Error{constructor(t,...n){var i;super((i=Wp[t])==null?void 0:i.call(Wp,...n)),this.name="VueFlowError",this.code=t,this.args=n}}function Sh(e){return"clientX"in e}function S_(e){return"sourceEvent"in e}function ai(e,t){var n,i;const o=Sh(e),r=o?e.clientX:(n=e.touches)==null?void 0:n[0].clientX,s=o?e.clientY:(i=e.touches)==null?void 0:i[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}}const Rl=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function K2(e){var t,n;return{width:((t=e.dimensions)==null?void 0:t.width)??e.width??0,height:((n=e.dimensions)==null?void 0:n.height)??e.height??0}}function bu(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}function C_(){return{handleDomNode:null,isValid:!1,connection:{source:"",target:"",sourceHandle:null,targetHandle:null},endHandle:null}}function _c(e){e==null||e.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function Up(e,t,n,i){const o=[];for(const r of t[n]||[])if(`${e.id}-${r.id}-${n}`!==i){const{x:s,y:a}=$l(e,r);o.push({id:r.id||null,type:n,nodeId:e.id,x:s,y:a})}return o}function q2(e,t,n,i,o,r){const{x:s,y:a}=ai(e),u=t.elementsFromPoint(s,a).find(g=>g.classList.contains("vue-flow__handle"));if(u){const g=u.getAttribute("data-nodeid");if(g){const m=Ch(void 0,u),p=u.getAttribute("data-handleid"),y=r({nodeId:g,id:p,type:m});if(y){const S=o.find(v=>v.nodeId===g&&v.type===m&&v.id===p);return{handle:{id:p,type:m,nodeId:g,x:(S==null?void 0:S.x)||n.x,y:(S==null?void 0:S.y)||n.y},validHandleResult:y}}}}let c=[],d=Number.POSITIVE_INFINITY;for(const g of o){const m=Math.sqrt((g.x-n.x)**2+(g.y-n.y)**2);if(m<=i){const p=r(g);m<=d&&(m<d?c=[{handle:g,validHandleResult:p}]:m===d&&c.push({handle:g,validHandleResult:p}),d=m)}}if(!c.length)return{handle:null,validHandleResult:C_()};if(c.length===1)return c[0];const f=c.some(({validHandleResult:g})=>g.isValid),h=c.some(({handle:g})=>g.type==="target");return c.find(({handle:g,validHandleResult:m})=>h?g.type==="target":f?m.isValid:!0)||c[0]}function jp(e,t,n,i,o,r,s,a,l,u,c){const d=r==="target",f=a.querySelector(`.vue-flow__handle[data-id="${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`),{x:h,y:g}=ai(e),m=a.elementFromPoint(h,g),p=m!=null&&m.classList.contains("vue-flow__handle")?m:f,y=C_();if(p){y.handleDomNode=p;const S=Ch(void 0,p),v=p.getAttribute("data-nodeid"),w=p.getAttribute("data-handleid"),M=p.classList.contains("connectable"),I=p.classList.contains("connectableend"),O={source:d?v:i,sourceHandle:d?w:o,target:d?i:v,targetHandle:d?o:w};y.connection=O,M&&I&&(n===Do.Strict?d&&S==="source"||!d&&S==="target":v!==i||w!==o)&&(y.isValid=s(O,{edges:l,nodes:u,sourceNode:c(O.source),targetNode:c(O.target)}),y.endHandle={nodeId:v,handleId:w,type:S,position:y.isValid?p.getAttribute("data-handlepos"):null})}return y}function X2({nodes:e,nodeId:t,handleId:n,handleType:i}){const o=[];for(let r=0;r<e.length;r++){const s=e[r],{handleBounds:a}=s;let l=[],u=[];a&&(l=Up(s,a,"source",`${t}-${n}-${i}`),u=Up(s,a,"target",`${t}-${n}-${i}`)),o.push(...l,...u)}return o}function Ch(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function Z2(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}const J2=["production","prod"];function wu(e,...t){x_()&&console.warn(`[Vue Flow]: ${e}`,...t)}function x_(){return!J2.includes("production")}function Yp(e,t,n,i){const o=t.querySelectorAll(`.vue-flow__handle${e}`);return Array.from(o).map(s=>{const a=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),position:s.getAttribute("data-handlepos"),x:(a.left-n.left)/i,y:(a.top-n.top)/i,...yu(s)}})}function Hd(e,t,n,i,o,r=!1,s){o.value=!1,e.selected?(r||e.selected&&t)&&(i([e]),Ue(()=>{s.blur()})):n([e])}function ct(e){return typeof Q(e)<"u"}function Q2(e,t,n,i){if(!e||!e.source||!e.target)return n(new yt(ht.EDGE_INVALID,(e==null?void 0:e.id)??"[ID UNKNOWN]")),!1;let o;return Vi(e)?o=e:o={...e,id:m_(e)},o=f_(o,void 0,i),z2(o,t)?!1:o}function eR(e,t,n,i,o){if(!t.source||!t.target)return o(new yt(ht.EDGE_INVALID,e.id)),!1;if(!n)return o(new yt(ht.EDGE_NOT_FOUND,e.id)),!1;const{id:r,...s}=e;return{...s,id:i?m_(t):r,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function Kp(e,t,n){const i={},o=[];for(let r=0;r<e.length;++r){const s=e[r];if(!vo(s)){n(new yt(ht.NODE_INVALID,s==null?void 0:s.id)||`[ID UNKNOWN|INDEX ${r}]`);continue}const a=R2(s,t(s.id),s.parentNode);s.parentNode&&(i[s.parentNode]=!0),o[r]=a}for(const r of o){const s=t(r.parentNode)||o.find(a=>a.id===r.parentNode);r.parentNode&&!s&&n(new yt(ht.NODE_MISSING_PARENT,r.id,r.parentNode)),(r.parentNode||i[r.id])&&(i[r.id]&&(r.isParent=!0),s&&(s.isParent=!0))}return o}function Sc(e,t){e.clear();for(const n of t){const{id:i,source:o,target:r,sourceHandle:s=null,targetHandle:a=null}=n,l=`${o}-source-${s}`,u=`${r}-target-${a}`,c=e.get(l)||new Map,d=e.get(u)||new Map,f=Mn({edgeId:i,source:o,target:r,sourceHandle:s,targetHandle:a});e.set(l,c.set(`${r}-${a}`,f)),e.set(u,d.set(`${o}-${s}`,f))}}function Cc(e,t,n,i,o,r,s,a){const l=[];for(const u of e){const c=Vi(u)?u:Q2(u,a,o,r);if(!c)continue;const d=n(c.source),f=n(c.target);if(!d||!f){o(new yt(ht.EDGE_SOURCE_TARGET_MISSING,c.id,c.source,c.target));continue}if(!d){o(new yt(ht.EDGE_SOURCE_MISSING,c.id,c.source));continue}if(!f){o(new yt(ht.EDGE_TARGET_MISSING,c.id,c.target));continue}if(t&&!t(c,{edges:a,nodes:s,sourceNode:d,targetNode:f})){o(new yt(ht.EDGE_INVALID,c.id));continue}const h=i(c.id);l.push({...f_(c,h,r),sourceNode:d,targetNode:f})}return l}const qp=Symbol("vueFlow"),E_=Symbol("nodeId"),k_=Symbol("nodeRef"),tR=Symbol("edgeId"),nR=Symbol("edgeRef"),_u=Symbol("slots");function A_(e){const{vueFlowRef:t,snapToGrid:n,snapGrid:i,noDragClassName:o,nodes:r,nodeExtent:s,nodeDragThreshold:a,viewport:l,autoPanOnNodeDrag:u,autoPanSpeed:c,nodesDraggable:d,panBy:f,findNode:h,multiSelectionActive:g,nodesSelectionActive:m,selectNodesOnDrag:p,removeSelectedElements:y,addSelectedNodes:S,updateNodePositions:v,emits:w}=Je(),{onStart:M,onDrag:I,onStop:O,onClick:V,el:N,disabled:$,id:H,selectable:E,dragHandle:W}=e,b=ne(!1);let P=[],C,F=null,B={x:void 0,y:void 0},R={x:0,y:0},L=null,U=!1,j=0,J=!1;const X=rR(),re=({x:ce,y:we})=>{B={x:ce,y:we};let A=!1;if(P=P.map(_=>{const x={x:ce-_.distance.x,y:we-_.distance.y},{computedPosition:D}=_h(_,n.value?bu(x,i.value):x,w.error,s.value,_.parentNode?h(_.parentNode):void 0);return A=A||_.position.x!==D.x||_.position.y!==D.y,_.position=D,_}),!!A&&(v(P,!0,!0),b.value=!0,L)){const[_,x]=wc({id:H,dragItems:P,findNode:h});I({event:L,node:_,nodes:x})}},ee=()=>{if(!F)return;const[ce,we]=w_(R,F,c.value);if(ce!==0||we!==0){const A={x:(B.x??0)-ce/l.value.zoom,y:(B.y??0)-we/l.value.zoom};f({x:ce,y:we})&&re(A)}j=requestAnimationFrame(ee)},le=(ce,we)=>{U=!0;const A=h(H);!p.value&&!g.value&&A&&(A.selected||y()),A&&Le(E)&&p.value&&Hd(A,g.value,S,y,m,!1,we);const _=X(ce.sourceEvent);if(B=_,P=F2(r.value,d.value,_,h,H),P.length){const[x,D]=wc({id:H,dragItems:P,findNode:h});M({event:ce.sourceEvent,node:x,nodes:D})}},ue=(ce,we)=>{var A;ce.sourceEvent.type==="touchmove"&&ce.sourceEvent.touches.length>1||(a.value===0&&le(ce,we),B=X(ce.sourceEvent),F=((A=t.value)==null?void 0:A.getBoundingClientRect())||null,R=ai(ce.sourceEvent,F))},pe=(ce,we)=>{const A=X(ce.sourceEvent);if(!J&&U&&u.value&&(J=!0,ee()),!U){const _=A.xSnapped-(B.x??0),x=A.ySnapped-(B.y??0);Math.sqrt(_*_+x*x)>a.value&&le(ce,we)}(B.x!==A.xSnapped||B.y!==A.ySnapped)&&P.length&&U&&(L=ce.sourceEvent,R=ai(ce.sourceEvent,F),re(A))},me=ce=>{if(!S_(ce)&&!U&&!b.value&&!g.value){const we=ce,A=X(we),_=A.xSnapped-(B.x??0),x=A.ySnapped-(B.y??0),D=Math.sqrt(_*_+x*x);D!==0&&D<=a.value&&(V==null||V(we));return}if(b.value=!1,J=!1,U=!1,B={x:void 0,y:void 0},cancelAnimationFrame(j),P.length){v(P,!1,!1);const[we,A]=wc({id:H,dragItems:P,findNode:h});O({event:ce.sourceEvent,node:we,nodes:A})}};return ae([()=>Le($),N],([ce,we],A,_)=>{if(we){const x=mn(we);ce||(C=BO().on("start",D=>ue(D,we)).on("drag",D=>pe(D,we)).on("end",D=>me(D)).filter(D=>{const T=D.target,G=Le(W);return!D.button&&(!o.value||!Fp(T,`.${o.value}`,we)&&(!G||Fp(T,G,we)))}),x.call(C)),_(()=>{x.on(".drag",null),C&&(C.on("start",null),C.on("drag",null),C.on("end",null))})}}),b}function iR(){return{doubleClick:ge(),click:ge(),mouseEnter:ge(),mouseMove:ge(),mouseLeave:ge(),contextMenu:ge(),updateStart:ge(),update:ge(),updateEnd:ge()}}function oR(e,t){const n=iR();return n.doubleClick.on(i=>{var o,r;t.edgeDoubleClick(i),(r=(o=e.events)==null?void 0:o.doubleClick)==null||r.call(o,i)}),n.click.on(i=>{var o,r;t.edgeClick(i),(r=(o=e.events)==null?void 0:o.click)==null||r.call(o,i)}),n.mouseEnter.on(i=>{var o,r;t.edgeMouseEnter(i),(r=(o=e.events)==null?void 0:o.mouseEnter)==null||r.call(o,i)}),n.mouseMove.on(i=>{var o,r;t.edgeMouseMove(i),(r=(o=e.events)==null?void 0:o.mouseMove)==null||r.call(o,i)}),n.mouseLeave.on(i=>{var o,r;t.edgeMouseLeave(i),(r=(o=e.events)==null?void 0:o.mouseLeave)==null||r.call(o,i)}),n.contextMenu.on(i=>{var o,r;t.edgeContextMenu(i),(r=(o=e.events)==null?void 0:o.contextMenu)==null||r.call(o,i)}),n.updateStart.on(i=>{var o,r;t.edgeUpdateStart(i),(r=(o=e.events)==null?void 0:o.updateStart)==null||r.call(o,i)}),n.update.on(i=>{var o,r;t.edgeUpdate(i),(r=(o=e.events)==null?void 0:o.update)==null||r.call(o,i)}),n.updateEnd.on(i=>{var o,r;t.edgeUpdateEnd(i),(r=(o=e.events)==null?void 0:o.updateEnd)==null||r.call(o,i)}),Object.entries(n).reduce((i,[o,r])=>(i.emit[o]=r.trigger,i.on[o]=r.on,i),{emit:{},on:{}})}function rR(){const{viewport:e,snapGrid:t,snapToGrid:n}=Je();return i=>{const o=S_(i)?i.sourceEvent:i,{x:r,y:s}=ai(o),a=xs({x:r,y:s},e.value),{x:l,y:u}=n.value?bu(a,t.value):a;return{xSnapped:l,ySnapped:u,...a}}}function Ca(){return!0}function D_({handleId:e,nodeId:t,type:n,isValidConnection:i,edgeUpdaterType:o,onEdgeUpdate:r,onEdgeUpdateEnd:s}){const{vueFlowRef:a,connectionMode:l,connectionRadius:u,connectOnClick:c,connectionClickStartHandle:d,nodesConnectable:f,autoPanOnConnect:h,autoPanSpeed:g,findNode:m,panBy:p,startConnection:y,updateConnection:S,endConnection:v,emits:w,viewport:M,edges:I,nodes:O,isValidConnection:V}=Je();let N=null,$=!1,H=null,E=null;function W(P){var C;const F=Le(n)==="target",B=Sh(P),R=$p(P.target);if(B&&P.button===0||!B){let L=function(D){we=ai(D,me);const{handle:T,validHandleResult:G}=q2(D,R,xs(we,M.value,!1,[1,1]),u.value,_,K=>jp(D,K,l.value,Le(t),Le(e),F?"target":"source",J,R,I.value,O.value,m));if(X=T,A||(x(),A=!0),N=G.connection,$=G.isValid,H=G.handleDomNode,!($&&X&&(E!=null&&E.endHandle)&&G.endHandle&&E.endHandle.type===G.endHandle.type&&E.endHandle.nodeId===G.endHandle.nodeId&&E.endHandle.handleId===G.endHandle.handleId)){if(S(X&&$?g_({x:X.x,y:X.y},M.value):we,G.endHandle,Z2(!!X,$)),E=G,!X&&!$&&!H)return _c(ce);N&&N.source!==N.target&&H&&(_c(ce),ce=H,H.classList.add("connecting","vue-flow__handle-connecting"),H.classList.toggle("valid",$),H.classList.toggle("vue-flow__handle-valid",$))}},U=function(D){(X||H)&&N&&$&&(r?r(D,N):w.connect(N)),w.connectEnd(D),o&&(s==null||s(D)),_c(ce),cancelAnimationFrame(re),v(D),A=!1,$=!1,N=null,H=null,R.removeEventListener("mousemove",L),R.removeEventListener("mouseup",U),R.removeEventListener("touchmove",L),R.removeEventListener("touchend",U)};const j=m(Le(t));let J=Le(i)||V.value||Ca;!J&&j&&(J=(F?j.isValidSourcePos:j.isValidTargetPos)||Ca);let X,re=0;const{x:ee,y:le}=ai(P),ue=R==null?void 0:R.elementFromPoint(ee,le),pe=Ch(Le(o),ue),me=(C=a.value)==null?void 0:C.getBoundingClientRect();if(!me||!pe)return;let ce,we=ai(P,me),A=!1;const _=X2({nodes:O.value,nodeId:Le(t),handleId:Le(e),handleType:pe}),x=()=>{if(!h.value)return;const[D,T]=w_(we,me,g.value);p({x:D,y:T}),re=requestAnimationFrame(x)};y({nodeId:Le(t),handleId:Le(e),type:pe,position:(ue==null?void 0:ue.getAttribute("data-handlepos"))||ye.Top},{x:ee-me.left,y:le-me.top}),w.connectStart({event:P,nodeId:Le(t),handleId:Le(e),handleType:pe}),R.addEventListener("mousemove",L),R.addEventListener("mouseup",U),R.addEventListener("touchmove",L),R.addEventListener("touchend",U)}}function b(P){if(!c.value)return;const C=Le(n)==="target";if(!d.value)w.clickConnectStart({event:P,nodeId:Le(t),handleId:Le(e)}),y({nodeId:Le(t),type:Le(n),handleId:Le(e)},void 0,!0);else{let F=Le(i)||V.value||Ca;const B=m(Le(t));if(!F&&B&&(F=(C?B.isValidSourcePos:B.isValidTargetPos)||Ca),B&&(typeof B.connectable>"u"?f.value:B.connectable)===!1)return;const R=$p(P.target),{connection:L,isValid:U}=jp(P,{nodeId:Le(t),id:Le(e),type:Le(n)},l.value,d.value.nodeId,d.value.handleId||null,d.value.type,F,R,I.value,O.value,m),j=L.source===L.target;U&&!j&&w.connect(L),w.clickConnectEnd(P),v(P,!0)}}return{handlePointerDown:W,handleClick:b}}function sR(){return je(E_,"")}function P_(e){const t=e??sR()??"",n=je(k_,ne(null)),{findNode:i,edges:o,emits:r}=Je(),s=i(t);return s||r.error(new yt(ht.NODE_NOT_FOUND,t)),{id:t,nodeEl:n,node:s,parentNode:z(()=>i(s.parentNode)),connectedEdges:z(()=>io([s],o.value))}}function aR(){return{doubleClick:ge(),click:ge(),mouseEnter:ge(),mouseMove:ge(),mouseLeave:ge(),contextMenu:ge(),dragStart:ge(),drag:ge(),dragStop:ge()}}function lR(e,t){const n=aR();return n.doubleClick.on(i=>{var o,r;t.nodeDoubleClick(i),(r=(o=e.events)==null?void 0:o.doubleClick)==null||r.call(o,i)}),n.click.on(i=>{var o,r;t.nodeClick(i),(r=(o=e.events)==null?void 0:o.click)==null||r.call(o,i)}),n.mouseEnter.on(i=>{var o,r;t.nodeMouseEnter(i),(r=(o=e.events)==null?void 0:o.mouseEnter)==null||r.call(o,i)}),n.mouseMove.on(i=>{var o,r;t.nodeMouseMove(i),(r=(o=e.events)==null?void 0:o.mouseMove)==null||r.call(o,i)}),n.mouseLeave.on(i=>{var o,r;t.nodeMouseLeave(i),(r=(o=e.events)==null?void 0:o.mouseLeave)==null||r.call(o,i)}),n.contextMenu.on(i=>{var o,r;t.nodeContextMenu(i),(r=(o=e.events)==null?void 0:o.contextMenu)==null||r.call(o,i)}),n.dragStart.on(i=>{var o,r;t.nodeDragStart(i),(r=(o=e.events)==null?void 0:o.dragStart)==null||r.call(o,i)}),n.drag.on(i=>{var o,r;t.nodeDrag(i),(r=(o=e.events)==null?void 0:o.drag)==null||r.call(o,i)}),n.dragStop.on(i=>{var o,r;t.nodeDragStop(i),(r=(o=e.events)==null?void 0:o.dragStop)==null||r.call(o,i)}),Object.entries(n).reduce((i,[o,r])=>(i.emit[o]=r.trigger,i.on[o]=r.on,i),{emit:{},on:{}})}function I_(){const{getSelectedNodes:e,nodeExtent:t,updateNodePositions:n,findNode:i,snapGrid:o,snapToGrid:r,nodesDraggable:s,emits:a}=Je();return(l,u=!1)=>{const c=r.value?o.value[0]:5,d=r.value?o.value[1]:5,f=u?4:1,h=l.x*c*f,g=l.y*d*f,m=[];for(const p of e.value)if(p.draggable||s&&typeof p.draggable>"u"){const y={x:p.computedPosition.x+h,y:p.computedPosition.y+g},{computedPosition:S}=_h(p,y,a.error,t.value,p.parentNode?i(p.parentNode):void 0);m.push({id:p.id,position:S,from:p.position,distance:{x:l.x,y:l.y},dimensions:p.dimensions})}n(m,!0,!1)}}const xc=.1;function gi(){return wu("Viewport not initialized yet."),Promise.resolve(!1)}const uR={zoomIn:gi,zoomOut:gi,zoomTo:gi,fitView:gi,setCenter:gi,fitBounds:gi,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:gi,setTransform:gi,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function cR(e){function t(i,o){return new Promise(r=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.scaleBy(Ec(e.d3Selection,o,()=>{r(!0)}),i):r(!1)})}function n(i,o,r,s){return new Promise(a=>{const{x:l,y:u}=d_({x:-i,y:-o},e.translateExtent),c=hr.translate(-l,-u).scale(r);e.d3Selection&&e.d3Zoom?e.d3Zoom.transform(Ec(e.d3Selection,s,()=>{a(!0)}),c):a(!1)})}return z(()=>e.d3Zoom&&e.d3Selection&&e.dimensions.width&&e.dimensions.height?{viewportInitialized:!0,zoomIn:o=>t(1.2,o==null?void 0:o.duration),zoomOut:o=>t(1/1.2,o==null?void 0:o.duration),zoomTo:(o,r)=>new Promise(s=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.scaleTo(Ec(e.d3Selection,r==null?void 0:r.duration,()=>{s(!0)}),o):s(!1)}),setViewport:(o,r)=>n(o.x,o.y,o.zoom,r==null?void 0:r.duration),setTransform:(o,r)=>n(o.x,o.y,o.zoom,r==null?void 0:r.duration),getViewport:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),getTransform:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),fitView:(o={padding:xc,includeHiddenNodes:!1,duration:0})=>{var r,s;const a=[];for(const f of e.nodes)f.dimensions.width&&f.dimensions.height&&((o==null?void 0:o.includeHiddenNodes)||!f.hidden)&&(!((r=o.nodes)!=null&&r.length)||(s=o.nodes)!=null&&s.length&&o.nodes.includes(f.id))&&a.push(f);if(!a.length)return Promise.resolve(!1);const l=wh(a),{x:u,y:c,zoom:d}=Rp(l,e.dimensions.width,e.dimensions.height,o.minZoom??e.minZoom,o.maxZoom??e.maxZoom,o.padding??xc,o.offset);return n(u,c,d,o==null?void 0:o.duration)},setCenter:(o,r,s)=>{const a=typeof(s==null?void 0:s.zoom)<"u"?s.zoom:e.maxZoom,l=e.dimensions.width/2-o*a,u=e.dimensions.height/2-r*a;return n(l,u,a,s==null?void 0:s.duration)},fitBounds:(o,r={padding:xc})=>{const{x:s,y:a,zoom:l}=Rp(o,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,r.padding);return n(s,a,l,r==null?void 0:r.duration)},project:o=>xs(o,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:o=>{if(e.vueFlowRef){const{x:r,y:s}=e.vueFlowRef.getBoundingClientRect(),a={x:o.x-r,y:o.y-s};return xs(a,e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:o=>{if(e.vueFlowRef){const{x:r,y:s}=e.vueFlowRef.getBoundingClientRect(),a={x:o.x+r,y:o.y+s};return g_(a,e.viewport)}return{x:0,y:0}}}:uR)}function Ec(e,t=0,n){return e.transition().duration(t).on("end",n)}function dR(e,t,n){const i=Bi(!0);return i.run(()=>{const o=()=>{i.run(()=>{let m,p,y=!!(n.nodes.value.length||n.edges.value.length);m=Go([e.modelValue,()=>{var S,v;return(v=(S=e.modelValue)==null?void 0:S.value)==null?void 0:v.length}],([S])=>{S&&Array.isArray(S)&&(p==null||p.pause(),n.setElements(S),!p&&!y&&S.length?y=!0:p==null||p.resume())}),p=Go([n.nodes,n.edges,()=>n.edges.value.length,()=>n.nodes.value.length],([S,v])=>{var w;(w=e.modelValue)!=null&&w.value&&Array.isArray(e.modelValue.value)&&(m==null||m.pause(),e.modelValue.value=[...S,...v],Ue(()=>{m==null||m.resume()}))},{immediate:y}),it(()=>{m==null||m.stop(),p==null||p.stop()})})},r=()=>{i.run(()=>{let m,p,y=!!n.nodes.value.length;m=Go([e.nodes,()=>{var S,v;return(v=(S=e.nodes)==null?void 0:S.value)==null?void 0:v.length}],([S])=>{S&&Array.isArray(S)&&(p==null||p.pause(),n.setNodes(S),!p&&!y&&S.length?y=!0:p==null||p.resume())}),p=Go([n.nodes,()=>n.nodes.value.length],([S])=>{var v;(v=e.nodes)!=null&&v.value&&Array.isArray(e.nodes.value)&&(m==null||m.pause(),e.nodes.value=[...S],Ue(()=>{m==null||m.resume()}))},{immediate:y}),it(()=>{m==null||m.stop(),p==null||p.stop()})})},s=()=>{i.run(()=>{let m,p,y=!!n.edges.value.length;m=Go([e.edges,()=>{var S,v;return(v=(S=e.edges)==null?void 0:S.value)==null?void 0:v.length}],([S])=>{S&&Array.isArray(S)&&(p==null||p.pause(),n.setEdges(S),!p&&!y&&S.length?y=!0:p==null||p.resume())}),p=Go([n.edges,()=>n.edges.value.length],([S])=>{var v;(v=e.edges)!=null&&v.value&&Array.isArray(e.edges.value)&&(m==null||m.pause(),e.edges.value=[...S],Ue(()=>{m==null||m.resume()}))},{immediate:y}),it(()=>{m==null||m.stop(),p==null||p.stop()})})},a=()=>{i.run(()=>{ae(()=>t.maxZoom,()=>{t.maxZoom&&ct(t.maxZoom)&&n.setMaxZoom(t.maxZoom)},{immediate:!0})})},l=()=>{i.run(()=>{ae(()=>t.minZoom,()=>{t.minZoom&&ct(t.minZoom)&&n.setMinZoom(t.minZoom)},{immediate:!0})})},u=()=>{i.run(()=>{ae(()=>t.translateExtent,()=>{t.translateExtent&&ct(t.translateExtent)&&n.setTranslateExtent(t.translateExtent)},{immediate:!0})})},c=()=>{i.run(()=>{ae(()=>t.nodeExtent,()=>{t.nodeExtent&&ct(t.nodeExtent)&&n.setNodeExtent(t.nodeExtent)},{immediate:!0})})},d=()=>{i.run(()=>{ae(()=>t.applyDefault,()=>{ct(t.applyDefault)&&(n.applyDefault.value=t.applyDefault)},{immediate:!0})})},f=()=>{i.run(()=>{const m=async p=>{let y=p;typeof t.autoConnect=="function"&&(y=await t.autoConnect(p)),y!==!1&&n.addEdges([y])};ae(()=>t.autoConnect,()=>{ct(t.autoConnect)&&(n.autoConnect.value=t.autoConnect)},{immediate:!0}),ae(n.autoConnect,(p,y,S)=>{p?n.onConnect(m):n.hooks.value.connect.off(m),S(()=>{n.hooks.value.connect.off(m)})},{immediate:!0})})},h=()=>{const m=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const p of Object.keys(t)){const y=p;if(!m.includes(y)){const S=de(()=>t[y]),v=n[y];Ve(v)&&i.run(()=>{ae(S,w=>{ct(w)&&(v.value=w)},{immediate:!0})})}}};(()=>{o(),r(),s(),l(),a(),u(),c(),d(),f(),h()})()}),()=>i.stop()}function fR(){return{edgesChange:ge(),nodesChange:ge(),nodeDoubleClick:ge(),nodeClick:ge(),nodeMouseEnter:ge(),nodeMouseMove:ge(),nodeMouseLeave:ge(),nodeContextMenu:ge(),nodeDragStart:ge(),nodeDrag:ge(),nodeDragStop:ge(),nodesInitialized:ge(),miniMapNodeClick:ge(),miniMapNodeDoubleClick:ge(),miniMapNodeMouseEnter:ge(),miniMapNodeMouseMove:ge(),miniMapNodeMouseLeave:ge(),connect:ge(),connectStart:ge(),connectEnd:ge(),clickConnectStart:ge(),clickConnectEnd:ge(),paneReady:ge(),init:ge(),move:ge(),moveStart:ge(),moveEnd:ge(),selectionDragStart:ge(),selectionDrag:ge(),selectionDragStop:ge(),selectionContextMenu:ge(),selectionStart:ge(),selectionEnd:ge(),viewportChangeStart:ge(),viewportChange:ge(),viewportChangeEnd:ge(),paneScroll:ge(),paneClick:ge(),paneContextMenu:ge(),paneMouseEnter:ge(),paneMouseMove:ge(),paneMouseLeave:ge(),edgeContextMenu:ge(),edgeMouseEnter:ge(),edgeMouseMove:ge(),edgeMouseLeave:ge(),edgeDoubleClick:ge(),edgeClick:ge(),edgeUpdateStart:ge(),edgeUpdate:ge(),edgeUpdateEnd:ge(),updateNodeInternals:ge(),error:ge(e=>wu(e.message))}}function hR(e,t){Bs(()=>{for(const[n,i]of Object.entries(t.value)){const o=r=>{e(n,r)};i.fns.add(o),hu(()=>{i.off(o)})}})}function T_(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:bh.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:rs.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:no.Bezier,style:{}},connectionMode:Do.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Rl()?"Meta":"Control",zoomActivationKeyCode:Rl()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:fR(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const mR=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function gR(e,t,n){const i=cR(e),o=_=>{const x=_??[];e.hooks.updateNodeInternals.trigger(x)},r=_=>L2(_,e.nodes,e.edges),s=_=>V2(_,e.nodes,e.edges),a=_=>io(_,e.edges),l=({id:_,type:x,nodeId:D})=>{var T;return Array.from(((T=e.connectionLookup.get(`${D}-${x}-${_??null}`))==null?void 0:T.values())??[])},u=_=>{if(_)return t.value.get(_)},c=_=>{if(_)return n.value.get(_)},d=(_,x,D)=>{var T,G;const K=[];for(const Y of _){const Z={id:Y.id,type:"position",dragging:D,from:Y.from};if(x&&(Z.position=Y.position,Y.parentNode)){const q=u(Y.parentNode);Z.position={x:Z.position.x-(((T=q==null?void 0:q.computedPosition)==null?void 0:T.x)??0),y:Z.position.y-(((G=q==null?void 0:q.computedPosition)==null?void 0:G.y)??0)}}K.push(Z)}K!=null&&K.length&&e.hooks.nodesChange.trigger(K)},f=_=>{if(!e.vueFlowRef)return;const x=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!x)return;const D=window.getComputedStyle(x),{m22:T}=new window.DOMMatrixReadOnly(D.transform),G=[];for(let K=0;K<_.length;++K){const Y=_[K],Z=u(Y.id);if(Z){const q=yu(Y.nodeElement);if(!!(q.width&&q.height&&(Z.dimensions.width!==q.width||Z.dimensions.height!==q.height||Y.forceUpdate))){const te=Y.nodeElement.getBoundingClientRect();Z.dimensions=q,Z.handleBounds.source=Yp(".source",Y.nodeElement,te,T),Z.handleBounds.target=Yp(".target",Y.nodeElement,te,T),G.push({id:Z.id,type:"dimensions",dimensions:q})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&i.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),G.length&&e.hooks.nodesChange.trigger(G)},h=(_,x)=>{const D=new Set,T=new Set;for(const Y of _)vo(Y)?D.add(Y.id):Vi(Y)&&T.add(Y.id);const G=Ei(t.value,D,!0),K=Ei(n.value,T);if(e.multiSelectionActive){for(const Y of D)G.push(yi(Y,x));for(const Y of T)K.push(yi(Y,x))}G.length&&e.hooks.nodesChange.trigger(G),K.length&&e.hooks.edgesChange.trigger(K)},g=_=>{if(e.multiSelectionActive){const x=_.map(D=>yi(D.id,!0));e.hooks.nodesChange.trigger(x);return}e.hooks.nodesChange.trigger(Ei(t.value,new Set(_.map(x=>x.id)),!0)),e.hooks.edgesChange.trigger(Ei(n.value))},m=_=>{if(e.multiSelectionActive){const x=_.map(D=>yi(D.id,!0));e.hooks.edgesChange.trigger(x);return}e.hooks.edgesChange.trigger(Ei(n.value,new Set(_.map(x=>x.id)))),e.hooks.nodesChange.trigger(Ei(t.value,new Set,!0))},p=_=>{h(_,!0)},y=_=>{const D=(_||e.nodes).map(T=>(T.selected=!1,yi(T.id,!1)));e.hooks.nodesChange.trigger(D)},S=_=>{const D=(_||e.edges).map(T=>(T.selected=!1,yi(T.id,!1)));e.hooks.edgesChange.trigger(D)},v=_=>{if(!_||!_.length)return h([],!1);const x=_.reduce((D,T)=>{const G=yi(T.id,!1);return vo(T)?D.nodes.push(G):D.edges.push(G),D},{nodes:[],edges:[]});x.nodes.length&&e.hooks.nodesChange.trigger(x.nodes),x.edges.length&&e.hooks.edgesChange.trigger(x.edges)},w=_=>{var x;(x=e.d3Zoom)==null||x.scaleExtent([_,e.maxZoom]),e.minZoom=_},M=_=>{var x;(x=e.d3Zoom)==null||x.scaleExtent([e.minZoom,_]),e.maxZoom=_},I=_=>{var x;(x=e.d3Zoom)==null||x.translateExtent(_),e.translateExtent=_},O=_=>{e.nodeExtent=_,o()},V=_=>{var x;(x=e.d3Zoom)==null||x.clickDistance(_)},N=_=>{e.nodesDraggable=_,e.nodesConnectable=_,e.elementsSelectable=_},$=_=>{const x=_ instanceof Function?_(e.nodes):_;!e.initialized&&!x.length||(e.nodes=Kp(x,u,e.hooks.error.trigger))},H=_=>{const x=_ instanceof Function?_(e.edges):_;if(!e.initialized&&!x.length)return;const D=Cc(x,e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);Sc(e.connectionLookup,D),e.edges=D},E=_=>{const x=_ instanceof Function?_([...e.nodes,...e.edges]):_;!e.initialized&&!x.length||($(x.filter(vo)),H(x.filter(Vi)))},W=_=>{let x=_ instanceof Function?_(e.nodes):_;x=Array.isArray(x)?x:[x];const D=Kp(x,u,e.hooks.error.trigger),T=[];for(const G of D)T.push(zp(G));T.length&&e.hooks.nodesChange.trigger(T)},b=_=>{let x=_ instanceof Function?_(e.edges):_;x=Array.isArray(x)?x:[x];const D=Cc(x,e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),T=[];for(const G of D)T.push(zp(G));T.length&&e.hooks.edgesChange.trigger(T)},P=(_,x=!0,D=!1)=>{const T=_ instanceof Function?_(e.nodes):_,G=Array.isArray(T)?T:[T],K=[],Y=[];function Z(fe){const te=a(fe);for(const oe of te)(!ct(oe.deletable)||oe.deletable)&&Y.push(Hp(oe.id,oe.source,oe.target,oe.sourceHandle,oe.targetHandle))}function q(fe){const te=[];for(const oe of e.nodes)oe.parentNode===fe&&te.push(oe);if(te.length){for(const oe of te)K.push(Bp(oe.id));x&&Z(te);for(const oe of te)q(oe.id)}}for(const fe of G){const te=typeof fe=="string"?u(fe):fe;te&&(ct(te.deletable)&&!te.deletable||(K.push(Bp(te.id)),x&&Z([te]),D&&q(te.id)))}Y.length&&e.hooks.edgesChange.trigger(Y),K.length&&e.hooks.nodesChange.trigger(K)},C=_=>{const x=_ instanceof Function?_(e.edges):_,D=Array.isArray(x)?x:[x],T=[];for(const G of D){const K=typeof G=="string"?c(G):G;K&&(ct(K.deletable)&&!K.deletable||T.push(Hp(typeof G=="string"?G:G.id,K.source,K.target,K.sourceHandle,K.targetHandle)))}e.hooks.edgesChange.trigger(T)},F=(_,x,D=!0)=>{const T=c(_.id),G=eR(_,x,T,D,e.hooks.error.trigger);if(G){const[K]=Cc([G],e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges.splice(e.edges.indexOf(T),1,K),Sc(e.connectionLookup,[K]),K}return!1},B=(_,x,D={replace:!1})=>{const T=c(_);if(!T)return;const G=typeof x=="function"?x(T):x;T.data=D.replace?G:{...T.data,...G}},R=_=>Lp(_,e.nodes),L=_=>{const x=Lp(_,e.edges);return Sc(e.connectionLookup,x),x},U=(_,x,D={replace:!1})=>{const T=u(_);if(!T)return;const G=typeof x=="function"?x(T):x;D.replace?e.nodes.splice(e.nodes.indexOf(T),1,G):Object.assign(T,G)},j=(_,x,D={replace:!1})=>{const T=u(_);if(!T)return;const G=typeof x=="function"?x(T):x;T.data=D.replace?G:{...T.data,...G}},J=(_,x,D=!1)=>{D?e.connectionClickStartHandle=_:e.connectionStartHandle=_,e.connectionEndHandle=null,e.connectionStatus=null,x&&(e.connectionPosition=x)},X=(_,x=null,D=null)=>{e.connectionStartHandle&&(e.connectionPosition=_,e.connectionEndHandle=x,e.connectionStatus=D)},re=(_,x)=>{e.connectionPosition={x:Number.NaN,y:Number.NaN},e.connectionEndHandle=null,e.connectionStatus=null,x?e.connectionClickStartHandle=null:e.connectionStartHandle=null},ee=_=>{const x=$2(_),D=x?null:Yr(_)?_:u(_.id);return!x&&!D?[null,null,x]:[x?_:zd(D),D,x]},le=(_,x=!0,D=e.nodes)=>{const[T,G,K]=ee(_);if(!T)return[];const Y=[];for(const Z of D||e.nodes){if(!K&&(Z.id===G.id||!Z.computedPosition))continue;const q=zd(Z),fe=Bd(q,T);(x&&fe>0||fe>=Number(T.width)*Number(T.height))&&Y.push(Z)}return Y},ue=(_,x,D=!0)=>{const[T]=ee(_);if(!T)return!1;const G=Bd(T,x);return D&&G>0||G>=Number(T.width)*Number(T.height)},pe=_=>{const{viewport:x,dimensions:D,d3Zoom:T,d3Selection:G,translateExtent:K}=e;if(!T||!G||!_.x&&!_.y)return!1;const Y=hr.translate(x.x+_.x,x.y+_.y).scale(x.zoom),Z=[[0,0],[D.width,D.height]],q=T.constrain()(Y,Z,K),fe=e.viewport.x!==q.x||e.viewport.y!==q.y||e.viewport.zoom!==q.k;return T.transform(G,q),fe},me=_=>{const x=_ instanceof Function?_(e):_,D=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];ct(x.defaultEdgeOptions)&&(e.defaultEdgeOptions=x.defaultEdgeOptions);const T=x.modelValue||x.nodes||x.edges?[]:void 0;T&&(x.modelValue&&T.push(...x.modelValue),x.nodes&&T.push(...x.nodes),x.edges&&T.push(...x.edges),E(T));const G=()=>{ct(x.maxZoom)&&M(x.maxZoom),ct(x.minZoom)&&w(x.minZoom),ct(x.translateExtent)&&I(x.translateExtent)};for(const K of Object.keys(x)){const Y=K,Z=x[Y];![...mR,...D].includes(Y)&&ct(Z)&&(e[Y]=Z)}Dd(()=>e.d3Zoom).not.toBeNull().then(G),e.initialized||(e.initialized=!0)};return{updateNodePositions:d,updateNodeDimensions:f,setElements:E,setNodes:$,setEdges:H,addNodes:W,addEdges:b,removeNodes:P,removeEdges:C,findNode:u,findEdge:c,updateEdge:F,updateEdgeData:B,updateNode:U,updateNodeData:j,applyEdgeChanges:L,applyNodeChanges:R,addSelectedElements:p,addSelectedNodes:g,addSelectedEdges:m,setMinZoom:w,setMaxZoom:M,setTranslateExtent:I,setNodeExtent:O,setPaneClickDistance:V,removeSelectedElements:v,removeSelectedNodes:y,removeSelectedEdges:S,startConnection:J,updateConnection:X,endConnection:re,setInteractive:N,setState:me,getIntersectingNodes:le,getIncomers:r,getOutgoers:s,getConnectedEdges:a,getHandleConnections:l,isNodeIntersecting:ue,panBy:pe,fitView:_=>i.value.fitView(_),zoomIn:_=>i.value.zoomIn(_),zoomOut:_=>i.value.zoomOut(_),zoomTo:(_,x)=>i.value.zoomTo(_,x),setViewport:(_,x)=>i.value.setViewport(_,x),setTransform:(_,x)=>i.value.setTransform(_,x),getViewport:()=>i.value.getViewport(),getTransform:()=>i.value.getTransform(),setCenter:(_,x,D)=>i.value.setCenter(_,x,D),fitBounds:(_,x)=>i.value.fitBounds(_,x),project:_=>i.value.project(_),screenToFlowCoordinate:_=>i.value.screenToFlowCoordinate(_),flowToScreenCoordinate:_=>i.value.flowToScreenCoordinate(_),toObject:()=>{const _=[],x=[];for(const D of e.nodes){const{computedPosition:T,handleBounds:G,selected:K,dimensions:Y,isParent:Z,resizing:q,dragging:fe,events:te,...oe}=D;_.push(oe)}for(const D of e.edges){const{selected:T,sourceNode:G,targetNode:K,events:Y,...Z}=D;x.push(Z)}return JSON.parse(JSON.stringify({nodes:_,edges:x,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:_=>new Promise(x=>{const{nodes:D,edges:T,position:G,zoom:K,viewport:Y}=_;if(D&&$(D),T&&H(T),Y!=null&&Y.x&&(Y!=null&&Y.y)||G){const Z=(Y==null?void 0:Y.x)||G[0],q=(Y==null?void 0:Y.y)||G[1],fe=(Y==null?void 0:Y.zoom)||K||e.viewport.zoom;return Dd(()=>i.value.viewportInitialized).toBe(!0).then(()=>{i.value.setViewport({x:Z,y:q,zoom:fe}).then(()=>{x(!0)})})}else x(!0)}),updateNodeInternals:o,viewportHelper:i,$reset:()=>{const _=T_();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const x=hr.translate(_.defaultViewport.x??0,_.defaultViewport.y??0).scale(Po(_.defaultViewport.zoom??1,_.minZoom,_.maxZoom)),D=e.viewportRef.getBoundingClientRect(),T=[[0,0],[D.width,D.height]],G=e.d3Zoom.constrain()(x,T,_.translateExtent);e.d3Zoom.transform(e.d3Selection,G)}me(_)},$destroy:()=>{}}}const pR=["data-id","data-handleid","data-nodeid","data-handlepos"],vR={name:"Handle",compatConfig:{MODE:3}},mr=Pe({...vR,props:{id:{default:null},type:{},position:{default:()=>ye.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=rb(e,["position","connectable","connectableStart","connectableEnd","id"]),i=de(()=>n.type??"source"),o=de(()=>n.isValidConnection??null),{connectionStartHandle:r,connectionClickStartHandle:s,connectionEndHandle:a,vueFlowRef:l,nodesConnectable:u,noDragClassName:c,noPanClassName:d}=Je(),{id:f,node:h,nodeEl:g,connectedEdges:m}=P_(),p=ne(),y=de(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),S=de(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),v=de(()=>{var $,H,E,W,b,P;return(($=r.value)==null?void 0:$.nodeId)===f&&((H=r.value)==null?void 0:H.handleId)===e.id&&((E=r.value)==null?void 0:E.type)===i.value||((W=a.value)==null?void 0:W.nodeId)===f&&((b=a.value)==null?void 0:b.handleId)===e.id&&((P=a.value)==null?void 0:P.type)===i.value}),w=de(()=>{var $,H,E;return(($=s.value)==null?void 0:$.nodeId)===f&&((H=s.value)==null?void 0:H.handleId)===e.id&&((E=s.value)==null?void 0:E.type)===i.value}),{handlePointerDown:M,handleClick:I}=D_({nodeId:f,handleId:e.id,isValidConnection:o,type:i}),O=z(()=>typeof e.connectable=="string"&&e.connectable==="single"?!m.value.some($=>{const H=$[`${i.value}Handle`];return $[i.value]!==f?!1:H?H===e.id:!0}):typeof e.connectable=="number"?m.value.filter($=>{const H=$[`${i.value}Handle`];return $[i.value]!==f?!1:H?H===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(h,m.value):ct(e.connectable)?e.connectable:u.value);_t(()=>{var $;if(!h.dimensions.width||!h.dimensions.height)return;const H=($=h.handleBounds[i.value])==null?void 0:$.find(B=>B.id===e.id);if(!l.value||H)return;const E=l.value.querySelector(".vue-flow__transformationpane");if(!g.value||!p.value||!E||!e.id)return;const W=g.value.getBoundingClientRect(),b=p.value.getBoundingClientRect(),P=window.getComputedStyle(E),{m22:C}=new window.DOMMatrixReadOnly(P.transform),F={id:e.id,position:e.position,x:(b.left-W.left)/C,y:(b.top-W.top)/C,...yu(p.value)};h.handleBounds[i.value]=[...h.handleBounds[i.value]??[],F]}),Hs(()=>{const $=h.handleBounds[i.value];$&&(h.handleBounds[i.value]=$.filter(H=>H.id!==e.id))});function V($){const H=Sh($);O.value&&y.value&&(H&&$.button===0||!H)&&M($)}function N($){!f||!s.value&&!y.value||O.value&&I($)}return t({handleClick:I,handlePointerDown:M,onClick:N,onPointerDown:V}),($,H)=>(se(),Ae("div",{ref_key:"handle",ref:p,"data-id":`${Q(f)}-${e.id}-${i.value}`,"data-handleid":e.id,"data-nodeid":Q(f),"data-handlepos":$.position,class:jt(["vue-flow__handle",[`vue-flow__handle-${$.position}`,`vue-flow__handle-${e.id}`,Q(c),Q(d),i.value,{connectable:O.value,connecting:w.value,connectablestart:y.value,connectableend:S.value,connectionindicator:O.value&&(y.value&&!v.value||S.value&&v.value)}]]),onMousedown:V,onTouchstartPassive:V,onClick:N},[cn($.$slots,"default",{id:$.id})],42,pR))}}),Su=function({sourcePosition:e=ye.Bottom,targetPosition:t=ye.Top,label:n,connectable:i=!0,isValidTargetPos:o,isValidSourcePos:r,data:s}){const a=s.label||n;return[Me(mr,{type:"target",position:t,connectable:i,isValidConnection:o}),typeof a!="string"&&a?Me(a):Me(be,[a]),Me(mr,{type:"source",position:e,connectable:i,isValidConnection:r})]};Su.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"];Su.inheritAttrs=!1;Su.compatConfig={MODE:3};const yR=Su,Cu=function({targetPosition:e=ye.Top,label:t,connectable:n=!0,isValidTargetPos:i,data:o}){const r=o.label||t;return[Me(mr,{type:"target",position:e,connectable:n,isValidConnection:i}),typeof r!="string"&&r?Me(r):Me(be,[r])]};Cu.props=["targetPosition","label","isValidTargetPos","connectable","data"];Cu.inheritAttrs=!1;Cu.compatConfig={MODE:3};const bR=Cu,xu=function({sourcePosition:e=ye.Bottom,label:t,connectable:n=!0,isValidSourcePos:i,data:o}){const r=o.label||t;return[typeof r!="string"&&r?Me(r):Me(be,[r]),Me(mr,{type:"source",position:e,connectable:n,isValidConnection:i})]};xu.props=["sourcePosition","label","isValidSourcePos","connectable","data"];xu.inheritAttrs=!1;xu.compatConfig={MODE:3};const wR=xu,_R=["transform"],SR=["width","height","x","y","rx","ry"],CR=["y"],xR={name:"EdgeText",compatConfig:{MODE:3}},ER=Pe({...xR,props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(e){const t=ne({x:0,y:0,width:0,height:0}),n=ne(null),i=z(()=>`translate(${e.x-t.value.width/2} ${e.y-t.value.height/2})`);_t(o),ae([()=>e.x,()=>e.y,n,()=>e.label],o);function o(){if(!n.value)return;const r=n.value.getBBox();(r.width!==t.value.width||r.height!==t.value.height)&&(t.value=r)}return(r,s)=>(se(),Ae("g",{transform:i.value,class:"vue-flow__edge-textwrapper"},[r.labelShowBg?(se(),Ae("rect",{key:0,class:"vue-flow__edge-textbg",width:`${t.value.width+2*r.labelBgPadding[0]}px`,height:`${t.value.height+2*r.labelBgPadding[1]}px`,x:-r.labelBgPadding[0],y:-r.labelBgPadding[1],style:ft(r.labelBgStyle),rx:r.labelBgBorderRadius,ry:r.labelBgBorderRadius},null,12,SR)):dt("",!0),nt("text",Ee(r.$attrs,{ref_key:"el",ref:n,class:"vue-flow__edge-text",y:t.value.height/2,dy:"0.3em",style:r.labelStyle}),[cn(r.$slots,"default",{},()=>[typeof r.label!="string"?(se(),Oe(nu(r.label),{key:0})):(se(),Ae(be,{key:1},[Zt(Jn(r.label),1)],64))])],16,CR)],8,_R))}}),kR=["id","d","marker-end","marker-start"],AR=["d","stroke-width"],DR={name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},Eu=Pe({...DR,props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},style:{},labelStyle:{},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(e,{expose:t}){const n=rb(e,["interactionWidth","labelShowBg"]),i=ne(null),o=ne(null),r=ne(null),s=Of();return t({pathEl:i,interactionEl:o,labelEl:r}),(a,l)=>(se(),Ae(be,null,[nt("path",{id:a.id,ref_key:"pathEl",ref:i,d:a.path,style:ft(n.style),class:jt(["vue-flow__edge-path",Q(s).class]),"marker-end":a.markerEnd,"marker-start":a.markerStart},null,14,kR),a.interactionWidth?(se(),Ae("path",{key:0,ref_key:"interactionEl",ref:o,fill:"none",d:a.path,"stroke-width":a.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,AR)):dt("",!0),a.label&&a.labelX&&a.labelY?(se(),Oe(ER,{key:1,ref_key:"labelEl",ref:r,x:a.labelX,y:a.labelY,label:a.label,"label-show-bg":a.labelShowBg,"label-bg-style":a.labelBgStyle,"label-bg-padding":a.labelBgPadding,"label-bg-border-radius":a.labelBgBorderRadius,"label-style":a.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):dt("",!0)],64))}});function M_({sourceX:e,sourceY:t,targetX:n,targetY:i}){const o=Math.abs(n-e)/2,r=n<e?n+o:n-o,s=Math.abs(i-t)/2,a=i<t?i+s:i-s;return[r,a,o,s]}function N_({sourceX:e,sourceY:t,targetX:n,targetY:i,sourceControlX:o,sourceControlY:r,targetControlX:s,targetControlY:a}){const l=e*.125+o*.375+s*.375+n*.125,u=t*.125+r*.375+a*.375+i*.125,c=Math.abs(l-e),d=Math.abs(u-t);return[l,u,c,d]}function xa(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Xp({pos:e,x1:t,y1:n,x2:i,y2:o,c:r}){let s,a;switch(e){case ye.Left:s=t-xa(t-i,r),a=n;break;case ye.Right:s=t+xa(i-t,r),a=n;break;case ye.Top:s=t,a=n-xa(n-o,r);break;case ye.Bottom:s=t,a=n+xa(o-n,r);break}return[s,a]}function O_(e){const{sourceX:t,sourceY:n,sourcePosition:i=ye.Bottom,targetX:o,targetY:r,targetPosition:s=ye.Top,curvature:a=.25}=e,[l,u]=Xp({pos:i,x1:t,y1:n,x2:o,y2:r,c:a}),[c,d]=Xp({pos:s,x1:o,y1:r,x2:t,y2:n,c:a}),[f,h,g,m]=N_({sourceX:t,sourceY:n,targetX:o,targetY:r,sourceControlX:l,sourceControlY:u,targetControlX:c,targetControlY:d});return[`M${t},${n} C${l},${u} ${c},${d} ${o},${r}`,f,h,g,m]}function Zp({pos:e,x1:t,y1:n,x2:i,y2:o}){let r,s;switch(e){case ye.Left:case ye.Right:r=.5*(t+i),s=n;break;case ye.Top:case ye.Bottom:r=t,s=.5*(n+o);break}return[r,s]}function $_(e){const{sourceX:t,sourceY:n,sourcePosition:i=ye.Bottom,targetX:o,targetY:r,targetPosition:s=ye.Top}=e,[a,l]=Zp({pos:i,x1:t,y1:n,x2:o,y2:r}),[u,c]=Zp({pos:s,x1:o,y1:r,x2:t,y2:n}),[d,f,h,g]=N_({sourceX:t,sourceY:n,targetX:o,targetY:r,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${t},${n} C${a},${l} ${u},${c} ${o},${r}`,d,f,h,g]}const Jp={[ye.Left]:{x:-1,y:0},[ye.Right]:{x:1,y:0},[ye.Top]:{x:0,y:-1},[ye.Bottom]:{x:0,y:1}};function PR({source:e,sourcePosition:t=ye.Bottom,target:n}){return t===ye.Left||t===ye.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1}}function Qp(e,t){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function IR({source:e,sourcePosition:t=ye.Bottom,target:n,targetPosition:i=ye.Top,center:o,offset:r}){const s=Jp[t],a=Jp[i],l={x:e.x+s.x*r,y:e.y+s.y*r},u={x:n.x+a.x*r,y:n.y+a.y*r},c=PR({source:l,sourcePosition:t,target:u}),d=c.x!==0?"x":"y",f=c[d];let h,g,m;const p={x:0,y:0},y={x:0,y:0},[S,v,w,M]=M_({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[d]*a[d]===-1){g=o.x??S,m=o.y??v;const O=[{x:g,y:l.y},{x:g,y:u.y}],V=[{x:l.x,y:m},{x:u.x,y:m}];s[d]===f?h=d==="x"?O:V:h=d==="x"?V:O}else{const O=[{x:l.x,y:u.y}],V=[{x:u.x,y:l.y}];if(d==="x"?h=s.x===f?V:O:h=s.y===f?O:V,t===i){const W=Math.abs(e[d]-n[d]);if(W<=r){const b=Math.min(r-1,r-W);s[d]===f?p[d]=(l[d]>e[d]?-1:1)*b:y[d]=(u[d]>n[d]?-1:1)*b}}if(t!==i){const W=d==="x"?"y":"x",b=s[d]===a[W],P=l[W]>u[W],C=l[W]<u[W];(s[d]===1&&(!b&&P||b&&C)||s[d]!==1&&(!b&&C||b&&P))&&(h=d==="x"?O:V)}const N={x:l.x+p.x,y:l.y+p.y},$={x:u.x+y.x,y:u.y+y.y},H=Math.max(Math.abs(N.x-h[0].x),Math.abs($.x-h[0].x)),E=Math.max(Math.abs(N.y-h[0].y),Math.abs($.y-h[0].y));H>=E?(g=(N.x+$.x)/2,m=h[0].y):(g=h[0].x,m=(N.y+$.y)/2)}return[[e,{x:l.x+p.x,y:l.y+p.y},...h,{x:u.x+y.x,y:u.y+y.y},n],g,m,w,M]}function TR(e,t,n,i){const o=Math.min(Qp(e,t)/2,Qp(t,n)/2,i),{x:r,y:s}=t;if(e.x===r&&r===n.x||e.y===s&&s===n.y)return`L${r} ${s}`;if(e.y===s){const u=e.x<n.x?-1:1,c=e.y<n.y?1:-1;return`L ${r+o*u},${s}Q ${r},${s} ${r},${s+o*c}`}const a=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${r},${s+o*l}Q ${r},${s} ${r+o*a},${s}`}function Fd(e){const{sourceX:t,sourceY:n,sourcePosition:i=ye.Bottom,targetX:o,targetY:r,targetPosition:s=ye.Top,borderRadius:a=5,centerX:l,centerY:u,offset:c=20}=e,[d,f,h,g,m]=IR({source:{x:t,y:n},sourcePosition:i,target:{x:o,y:r},targetPosition:s,center:{x:l,y:u},offset:c});return[d.reduce((y,S,v)=>{let w;return v>0&&v<d.length-1?w=TR(d[v-1],S,d[v+1],a):w=`${v===0?"M":"L"}${S.x} ${S.y}`,y+=w,y},""),f,h,g,m]}function MR(e){const{sourceX:t,sourceY:n,targetX:i,targetY:o}=e,[r,s,a,l]=M_({sourceX:t,sourceY:n,targetX:i,targetY:o});return[`M ${t},${n}L ${i},${o}`,r,s,a,l]}const NR=Pe({name:"StraightEdge",props:["label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,i,o]=MR(e);return Me(Eu,{path:n,labelX:i,labelY:o,...t,...e})}}}),OR=NR,$R=Pe({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,i,o]=Fd({...e,sourcePosition:e.sourcePosition??ye.Bottom,targetPosition:e.targetPosition??ye.Top});return Me(Eu,{path:n,labelX:i,labelY:o,...t,...e})}}}),xh=$R,RR=Pe({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(e,{attrs:t}){return()=>Me(xh,{...e,...t,borderRadius:0})}}),VR=RR,LR=Pe({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,i,o]=O_({...e,sourcePosition:e.sourcePosition??ye.Bottom,targetPosition:e.targetPosition??ye.Top});return Me(Eu,{path:n,labelX:i,labelY:o,...t,...e})}}}),zR=LR,BR=Pe({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,i,o]=$_({...e,sourcePosition:e.sourcePosition??ye.Bottom,targetPosition:e.targetPosition??ye.Top});return Me(Eu,{path:n,labelX:i,labelY:o,...t,...e})}}}),HR=BR,FR={input:wR,default:yR,output:bR},GR={default:zR,straight:OR,step:VR,smoothstep:xh,simplebezier:HR};function WR(e,t,n){const i=z(()=>m=>t.value.get(m)),o=z(()=>m=>n.value.get(m)),r=z(()=>{const m={...GR,...e.edgeTypes},p=Object.keys(m);for(const y of e.edges)y.type&&!p.includes(y.type)&&(m[y.type]=y.type);return m}),s=z(()=>{const m={...FR,...e.nodeTypes},p=Object.keys(m);for(const y of e.nodes)y.type&&!p.includes(y.type)&&(m[y.type]=y.type);return m}),a=z(()=>e.onlyRenderVisibleElements?y_(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),l=z(()=>{if(e.onlyRenderVisibleElements){const m=[];for(const p of e.edges){const y=t.value.get(p.source),S=t.value.get(p.target);j2({sourcePos:y.computedPosition||{x:0,y:0},targetPos:S.computedPosition||{x:0,y:0},sourceWidth:y.dimensions.width,sourceHeight:y.dimensions.height,targetWidth:S.dimensions.width,targetHeight:S.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&m.push(p)}return m}return e.edges}),u=z(()=>[...a.value,...l.value]),c=z(()=>{const m=[];for(const p of e.nodes)p.selected&&m.push(p);return m}),d=z(()=>{const m=[];for(const p of e.edges)p.selected&&m.push(p);return m}),f=z(()=>[...c.value,...d.value]),h=z(()=>{const m=[];for(const p of e.nodes)p.dimensions.width&&p.dimensions.height&&p.handleBounds!==void 0&&m.push(p);return m}),g=z(()=>a.value.length>0&&h.value.length===a.value.length);return{getNode:i,getEdge:o,getElements:u,getEdgeTypes:r,getNodeTypes:s,getEdges:l,getNodes:a,getSelectedElements:f,getSelectedNodes:c,getSelectedEdges:d,getNodesInitialized:h,areNodesInitialized:g}}class oo{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var t;const n=(t=Bt())==null?void 0:t.appContext.app,i=(n==null?void 0:n.config.globalProperties.$vueFlowStorage)??oo.instance;return oo.instance=i??new oo,n&&(n.config.globalProperties.$vueFlowStorage=oo.instance),oo.instance}set(t,n){return this.flows.set(t,n)}get(t){return this.flows.get(t)}remove(t){return this.flows.delete(t)}create(t,n){const i=T_(),o=at(i),r={};for(const[f,h]of Object.entries(o.hooks)){const g=`on${f.charAt(0).toUpperCase()+f.slice(1)}`;r[g]=h.on}const s={};for(const[f,h]of Object.entries(o.hooks))s[f]=h.trigger;const a=z(()=>{const f=new Map;for(const h of o.nodes)f.set(h.id,h);return f}),l=z(()=>{const f=new Map;for(const h of o.edges)f.set(h.id,h);return f}),u=WR(o,a,l),c=gR(o,a,l);c.setState({...o,...n});const d={...r,...u,...c,...qM(o),nodeLookup:a,edgeLookup:l,emits:s,id:t,vueFlowVersion:"1.41.6",$destroy:()=>{this.remove(t)}};return this.set(t,d),d}getId(){return`vue-flow-${this.currentId++}`}}function Je(e){const t=oo.getInstance(),n=br(),i=typeof e=="object",o=i?e:{id:e},r=o.id,s=r??(n==null?void 0:n.vueFlowId);let a;if(n){const l=je(qp,null);typeof l<"u"&&l!==null&&(!s||l.id===s)&&(a=l)}if(a||s&&(a=t.get(s)),!a||s&&a.id!==s){const l=r??t.getId(),u=t.create(l,o);a=u,(n??Bi(!0)).run(()=>{ae(u.applyDefault,(d,f,h)=>{const g=p=>{u.applyNodeChanges(p)},m=p=>{u.applyEdgeChanges(p)};d?(u.onNodesChange(g),u.onEdgesChange(m)):(u.hooks.value.nodesChange.off(g),u.hooks.value.edgesChange.off(m)),h(()=>{u.hooks.value.nodesChange.off(g),u.hooks.value.edgesChange.off(m)})},{immediate:!0}),hu(()=>{if(a){const d=t.get(a.id);d?d.$destroy():wu(`No store instance found for id ${a.id} in storage.`)}})})}else i&&a.setState(o);if(n&&(rt(qp,a),n.vueFlowId=a.id),i){const l=Bt();(l==null?void 0:l.type.name)!=="VueFlow"&&a.emits.error(new yt(ht.USEVUEFLOW_OPTIONS))}return a}function UR(e){const{emits:t,dimensions:n}=Je();let i;_t(()=>{const o=e.value,r=()=>{if(!o)return;const s=yu(o);(s.width===0||s.height===0)&&t.error(new yt(ht.MISSING_VIEWPORT_DIMENSIONS)),n.value={width:s.width||500,height:s.height||500}};r(),window.addEventListener("resize",r),o&&(i=new ResizeObserver(()=>r()),i.observe(o)),zt(()=>{window.removeEventListener("resize",r),i&&o&&i.unobserve(o)})})}const jR={name:"UserSelection",compatConfig:{MODE:3}},YR=Pe({...jR,props:{userSelectionRect:{}},setup(e){return(t,n)=>(se(),Ae("div",{class:"vue-flow__selection vue-flow__container",style:ft({width:`${t.userSelectionRect.width}px`,height:`${t.userSelectionRect.height}px`,transform:`translate(${t.userSelectionRect.x}px, ${t.userSelectionRect.y}px)`})},null,4))}}),KR=["tabIndex"],qR={name:"NodesSelection",compatConfig:{MODE:3}},XR=Pe({...qR,setup(e){const{emits:t,viewport:n,getSelectedNodes:i,noPanClassName:o,disableKeyboardA11y:r,userSelectionActive:s}=Je(),a=I_(),l=ne(null),u=A_({el:l,onStart(g){t.selectionDragStart(g)},onDrag(g){t.selectionDrag(g)},onStop(g){t.selectionDragStop(g)}});_t(()=>{var g;r.value||(g=l.value)==null||g.focus({preventScroll:!0})});const c=z(()=>wh(i.value)),d=z(()=>({width:`${c.value.width}px`,height:`${c.value.height}px`,top:`${c.value.y}px`,left:`${c.value.x}px`}));function f(g){t.selectionContextMenu({event:g,nodes:i.value})}function h(g){r||sr[g.key]&&(g.preventDefault(),a({x:sr[g.key].x,y:sr[g.key].y},g.shiftKey))}return(g,m)=>!Q(s)&&c.value.width&&c.value.height?(se(),Ae("div",{key:0,class:jt(["vue-flow__nodesselection vue-flow__container",Q(o)]),style:ft({transform:`translate(${Q(n).x}px,${Q(n).y}px) scale(${Q(n).zoom})`})},[nt("div",{ref_key:"el",ref:l,class:jt([{dragging:Q(u)},"vue-flow__nodesselection-rect"]),style:ft(d.value),tabIndex:Q(r)?void 0:-1,onContextmenu:f,onKeydown:h},null,46,KR)],6)):dt("",!0)}});function ZR(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}const JR={name:"Pane",compatConfig:{MODE:3}},QR=Pe({...JR,props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:t,nodes:n,viewport:i,emits:o,userSelectionActive:r,removeSelectedElements:s,userSelectionRect:a,elementsSelectable:l,nodesSelectionActive:u,getSelectedEdges:c,getSelectedNodes:d,removeNodes:f,removeEdges:h,selectionMode:g,deleteKeyCode:m,multiSelectionKeyCode:p,multiSelectionActive:y,edgeLookup:S,nodeLookup:v}=Je(),w=ne(null),M=ne(0),I=ne(0),O=ne(),V=ne(new Map),N=de(()=>l.value&&(e.isSelecting||r.value));let $=!1,H=!1;const E=ss(m,{actInsideInputWithModifier:!1}),W=ss(p);ae(E,j=>{j&&(f(d.value),h(c.value),u.value=!1)}),ae(W,j=>{y.value=j});function b(j,J){return X=>{X.target===J&&(j==null||j(X))}}function P(){r.value=!1,a.value=null,M.value=0,I.value=0}function C(j){if($){$=!1;return}o.paneClick(j),s(),u.value=!1}function F(j){j.preventDefault(),j.stopPropagation(),o.paneContextMenu(j)}function B(j){o.paneScroll(j)}function R(j){var J,X,re,ee,le;if(O.value=(J=t.value)==null?void 0:J.getBoundingClientRect(),!l.value||!e.isSelecting||j.button!==0||j.target!==w.value||!O.value)return;(re=(X=j.target)==null?void 0:X.setPointerCapture)==null||re.call(X,j.pointerId);const{x:ue,y:pe}=ZR(j,O.value);H=!0,$=!1,V.value=new Map;for(const[me,ce]of S.value)V.value.set(ce.source,((ee=V.value.get(ce.source))==null?void 0:ee.add(me))||new Set([me])),V.value.set(ce.target,((le=V.value.get(ce.target))==null?void 0:le.add(me))||new Set([me]));s(),a.value={width:0,height:0,startX:ue,startY:pe,x:ue,y:pe},o.selectionStart(j)}function L(j){if(!O.value||!a.value)return;$=!0;const{x:J,y:X}=ai(j,O.value),{startX:re=0,startY:ee=0}=a.value,le={startX:re,startY:ee,x:J<re?J:re,y:X<ee?X:ee,width:Math.abs(J-re),height:Math.abs(X-ee)},ue=y_(n.value,le,i.value,g.value===bh.Partial,!0),pe=new Set,me=new Set;for(const ce of ue){me.add(ce.id);const we=V.value.get(ce.id);if(we)for(const A of we)pe.add(A)}if(M.value!==me.size){M.value=me.size;const ce=Ei(v.value,me,!0);o.nodesChange(ce)}if(I.value!==pe.size){I.value=pe.size;const ce=Ei(S.value,pe);o.edgesChange(ce)}a.value=le,r.value=!0,u.value=!1}function U(j){var J;j.button!==0||!H||((J=j.target)==null||J.releasePointerCapture(j.pointerId),!r.value&&a.value&&j.target===w.value&&C(j),M.value>0&&(u.value=!0),P(),o.selectionEnd(j),e.selectionKeyPressed&&($=!1),H=!1)}return(j,J)=>(se(),Ae("div",{ref_key:"container",ref:w,class:jt(["vue-flow__pane vue-flow__container",{selection:j.isSelecting}]),onClick:J[0]||(J[0]=X=>N.value?void 0:b(C,w.value)(X)),onContextmenu:J[1]||(J[1]=X=>b(F,w.value)(X)),onWheelPassive:J[2]||(J[2]=X=>b(B,w.value)(X)),onPointerenter:J[3]||(J[3]=X=>N.value?void 0:Q(o).paneMouseEnter(X)),onPointerdown:J[4]||(J[4]=X=>N.value?R(X):Q(o).paneMouseMove(X)),onPointermove:J[5]||(J[5]=X=>N.value?L(X):Q(o).paneMouseMove(X)),onPointerup:J[6]||(J[6]=X=>N.value?U(X):void 0),onPointerleave:J[7]||(J[7]=X=>Q(o).paneMouseLeave(X))},[cn(j.$slots,"default"),Q(r)&&Q(a)?(se(),Oe(YR,{key:0,"user-selection-rect":Q(a)},null,8,["user-selection-rect"])):dt("",!0),Q(u)&&Q(d).length?(se(),Oe(XR,{key:1})):dt("",!0)],34))}}),eV={name:"Transform",compatConfig:{MODE:3}},tV=Pe({...eV,setup(e){const{viewport:t,fitViewOnInit:n,fitViewOnInitDone:i}=Je(),o=z(()=>n.value?!i.value:!1),r=z(()=>`translate(${t.value.x}px,${t.value.y}px) scale(${t.value.zoom})`);return(s,a)=>(se(),Ae("div",{class:"vue-flow__transformationpane vue-flow__container",style:ft({transform:r.value,opacity:o.value?0:void 0})},[cn(s.$slots,"default")],4))}}),nV={name:"Viewport",compatConfig:{MODE:3}},iV=Pe({...nV,setup(e){const{minZoom:t,maxZoom:n,defaultViewport:i,translateExtent:o,zoomActivationKeyCode:r,selectionKeyCode:s,panActivationKeyCode:a,panOnScroll:l,panOnScrollMode:u,panOnScrollSpeed:c,panOnDrag:d,zoomOnDoubleClick:f,zoomOnPinch:h,zoomOnScroll:g,preventScrolling:m,noWheelClassName:p,noPanClassName:y,emits:S,connectionStartHandle:v,userSelectionActive:w,paneDragging:M,d3Zoom:I,d3Selection:O,d3ZoomHandler:V,viewport:N,viewportRef:$,paneClickDistance:H}=Je();UR($);const E=ne(!1),W=ne(!1);let b=null,P=!1,C=0,F={x:0,y:0,zoom:0};const B=ss(a),R=ss(s),L=ss(r),U=de(()=>(!R.value||R.value&&s.value===!0)&&(B.value||d.value)),j=de(()=>B.value||l.value),J=de(()=>R.value||s.value===!0&&U.value!==!0);_t(()=>{if(!$.value){wu("Viewport element is missing");return}const pe=$.value,me=pe.getBoundingClientRect(),ce=I2().clickDistance(H.value).scaleExtent([t.value,n.value]).translateExtent(o.value),we=mn(pe).call(ce),A=we.on("wheel.zoom"),_=hr.translate(i.value.x??0,i.value.y??0).scale(Po(i.value.zoom??1,t.value,n.value)),x=[[0,0],[me.width,me.height]],D=ce.constrain()(_,x,o.value);ce.transform(we,D),ce.wheelDelta(re),I.value=ce,O.value=we,V.value=A,N.value={x:D.x,y:D.y,zoom:D.k},ce.on("start",T=>{var G;if(!T.sourceEvent)return null;C=T.sourceEvent.button,E.value=!0;const K=le(T.transform);((G=T.sourceEvent)==null?void 0:G.type)==="mousedown"&&(M.value=!0),F=K,S.viewportChangeStart(K),S.moveStart({event:T,flowTransform:K})}),ce.on("end",T=>{if(!T.sourceEvent)return null;if(E.value=!1,M.value=!1,X(U.value,C??0)&&!P&&S.paneContextMenu(T.sourceEvent),P=!1,ee(F,T.transform)){const G=le(T.transform);F=G,S.viewportChangeEnd(G),S.moveEnd({event:T,flowTransform:G})}}),ce.filter(T=>{var G;const K=L.value||g.value,Y=h.value&&T.ctrlKey,Z=T.button;if(Z===1&&T.type==="mousedown"&&(ue(T,"vue-flow__node")||ue(T,"vue-flow__edge")))return!0;if(!U.value&&!K&&!j.value&&!f.value&&!h.value||w.value||!f.value&&T.type==="dblclick"||ue(T,p.value)&&T.type==="wheel"||ue(T,y.value)&&(T.type!=="wheel"||j.value&&T.type==="wheel"&&!L.value)||!h.value&&T.ctrlKey&&T.type==="wheel"||!K&&!j.value&&!Y&&T.type==="wheel")return!1;if(!h&&T.type==="touchstart"&&((G=T.touches)==null?void 0:G.length)>1)return T.preventDefault(),!1;if(!U.value&&(T.type==="mousedown"||T.type==="touchstart")||s.value===!0&&Array.isArray(d.value)&&d.value.includes(0)&&Z===0||Array.isArray(d.value)&&!d.value.includes(Z)&&(T.type==="mousedown"||T.type==="touchstart"))return!1;const q=Array.isArray(d.value)&&d.value.includes(Z)||s.value===!0&&Array.isArray(d.value)&&!d.value.includes(0)||!Z||Z<=1;return(!T.ctrlKey||B.value||T.type==="wheel")&&q}),ae([w,U],()=>{w.value&&!E.value?ce.on("zoom",null):w.value||ce.on("zoom",T=>{N.value={x:T.transform.x,y:T.transform.y,zoom:T.transform.k};const G=le(T.transform);P=X(U.value,C??0),S.viewportChange(G),S.move({event:T,flowTransform:G})})},{immediate:!0}),ae([w,j,u,L,h,m,p],()=>{j.value&&!L.value&&!w.value?we.on("wheel.zoom",T=>{if(ue(T,p.value))return!1;const G=L.value||g.value,K=h.value&&T.ctrlKey;if(!(!m.value||j.value||G||K))return!1;T.preventDefault(),T.stopImmediatePropagation();const Z=we.property("__zoom").k||1,q=Rl();if(!B.value&&T.ctrlKey&&h.value&&q){const Ie=kn(T),Ke=re(T),Fe=Z*2**Ke;ce.scaleTo(we,Fe,Ie,T);return}const fe=T.deltaMode===1?20:1;let te=u.value===rs.Vertical?0:T.deltaX*fe,oe=u.value===rs.Horizontal?0:T.deltaY*fe;!q&&T.shiftKey&&u.value!==rs.Vertical&&!te&&oe&&(te=oe,oe=0),ce.translateBy(we,-(te/Z)*c.value,-(oe/Z)*c.value);const ve=le(we.property("__zoom"));b&&clearTimeout(b),W.value?(S.move({event:T,flowTransform:ve}),S.viewportChange(ve),b=setTimeout(()=>{S.moveEnd({event:T,flowTransform:ve}),S.viewportChangeEnd(ve),W.value=!1},150)):(W.value=!0,S.moveStart({event:T,flowTransform:ve}),S.viewportChangeStart(ve))},{passive:!1}):typeof A<"u"&&we.on("wheel.zoom",function(T,G){const K=!m.value&&T.type==="wheel"&&!T.ctrlKey,Y=L.value||g.value,Z=h.value&&T.ctrlKey;if(!Y&&!l.value&&!Z&&T.type==="wheel"||K||ue(T,p.value))return null;T.preventDefault(),A.call(this,T,G)},{passive:!1})},{immediate:!0})});function X(pe,me){return me===2&&Array.isArray(pe)&&pe.includes(2)}function re(pe){const me=pe.ctrlKey&&Rl()?10:1;return-pe.deltaY*(pe.deltaMode===1?.05:pe.deltaMode?1:.002)*me}function ee(pe,me){return pe.x!==me.x&&!Number.isNaN(me.x)||pe.y!==me.y&&!Number.isNaN(me.y)||pe.zoom!==me.k&&!Number.isNaN(me.k)}function le(pe){return{x:pe.x,y:pe.y,zoom:pe.k}}function ue(pe,me){return pe.target.closest(`.${me}`)}return(pe,me)=>(se(),Ae("div",{ref_key:"viewportRef",ref:$,class:"vue-flow__viewport vue-flow__container"},[k(QR,{"is-selecting":J.value,"selection-key-pressed":Q(R),class:jt({connecting:!!Q(v),dragging:Q(M),draggable:Q(d)===!0||Array.isArray(Q(d))&&Q(d).includes(0)})},{default:$e(()=>[k(tV,null,{default:$e(()=>[cn(pe.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),oV=["id"],rV=["id"],sV=["id"],aV={name:"A11yDescriptions",compatConfig:{MODE:3}},lV=Pe({...aV,setup(e){const{id:t,disableKeyboardA11y:n,ariaLiveMessage:i}=Je();return(o,r)=>(se(),Ae(be,null,[nt("div",{id:`${Q(l_)}-${Q(t)}`,style:{display:"none"}}," Press enter or space to select a node. "+Jn(Q(n)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,oV),nt("div",{id:`${Q(u_)}-${Q(t)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,rV),Q(n)?dt("",!0):(se(),Ae("div",{key:0,id:`${Q(O2)}-${Q(t)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},Jn(Q(i)),9,sV))],64))}});function uV(){const e=Je();ae(()=>e.viewportHelper.value.viewportInitialized,t=>{t&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function cV(e,t,n){return n===ye.Left?e-t:n===ye.Right?e+t:e}function dV(e,t,n){return n===ye.Top?e-t:n===ye.Bottom?e+t:e}const Eh=function({radius:e=10,centerX:t=0,centerY:n=0,position:i=ye.Top,type:o}){return Me("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${o}`,cx:cV(t,e,i),cy:dV(n,e,i),r:e,stroke:"transparent",fill:"transparent"})};Eh.props=["radius","centerX","centerY","position","type"];Eh.compatConfig={MODE:3};const ev=Eh,fV=Pe({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:t,addSelectedEdges:n,connectionMode:i,edgeUpdaterRadius:o,emits:r,nodesSelectionActive:s,noPanClassName:a,getEdgeTypes:l,removeSelectedEdges:u,findEdge:c,findNode:d,isValidConnection:f,multiSelectionActive:h,disableKeyboardA11y:g,elementsSelectable:m,edgesUpdatable:p,edgesFocusable:y,hooks:S}=Je(),v=z(()=>c(e.id)),{emit:w,on:M}=oR(v.value,r),I=je(_u),O=Bt(),V=ne(!1),N=ne(!1),$=ne(""),H=ne(null),E=ne("source"),W=ne(null),b=de(()=>typeof v.value.selectable>"u"?m.value:v.value.selectable),P=de(()=>typeof v.value.updatable>"u"?p.value:v.value.updatable),C=de(()=>typeof v.value.focusable>"u"?y.value:v.value.focusable);rt(tR,e.id),rt(nR,W);const F=z(()=>v.value.class instanceof Function?v.value.class(v.value):v.value.class),B=z(()=>v.value.style instanceof Function?v.value.style(v.value):v.value.style),R=z(()=>{const x=v.value.type||"default",D=I==null?void 0:I[`edge-${x}`];if(D)return D;let T=v.value.template??l.value[x];if(typeof T=="string"&&O){const G=Object.keys(O.appContext.components);G&&G.includes(x)&&(T=Qy(x,!1))}return T&&typeof T!="string"?T:(r.error(new yt(ht.EDGE_TYPE_MISSING,T)),!1)}),{handlePointerDown:L}=D_({nodeId:$,handleId:H,type:E,isValidConnection:f,edgeUpdaterType:E,onEdgeUpdate:J,onEdgeUpdateEnd:X});return()=>{const x=d(v.value.source),D=d(v.value.target),T="pathOptions"in v.value?v.value.pathOptions:{};if(!x&&!D)return r.error(new yt(ht.EDGE_SOURCE_TARGET_MISSING,v.value.id,v.value.source,v.value.target)),null;if(!x)return r.error(new yt(ht.EDGE_SOURCE_MISSING,v.value.id,v.value.source)),null;if(!D)return r.error(new yt(ht.EDGE_TARGET_MISSING,v.value.id,v.value.target)),null;if(!v.value||v.value.hidden||x.hidden||D.hidden)return null;let G;i.value===Do.Strict?G=x.handleBounds.source:G=[...x.handleBounds.source||[],...x.handleBounds.target||[]];const K=Gp(G,v.value.sourceHandle);let Y;i.value===Do.Strict?Y=D.handleBounds.target:Y=[...D.handleBounds.target||[],...D.handleBounds.source||[]];const Z=Gp(Y,v.value.targetHandle),q=(K==null?void 0:K.position)||ye.Bottom,fe=(Z==null?void 0:Z.position)||ye.Top,{x:te,y:oe}=$l(x,K,q),{x:ve,y:Ie}=$l(D,Z,fe);return v.value.sourceX=te,v.value.sourceY=oe,v.value.targetX=ve,v.value.targetY=Ie,Me("g",{ref:W,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${R.value===!1?"default":v.value.type||"default"}`,a.value,F.value,{updating:V.value,selected:v.value.selected,animated:v.value.animated,inactive:!b.value&&!S.value.edgeClick.hasListeners()}],onClick:ee,onContextmenu:le,onDblclick:ue,onMouseenter:pe,onMousemove:me,onMouseleave:ce,onKeyDown:C.value?_:void 0,tabIndex:C.value?0:void 0,"aria-label":v.value.ariaLabel===null?void 0:v.value.ariaLabel||`Edge from ${v.value.source} to ${v.value.target}`,"aria-describedby":C.value?`${u_}-${t}`:void 0,role:C.value?"button":"img"},[N.value?null:Me(R.value===!1?l.value.default:R.value,{id:e.id,sourceNode:x,targetNode:D,source:v.value.source,target:v.value.target,type:v.value.type,updatable:P.value,selected:v.value.selected,animated:v.value.animated,label:v.value.label,labelStyle:v.value.labelStyle,labelShowBg:v.value.labelShowBg,labelBgStyle:v.value.labelBgStyle,labelBgPadding:v.value.labelBgPadding,labelBgBorderRadius:v.value.labelBgBorderRadius,data:v.value.data,events:{...v.value.events,...M},style:B.value,markerStart:`url('#${Es(v.value.markerStart,t)}')`,markerEnd:`url('#${Es(v.value.markerEnd,t)}')`,sourcePosition:q,targetPosition:fe,sourceX:te,sourceY:oe,targetX:ve,targetY:Ie,sourceHandleId:v.value.sourceHandle,targetHandleId:v.value.targetHandle,interactionWidth:v.value.interactionWidth,...T}),[P.value==="source"||P.value===!0?[Me("g",{onMousedown:we,onMouseenter:U,onMouseout:j},Me(ev,{position:q,centerX:te,centerY:oe,radius:o.value,type:"source","data-type":"source"}))]:null,P.value==="target"||P.value===!0?[Me("g",{onMousedown:A,onMouseenter:U,onMouseout:j},Me(ev,{position:fe,centerX:ve,centerY:Ie,radius:o.value,type:"target","data-type":"target"}))]:null]])};function U(){V.value=!0}function j(){V.value=!1}function J(x,D){w.update({event:x,edge:v.value,connection:D})}function X(x){w.updateEnd({event:x,edge:v.value}),N.value=!1}function re(x,D){x.button===0&&(N.value=!0,$.value=D?v.value.target:v.value.source,H.value=(D?v.value.targetHandle:v.value.sourceHandle)??"",E.value=D?"target":"source",w.updateStart({event:x,edge:v.value}),L(x))}function ee(x){var D;const T={event:x,edge:v.value};b.value&&(s.value=!1,v.value.selected&&h.value?(u([v.value]),(D=W.value)==null||D.blur()):n([v.value])),w.click(T)}function le(x){w.contextMenu({event:x,edge:v.value})}function ue(x){w.doubleClick({event:x,edge:v.value})}function pe(x){w.mouseEnter({event:x,edge:v.value})}function me(x){w.mouseMove({event:x,edge:v.value})}function ce(x){w.mouseLeave({event:x,edge:v.value})}function we(x){re(x,!0)}function A(x){re(x,!1)}function _(x){var D;!g.value&&c_.includes(x.key)&&b.value&&(x.key==="Escape"?((D=W.value)==null||D.blur(),u([c(e.id)])):n([c(e.id)]))}}}),hV=fV,mV={[ye.Left]:ye.Right,[ye.Right]:ye.Left,[ye.Top]:ye.Bottom,[ye.Bottom]:ye.Top},gV=Pe({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:t,connectionMode:n,connectionStartHandle:i,connectionEndHandle:o,connectionPosition:r,connectionLineType:s,connectionLineStyle:a,connectionLineOptions:l,connectionStatus:u,viewport:c,findNode:d}=Je(),f=(e=je(_u))==null?void 0:e["connection-line"],h=z(()=>{var S;return d((S=i.value)==null?void 0:S.nodeId)}),g=z(()=>{var S;return d((S=o.value)==null?void 0:S.nodeId)??null}),m=z(()=>({x:(r.value.x-c.value.x)/c.value.zoom,y:(r.value.y-c.value.y)/c.value.zoom})),p=z(()=>l.value.markerStart?`url(#${Es(l.value.markerStart,t)})`:""),y=z(()=>l.value.markerEnd?`url(#${Es(l.value.markerEnd,t)})`:"");return()=>{var S,v,w,M;if(!h.value||!i.value)return null;const I=i.value.handleId,O=i.value.type,V=h.value.handleBounds;let N=(V==null?void 0:V[O])||[];if(n.value===Do.Loose){const R=(V==null?void 0:V[O==="source"?"target":"source"])||[];N=[...N,...R]}if(!N)return null;const $=(I?N.find(R=>R.id===I):N[0])??null,H=($==null?void 0:$.position)||ye.Top,{x:E,y:W}=$l(h.value,$,H);let b=null;g.value&&((S=o.value)!=null&&S.handleId)&&(n.value===Do.Strict?b=((v=g.value.handleBounds[O==="source"?"target":"source"])==null?void 0:v.find(R=>{var L;return R.id===((L=o.value)==null?void 0:L.handleId)}))||null:b=((w=[...g.value.handleBounds.source||[],...g.value.handleBounds.target||[]])==null?void 0:w.find(R=>{var L;return R.id===((L=o.value)==null?void 0:L.handleId)}))||null);const P=((M=o.value)==null?void 0:M.position)??(H?mV[H]:null);if(!H||!P)return null;const C=s.value??l.value.type??no.Bezier;let F="";const B={sourceX:E,sourceY:W,sourcePosition:H,targetX:m.value.x,targetY:m.value.y,targetPosition:P};return C===no.Bezier?[F]=O_(B):C===no.Step?[F]=Fd({...B,borderRadius:0}):C===no.SmoothStep?[F]=Fd(B):C===no.SimpleBezier?[F]=$_(B):F=`M${E},${W} ${m.value.x},${m.value.y}`,Me("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},Me("g",{class:"vue-flow__connection"},f?Me(f,{sourceX:E,sourceY:W,sourcePosition:H,targetX:m.value.x,targetY:m.value.y,targetPosition:P,sourceNode:h.value,sourceHandle:$,targetNode:g.value,targetHandle:b,markerEnd:y.value,markerStart:p.value,connectionStatus:u.value}):Me("path",{d:F,class:[l.value.class,u,"vue-flow__connection-path"],style:{...a.value,...l.value.style},"marker-end":y.value,"marker-start":p.value})))}}}),pV=gV,vV=["id","markerWidth","markerHeight","markerUnits","orient"],yV={name:"MarkerType",compatConfig:{MODE:3}},bV=Pe({...yV,props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(e){return(t,n)=>(se(),Ae("marker",{id:t.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${t.width}`,markerHeight:`${t.height}`,markerUnits:t.markerUnits,orient:t.orient},[t.type===Q(Vd).ArrowClosed?(se(),Ae("polyline",{key:0,style:ft({stroke:t.color,fill:t.color,strokeWidth:t.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):dt("",!0),t.type===Q(Vd).Arrow?(se(),Ae("polyline",{key:1,style:ft({stroke:t.color,strokeWidth:t.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):dt("",!0)],8,vV))}}),wV={class:"vue-flow__marker vue-flow__container"},_V={name:"MarkerDefinitions",compatConfig:{MODE:3}},SV=Pe({..._V,setup(e){const{id:t,edges:n,connectionLineOptions:i,defaultMarkerColor:o}=Je(),r=z(()=>{const s=new Set,a=[],l=u=>{if(u){const c=Es(u,t);s.has(c)||(typeof u=="object"?a.push({...u,id:c,color:u.color||o.value}):a.push({id:c,color:o.value,type:u}),s.add(c))}};for(const u of[i.value.markerEnd,i.value.markerStart])l(u);for(const u of n.value)for(const c of[u.markerStart,u.markerEnd])l(c);return a.sort((u,c)=>u.id.localeCompare(c.id))});return(s,a)=>(se(),Ae("svg",wV,[nt("defs",null,[(se(!0),Ae(be,null,ri(r.value,l=>(se(),Oe(bV,{id:l.id,key:l.id,type:l.type,color:l.color,width:l.width,height:l.height,markerUnits:l.markerUnits,"stroke-width":l.strokeWidth,orient:l.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),CV={name:"Edges",compatConfig:{MODE:3}},xV=Pe({...CV,setup(e){const{findNode:t,getEdges:n,elevateEdgesOnSelect:i}=Je();return(o,r)=>(se(),Ae(be,null,[k(SV),(se(!0),Ae(be,null,ri(Q(n),s=>(se(),Ae("svg",{key:s.id,class:"vue-flow__edges vue-flow__container",style:ft({zIndex:Q(Y2)(s,Q(t),Q(i))})},[k(Q(hV),{id:s.id},null,8,["id"])],4))),128)),k(Q(pV))],64))}}),EV=Pe({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:t,noPanClassName:n,selectNodesOnDrag:i,nodesSelectionActive:o,multiSelectionActive:r,emits:s,removeSelectedNodes:a,addSelectedNodes:l,updateNodeDimensions:u,onUpdateNodeInternals:c,getNodeTypes:d,nodeExtent:f,elevateNodesOnSelect:h,disableKeyboardA11y:g,ariaLiveMessage:m,snapToGrid:p,snapGrid:y,nodeDragThreshold:S,nodesDraggable:v,elementsSelectable:w,nodesConnectable:M,nodesFocusable:I,hooks:O}=Je(),V=ne(null);rt(k_,V),rt(E_,e.id);const N=je(_u),$=Bt(),H=I_(),{node:E,parentNode:W}=P_(e.id),{emit:b,on:P}=lR(E,s),C=de(()=>typeof E.draggable>"u"?v.value:E.draggable),F=de(()=>typeof E.selectable>"u"?w.value:E.selectable),B=de(()=>typeof E.connectable>"u"?M.value:E.connectable),R=de(()=>typeof E.focusable>"u"?I.value:E.focusable),L=de(()=>F.value||C.value||O.value.nodeClick.hasListeners()||O.value.nodeDoubleClick.hasListeners()||O.value.nodeMouseEnter.hasListeners()||O.value.nodeMouseMove.hasListeners()||O.value.nodeMouseLeave.hasListeners()),U=de(()=>!!E.dimensions.width&&!!E.dimensions.height),j=z(()=>{const D=E.type||"default",T=N==null?void 0:N[`node-${D}`];if(T)return T;let G=E.template||d.value[D];if(typeof G=="string"&&$){const K=Object.keys($.appContext.components);K&&K.includes(D)&&(G=Qy(D,!1))}return G&&typeof G!="string"?G:(s.error(new yt(ht.NODE_TYPE_MISSING,G)),!1)}),J=A_({id:e.id,el:V,disabled:()=>!C.value,selectable:F,dragHandle:()=>E.dragHandle,onStart(D){b.dragStart(D)},onDrag(D){b.drag(D)},onStop(D){b.dragStop(D)},onClick(D){_(D)}}),X=z(()=>E.class instanceof Function?E.class(E):E.class),re=z(()=>{const D=(E.style instanceof Function?E.style(E):E.style)||{},T=E.width instanceof Function?E.width(E):E.width,G=E.height instanceof Function?E.height(E):E.height;return!D.width&&T&&(D.width=typeof T=="string"?T:`${T}px`),!D.height&&G&&(D.height=typeof G=="string"?G:`${G}px`),D}),ee=de(()=>Number(E.zIndex??re.value.zIndex??0));return c(D=>{(D.includes(e.id)||!D.length)&&ue()}),_t(()=>{ae(()=>E.hidden,(D=!1,T,G)=>{!D&&V.value&&(e.resizeObserver.observe(V.value),G(()=>{V.value&&e.resizeObserver.unobserve(V.value)}))},{immediate:!0,flush:"post"})}),ae([()=>E.type,()=>E.sourcePosition,()=>E.targetPosition],()=>{Ue(()=>{u([{id:e.id,nodeElement:V.value,forceUpdate:!0}])})}),ae([()=>E.position.x,()=>E.position.y,()=>{var D;return(D=W.value)==null?void 0:D.computedPosition.x},()=>{var D;return(D=W.value)==null?void 0:D.computedPosition.y},()=>{var D;return(D=W.value)==null?void 0:D.computedPosition.z},ee,()=>E.selected,()=>E.dimensions.height,()=>E.dimensions.width,()=>{var D;return(D=W.value)==null?void 0:D.dimensions.height},()=>{var D;return(D=W.value)==null?void 0:D.dimensions.width}],([D,T,G,K,Y,Z])=>{const q={x:D,y:T,z:Z+(h.value&&E.selected?1e3:0)};typeof G<"u"&&typeof K<"u"?E.computedPosition=H2({x:G,y:K,z:Y},q):E.computedPosition=q},{flush:"post",immediate:!0}),ae([()=>E.extent,f],([D,T],[G,K])=>{(D!==G||T!==K)&&le()}),E.extent==="parent"||typeof E.extent=="object"&&"range"in E.extent&&E.extent.range==="parent"?Dd(()=>U).toBe(!0).then(le):le(),()=>E.hidden?null:Me("div",{ref:V,"data-id":E.id,class:["vue-flow__node",`vue-flow__node-${j.value===!1?"default":E.type||"default"}`,{[n.value]:C.value,dragging:J==null?void 0:J.value,draggable:C.value,selected:E.selected,selectable:F.value,parent:E.isParent},X.value],style:{visibility:U.value?"visible":"hidden",zIndex:E.computedPosition.z??ee.value,transform:`translate(${E.computedPosition.x}px,${E.computedPosition.y}px)`,pointerEvents:L.value?"all":"none",...re.value},tabIndex:R.value?0:void 0,role:R.value?"button":void 0,"aria-describedby":g.value?void 0:`${l_}-${t}`,"aria-label":E.ariaLabel,onMouseenter:pe,onMousemove:me,onMouseleave:ce,onContextmenu:we,onClick:_,onDblclick:A,onKeydown:x},[Me(j.value===!1?d.value.default:j.value,{id:E.id,type:E.type,data:E.data,events:{...E.events,...P},selected:E.selected,resizing:E.resizing,dragging:J.value,connectable:B.value,position:E.computedPosition,dimensions:E.dimensions,isValidTargetPos:E.isValidTargetPos,isValidSourcePos:E.isValidSourcePos,parent:E.parentNode,parentNodeId:E.parentNode,zIndex:E.computedPosition.z??ee.value,targetPosition:E.targetPosition,sourcePosition:E.sourcePosition,label:E.label,dragHandle:E.dragHandle,onUpdateNodeInternals:ue})]);function le(){const D=E.computedPosition,{computedPosition:T,position:G}=_h(E,p.value?bu(D,y.value):D,s.error,f.value,W.value);(E.computedPosition.x!==T.x||E.computedPosition.y!==T.y)&&(E.computedPosition={...E.computedPosition,...T}),(E.position.x!==G.x||E.position.y!==G.y)&&(E.position=G)}function ue(){V.value&&u([{id:e.id,nodeElement:V.value,forceUpdate:!0}])}function pe(D){J!=null&&J.value||b.mouseEnter({event:D,node:E})}function me(D){J!=null&&J.value||b.mouseMove({event:D,node:E})}function ce(D){J!=null&&J.value||b.mouseLeave({event:D,node:E})}function we(D){return b.contextMenu({event:D,node:E})}function A(D){return b.doubleClick({event:D,node:E})}function _(D){F.value&&(!i.value||!C.value||S.value>0)&&Hd(E,r.value,l,a,o,!1,V.value),b.click({event:D,node:E})}function x(D){if(!(Ld(D)||g.value))if(c_.includes(D.key)&&F.value){const T=D.key==="Escape";Hd(E,r.value,l,a,o,T,V.value)}else C.value&&E.selected&&sr[D.key]&&(D.preventDefault(),m.value=`Moved selected node ${D.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~E.position.x}, y: ${~~E.position.y}`,H({x:sr[D.key].x,y:sr[D.key].y},D.shiftKey))}}}),kV=EV;function AV(e={includeHiddenNodes:!1}){const{nodes:t}=Je();return z(()=>{if(t.value.length===0)return!1;for(const n of t.value)if((e.includeHiddenNodes||!n.hidden)&&((n==null?void 0:n.handleBounds)===void 0||n.dimensions.width===0||n.dimensions.height===0))return!1;return!0})}const DV={class:"vue-flow__nodes vue-flow__container"},PV={name:"Nodes",compatConfig:{MODE:3}},IV=Pe({...PV,setup(e){const{getNodes:t,updateNodeDimensions:n,emits:i}=Je(),o=AV(),r=ne();return ae(o,s=>{s&&Ue(()=>{i.nodesInitialized(t.value)})},{immediate:!0}),_t(()=>{r.value=new ResizeObserver(s=>{const a=s.map(l=>({id:l.target.getAttribute("data-id"),nodeElement:l.target,forceUpdate:!0}));Ue(()=>n(a))})}),zt(()=>{var s;return(s=r.value)==null?void 0:s.disconnect()}),(s,a)=>(se(),Ae("div",DV,[r.value?(se(!0),Ae(be,{key:0},ri(Q(t),(l,u,c,d)=>{const f=[l.id];if(d&&d.key===l.id&&Ix(d,f))return d;const h=(se(),Oe(Q(kV),{id:l.id,key:l.id,"resize-observer":r.value},null,8,["id","resize-observer"]));return h.memo=f,h},a,0),128)):dt("",!0)]))}});function TV(){const{emits:e}=Je();_t(()=>{if(x_()){const t=document.querySelector(".vue-flow__pane");t&&window.getComputedStyle(t).zIndex!=="1"&&e.error(new yt(ht.MISSING_STYLES))}})}const MV=nt("div",{class:"vue-flow__edge-labels"},null,-1),NV={name:"VueFlow",compatConfig:{MODE:3}},OV=Pe({...NV,props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(e,{expose:t,emit:n}){const i=e,o=nb(),r=mc(i,"modelValue",n),s=mc(i,"nodes",n),a=mc(i,"edges",n),l=Je(i),u=dR({modelValue:r,nodes:s,edges:a},i,l);return hR(n,l.hooks),uV(),TV(),rt(_u,o),Hs(()=>{u()}),t(l),(c,d)=>(se(),Ae("div",{ref:Q(l).vueFlowRef,class:"vue-flow"},[k(iV,null,{default:$e(()=>[k(xV),MV,k(IV),cn(c.$slots,"zoom-pane")]),_:3}),cn(c.$slots,"default"),k(lV)],512))}}),$V={name:"Panel",compatConfig:{MODE:3}},RV=Pe({...$V,props:{position:{}},setup(e){const t=e,{userSelectionActive:n}=Je(),i=z(()=>`${t.position}`.split("-"));return(o,r)=>(se(),Ae("div",{class:jt(["vue-flow__panel",i.value]),style:ft({pointerEvents:Q(n)?"none":"all"})},[cn(o.$slots,"default")],6))}});var ni=(e=>(e.Lines="lines",e.Dots="dots",e))(ni||{});const R_=function({dimensions:e,size:t,color:n}){return Me("path",{stroke:n,"stroke-width":t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},V_=function({radius:e,color:t}){return Me("circle",{cx:e,cy:e,r:e,fill:t})};ni.Lines+"",ni.Dots+"";const VV={[ni.Dots]:"#81818a",[ni.Lines]:"#eee"},LV=["id","x","y","width","height","patternTransform"],zV={key:2,height:"100",width:"100"},BV=["fill"],HV=["x","y","fill"],FV={name:"Background",compatConfig:{MODE:3}},GV=Pe({...FV,props:{id:{},variant:{default:()=>ni.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:t,viewport:n}=Je(),i=z(()=>{const s=n.value.zoom,[a,l]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[a*s||1,l*s||1],c=e.size*s,[d,f]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],h=[d*s||1+u[0]/2,f*s||1+u[1]/2];return{scaledGap:u,offset:h,size:c}}),o=de(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),r=de(()=>e.color||e.patternColor||VV[e.variant||ni.Dots]);return(s,a)=>(se(),Ae("svg",{class:"vue-flow__background vue-flow__container",style:ft({height:`${s.height>100?100:s.height}%`,width:`${s.width>100?100:s.width}%`})},[cn(s.$slots,"pattern-container",{id:o.value},()=>[nt("pattern",{id:o.value,x:Q(n).x%i.value.scaledGap[0],y:Q(n).y%i.value.scaledGap[1],width:i.value.scaledGap[0],height:i.value.scaledGap[1],patternTransform:`translate(-${i.value.offset[0]},-${i.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[cn(s.$slots,"pattern",{},()=>[s.variant===Q(ni).Lines?(se(),Oe(Q(R_),{key:0,size:s.lineWidth,color:r.value,dimensions:i.value.scaledGap},null,8,["size","color","dimensions"])):s.variant===Q(ni).Dots?(se(),Oe(Q(V_),{key:1,color:r.value,radius:i.value.size/2},null,8,["color","radius"])):dt("",!0),s.bgColor?(se(),Ae("svg",zV,[nt("rect",{width:"100%",height:"100%",fill:s.bgColor},null,8,BV)])):dt("",!0)])],8,LV)]),nt("rect",{x:s.x,y:s.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,HV),cn(s.$slots,"default",{id:o.value})],4))}});var WV={value:()=>{}};function kh(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Wa(n)}function Wa(e){this._=e}function UV(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Wa.prototype=kh.prototype={constructor:Wa,on:function(e,t){var n=this._,i=UV(e+"",n),o,r=-1,s=i.length;if(arguments.length<2){for(;++r<s;)if((o=(e=i[r]).type)&&(o=jV(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++r<s;)if(o=(e=i[r]).type)n[o]=tv(n[o],e.name,t);else if(t==null)for(o in n)n[o]=tv(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wa(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,r;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}};function jV(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function tv(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=WV,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}var Gd="http://www.w3.org/1999/xhtml";const nv={svg:"http://www.w3.org/2000/svg",xhtml:Gd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ku(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),nv.hasOwnProperty(t)?{space:nv[t],local:e}:e}function YV(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Gd&&t.documentElement.namespaceURI===Gd?t.createElement(e):t.createElementNS(n,e)}}function KV(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function L_(e){var t=ku(e);return(t.local?KV:YV)(t)}function qV(){}function Ah(e){return e==null?qV:function(){return this.querySelector(e)}}function XV(e){typeof e!="function"&&(e=Ah(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r=t[o],s=r.length,a=i[o]=new Array(s),l,u,c=0;c<s;++c)(l=r[c])&&(u=e.call(l,l.__data__,c,r))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new nn(i,this._parents)}function ZV(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function JV(){return[]}function z_(e){return e==null?JV:function(){return this.querySelectorAll(e)}}function QV(e){return function(){return ZV(e.apply(this,arguments))}}function eL(e){typeof e=="function"?e=QV(e):e=z_(e);for(var t=this._groups,n=t.length,i=[],o=[],r=0;r<n;++r)for(var s=t[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(i.push(e.call(l,l.__data__,u,s)),o.push(l));return new nn(i,o)}function B_(e){return function(){return this.matches(e)}}function H_(e){return function(t){return t.matches(e)}}var tL=Array.prototype.find;function nL(e){return function(){return tL.call(this.children,e)}}function iL(){return this.firstElementChild}function oL(e){return this.select(e==null?iL:nL(typeof e=="function"?e:H_(e)))}var rL=Array.prototype.filter;function sL(){return Array.from(this.children)}function aL(e){return function(){return rL.call(this.children,e)}}function lL(e){return this.selectAll(e==null?sL:aL(typeof e=="function"?e:H_(e)))}function uL(e){typeof e!="function"&&(e=B_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r=t[o],s=r.length,a=i[o]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new nn(i,this._parents)}function F_(e){return new Array(e.length)}function cL(){return new nn(this._enter||this._groups.map(F_),this._parents)}function Vl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Vl.prototype={constructor:Vl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function dL(e){return function(){return e}}function fL(e,t,n,i,o,r){for(var s=0,a,l=t.length,u=r.length;s<u;++s)(a=t[s])?(a.__data__=r[s],i[s]=a):n[s]=new Vl(e,r[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function hL(e,t,n,i,o,r,s){var a,l,u=new Map,c=t.length,d=r.length,f=new Array(c),h;for(a=0;a<c;++a)(l=t[a])&&(f[a]=h=s.call(l,l.__data__,a,t)+"",u.has(h)?o[a]=l:u.set(h,l));for(a=0;a<d;++a)h=s.call(e,r[a],a,r)+"",(l=u.get(h))?(i[a]=l,l.__data__=r[a],u.delete(h)):n[a]=new Vl(e,r[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(f[a])===l&&(o[a]=l)}function mL(e){return e.__data__}function gL(e,t){if(!arguments.length)return Array.from(this,mL);var n=t?hL:fL,i=this._parents,o=this._groups;typeof e!="function"&&(e=dL(e));for(var r=o.length,s=new Array(r),a=new Array(r),l=new Array(r),u=0;u<r;++u){var c=i[u],d=o[u],f=d.length,h=pL(e.call(c,c&&c.__data__,u,i)),g=h.length,m=a[u]=new Array(g),p=s[u]=new Array(g),y=l[u]=new Array(f);n(c,d,m,p,y,h,t);for(var S=0,v=0,w,M;S<g;++S)if(w=m[S]){for(S>=v&&(v=S+1);!(M=p[v])&&++v<g;);w._next=M||null}}return s=new nn(s,i),s._enter=a,s._exit=l,s}function pL(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function vL(){return new nn(this._exit||this._groups.map(F_),this._parents)}function yL(e,t,n){var i=this.enter(),o=this,r=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?r.remove():n(r),i&&o?i.merge(o).order():o}function bL(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var u=n[l],c=i[l],d=u.length,f=a[l]=new Array(d),h,g=0;g<d;++g)(h=u[g]||c[g])&&(f[g]=h);for(;l<o;++l)a[l]=n[l];return new nn(a,this._parents)}function wL(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],o=i.length-1,r=i[o],s;--o>=0;)(s=i[o])&&(r&&s.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(s,r),r=s);return this}function _L(e){e||(e=SL);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s=n[r],a=s.length,l=o[r]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new nn(o,this._parents).order()}function SL(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function CL(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function xL(){return Array.from(this)}function EL(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length;o<r;++o){var s=i[o];if(s)return s}return null}function kL(){let e=0;for(const t of this)++e;return e}function AL(){return!this.node()}function DL(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],r=0,s=o.length,a;r<s;++r)(a=o[r])&&e.call(a,a.__data__,r,o);return this}function PL(e){return function(){this.removeAttribute(e)}}function IL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function TL(e,t){return function(){this.setAttribute(e,t)}}function ML(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function NL(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function OL(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function $L(e,t){var n=ku(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?IL:PL:typeof t=="function"?n.local?OL:NL:n.local?ML:TL)(n,t))}function G_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function RL(e){return function(){this.style.removeProperty(e)}}function VL(e,t,n){return function(){this.style.setProperty(e,t,n)}}function LL(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function zL(e,t,n){return arguments.length>1?this.each((t==null?RL:typeof t=="function"?LL:VL)(e,t,n??"")):gr(this.node(),e)}function gr(e,t){return e.style.getPropertyValue(t)||G_(e).getComputedStyle(e,null).getPropertyValue(t)}function BL(e){return function(){delete this[e]}}function HL(e,t){return function(){this[e]=t}}function FL(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function GL(e,t){return arguments.length>1?this.each((t==null?BL:typeof t=="function"?FL:HL)(e,t)):this.node()[e]}function W_(e){return e.trim().split(/^|\s+/)}function Dh(e){return e.classList||new U_(e)}function U_(e){this._node=e,this._names=W_(e.getAttribute("class")||"")}U_.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function j_(e,t){for(var n=Dh(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function Y_(e,t){for(var n=Dh(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function WL(e){return function(){j_(this,e)}}function UL(e){return function(){Y_(this,e)}}function jL(e,t){return function(){(t.apply(this,arguments)?j_:Y_)(this,e)}}function YL(e,t){var n=W_(e+"");if(arguments.length<2){for(var i=Dh(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?jL:t?WL:UL)(n,t))}function KL(){this.textContent=""}function qL(e){return function(){this.textContent=e}}function XL(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ZL(e){return arguments.length?this.each(e==null?KL:(typeof e=="function"?XL:qL)(e)):this.node().textContent}function JL(){this.innerHTML=""}function QL(e){return function(){this.innerHTML=e}}function ez(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function tz(e){return arguments.length?this.each(e==null?JL:(typeof e=="function"?ez:QL)(e)):this.node().innerHTML}function nz(){this.nextSibling&&this.parentNode.appendChild(this)}function iz(){return this.each(nz)}function oz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rz(){return this.each(oz)}function sz(e){var t=typeof e=="function"?e:L_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function az(){return null}function lz(e,t){var n=typeof e=="function"?e:L_(e),i=t==null?az:typeof t=="function"?t:Ah(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function uz(){var e=this.parentNode;e&&e.removeChild(this)}function cz(){return this.each(uz)}function dz(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function fz(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function hz(e){return this.select(e?fz:dz)}function mz(e){return arguments.length?this.property("__data__",e):this.node().__data__}function gz(e){return function(t){e.call(this,t,this.__data__)}}function pz(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function vz(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,r;n<o;++n)r=t[n],(!e.type||r.type===e.type)&&r.name===e.name?this.removeEventListener(r.type,r.listener,r.options):t[++i]=r;++i?t.length=i:delete this.__on}}}function yz(e,t,n){return function(){var i=this.__on,o,r=gz(t);if(i){for(var s=0,a=i.length;s<a;++s)if((o=i[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=r,o.options=n),o.value=t;return}}this.addEventListener(e.type,r,n),o={type:e.type,name:e.name,value:t,listener:r,options:n},i?i.push(o):this.__on=[o]}}function bz(e,t,n){var i=pz(e+""),o,r=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(o=0,c=a[l];o<r;++o)if((s=i[o]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?yz:vz,o=0;o<r;++o)this.each(a(i[o],t,n));return this}function K_(e,t,n){var i=G_(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function wz(e,t){return function(){return K_(this,e,t)}}function _z(e,t){return function(){return K_(this,e,t.apply(this,arguments))}}function Sz(e,t){return this.each((typeof t=="function"?_z:wz)(e,t))}function*Cz(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length,s;o<r;++o)(s=i[o])&&(yield s)}var q_=[null];function nn(e,t){this._groups=e,this._parents=t}function Us(){return new nn([[document.documentElement]],q_)}function xz(){return this}nn.prototype=Us.prototype={constructor:nn,select:XV,selectAll:eL,selectChild:oL,selectChildren:lL,filter:uL,data:gL,enter:cL,exit:vL,join:yL,merge:bL,selection:xz,order:wL,sort:_L,call:CL,nodes:xL,node:EL,size:kL,empty:AL,each:DL,attr:$L,style:zL,property:GL,classed:YL,text:ZL,html:tz,raise:iz,lower:rz,append:sz,insert:lz,remove:cz,clone:hz,datum:mz,on:bz,dispatch:Sz,[Symbol.iterator]:Cz};function Ai(e){return typeof e=="string"?new nn([[document.querySelector(e)]],[document.documentElement]):new nn([[e]],q_)}function Ez(e){let t;for(;t=e.sourceEvent;)e=t;return e}function bi(e,t){if(e=Ez(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const Wd={capture:!0,passive:!1};function Ud(e){e.preventDefault(),e.stopImmediatePropagation()}function kz(e){var t=e.document.documentElement,n=Ai(e).on("dragstart.drag",Ud,Wd);"onselectstart"in t?n.on("selectstart.drag",Ud,Wd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Az(e,t){var n=e.document.documentElement,i=Ai(e).on("dragstart.drag",null);t&&(i.on("click.drag",Ud,Wd),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Ph(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function X_(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function js(){}var ks=.7,Ll=1/ks,ar="\\s*([+-]?\\d+)\\s*",As="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",On="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dz=/^#([0-9a-f]{3,8})$/,Pz=new RegExp(`^rgb\\(${ar},${ar},${ar}\\)$`),Iz=new RegExp(`^rgb\\(${On},${On},${On}\\)$`),Tz=new RegExp(`^rgba\\(${ar},${ar},${ar},${As}\\)$`),Mz=new RegExp(`^rgba\\(${On},${On},${On},${As}\\)$`),Nz=new RegExp(`^hsl\\(${As},${On},${On}\\)$`),Oz=new RegExp(`^hsla\\(${As},${On},${On},${As}\\)$`),iv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ph(js,Ds,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ov,formatHex:ov,formatHex8:$z,formatHsl:Rz,formatRgb:rv,toString:rv});function ov(){return this.rgb().formatHex()}function $z(){return this.rgb().formatHex8()}function Rz(){return Z_(this).formatHsl()}function rv(){return this.rgb().formatRgb()}function Ds(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Dz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?sv(t):n===3?new Gt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ea(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ea(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Pz.exec(e))?new Gt(t[1],t[2],t[3],1):(t=Iz.exec(e))?new Gt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Tz.exec(e))?Ea(t[1],t[2],t[3],t[4]):(t=Mz.exec(e))?Ea(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Nz.exec(e))?uv(t[1],t[2]/100,t[3]/100,1):(t=Oz.exec(e))?uv(t[1],t[2]/100,t[3]/100,t[4]):iv.hasOwnProperty(e)?sv(iv[e]):e==="transparent"?new Gt(NaN,NaN,NaN,0):null}function sv(e){return new Gt(e>>16&255,e>>8&255,e&255,1)}function Ea(e,t,n,i){return i<=0&&(e=t=n=NaN),new Gt(e,t,n,i)}function Vz(e){return e instanceof js||(e=Ds(e)),e?(e=e.rgb(),new Gt(e.r,e.g,e.b,e.opacity)):new Gt}function jd(e,t,n,i){return arguments.length===1?Vz(e):new Gt(e,t,n,i??1)}function Gt(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Ph(Gt,jd,X_(js,{brighter(e){return e=e==null?Ll:Math.pow(Ll,e),new Gt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new Gt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gt(yo(this.r),yo(this.g),yo(this.b),zl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:av,formatHex:av,formatHex8:Lz,formatRgb:lv,toString:lv}));function av(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}`}function Lz(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}${lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function lv(){const e=zl(this.opacity);return`${e===1?"rgb(":"rgba("}${yo(this.r)}, ${yo(this.g)}, ${yo(this.b)}${e===1?")":`, ${e})`}`}function zl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lo(e){return e=yo(e),(e<16?"0":"")+e.toString(16)}function uv(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pn(e,t,n,i)}function Z_(e){if(e instanceof pn)return new pn(e.h,e.s,e.l,e.opacity);if(e instanceof js||(e=Ds(e)),!e)return new pn;if(e instanceof pn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(t===r?s=(n-i)/a+(n<i)*6:n===r?s=(i-t)/a+2:s=(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new pn(s,a,l,e.opacity)}function zz(e,t,n,i){return arguments.length===1?Z_(e):new pn(e,t,n,i??1)}function pn(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Ph(pn,zz,X_(js,{brighter(e){return e=e==null?Ll:Math.pow(Ll,e),new pn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new pn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Gt(kc(e>=240?e-240:e+120,o,i),kc(e,o,i),kc(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new pn(cv(this.h),ka(this.s),ka(this.l),zl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=zl(this.opacity);return`${e===1?"hsl(":"hsla("}${cv(this.h)}, ${ka(this.s)*100}%, ${ka(this.l)*100}%${e===1?")":`, ${e})`}`}}));function cv(e){return e=(e||0)%360,e<0?e+360:e}function ka(e){return Math.max(0,Math.min(1,e||0))}function kc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const J_=e=>()=>e;function Bz(e,t){return function(n){return e+n*t}}function Hz(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function Fz(e){return(e=+e)==1?Q_:function(t,n){return n-t?Hz(t,n,e):J_(isNaN(t)?n:t)}}function Q_(e,t){var n=t-e;return n?Bz(e,n):J_(isNaN(e)?t:e)}const dv=function e(t){var n=Fz(t);function i(o,r){var s=n((o=jd(o)).r,(r=jd(r)).r),a=n(o.g,r.g),l=n(o.b,r.b),u=Q_(o.opacity,r.opacity);return function(c){return o.r=s(c),o.g=a(c),o.b=l(c),o.opacity=u(c),o+""}}return i.gamma=e,i}(1);function ki(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Yd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ac=new RegExp(Yd.source,"g");function Gz(e){return function(){return e}}function Wz(e){return function(t){return e(t)+""}}function Uz(e,t){var n=Yd.lastIndex=Ac.lastIndex=0,i,o,r,s=-1,a=[],l=[];for(e=e+"",t=t+"";(i=Yd.exec(e))&&(o=Ac.exec(t));)(r=o.index)>n&&(r=t.slice(n,r),a[s]?a[s]+=r:a[++s]=r),(i=i[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:ki(i,o)})),n=Ac.lastIndex;return n<t.length&&(r=t.slice(n),a[s]?a[s]+=r:a[++s]=r),a.length<2?l[0]?Wz(l[0].x):Gz(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)a[(d=l[c]).i]=d.x(u);return a.join("")})}var fv=180/Math.PI,Kd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e1(e,t,n,i,o,r){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*fv,skewX:Math.atan(l)*fv,scaleX:s,scaleY:a}}var Aa;function jz(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Kd:e1(t.a,t.b,t.c,t.d,t.e,t.f)}function Yz(e){return e==null||(Aa||(Aa=document.createElementNS("http://www.w3.org/2000/svg","g")),Aa.setAttribute("transform",e),!(e=Aa.transform.baseVal.consolidate()))?Kd:(e=e.matrix,e1(e.a,e.b,e.c,e.d,e.e,e.f))}function t1(e,t,n,i){function o(u){return u.length?u.pop()+" ":""}function r(u,c,d,f,h,g){if(u!==d||c!==f){var m=h.push("translate(",null,t,null,n);g.push({i:m-4,x:ki(u,d)},{i:m-2,x:ki(c,f)})}else(d||f)&&h.push("translate("+d+t+f+n)}function s(u,c,d,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:d.push(o(d)+"rotate(",null,i)-2,x:ki(u,c)})):c&&d.push(o(d)+"rotate("+c+i)}function a(u,c,d,f){u!==c?f.push({i:d.push(o(d)+"skewX(",null,i)-2,x:ki(u,c)}):c&&d.push(o(d)+"skewX("+c+i)}function l(u,c,d,f,h,g){if(u!==d||c!==f){var m=h.push(o(h)+"scale(",null,",",null,")");g.push({i:m-4,x:ki(u,d)},{i:m-2,x:ki(c,f)})}else(d!==1||f!==1)&&h.push(o(h)+"scale("+d+","+f+")")}return function(u,c){var d=[],f=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,d,f),s(u.rotate,c.rotate,d,f),a(u.skewX,c.skewX,d,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,f),u=c=null,function(h){for(var g=-1,m=f.length,p;++g<m;)d[(p=f[g]).i]=p.x(h);return d.join("")}}}var Kz=t1(jz,"px, ","px)","deg)"),qz=t1(Yz,", ",")",")"),Xz=1e-12;function hv(e){return((e=Math.exp(e))+1/e)/2}function Zz(e){return((e=Math.exp(e))-1/e)/2}function Jz(e){return((e=Math.exp(2*e))-1)/(e+1)}const Qz=function e(t,n,i){function o(r,s){var a=r[0],l=r[1],u=r[2],c=s[0],d=s[1],f=s[2],h=c-a,g=d-l,m=h*h+g*g,p,y;if(m<Xz)y=Math.log(f/u)/t,p=function(O){return[a+O*h,l+O*g,u*Math.exp(t*O*y)]};else{var S=Math.sqrt(m),v=(f*f-u*u+i*m)/(2*u*n*S),w=(f*f-u*u-i*m)/(2*f*n*S),M=Math.log(Math.sqrt(v*v+1)-v),I=Math.log(Math.sqrt(w*w+1)-w);y=(I-M)/t,p=function(O){var V=O*y,N=hv(M),$=u/(n*S)*(N*Jz(t*V+M)-Zz(M));return[a+$*h,l+$*g,u*N/hv(t*V+M)]}}return p.duration=y*1e3*t/Math.SQRT2,p}return o.rho=function(r){var s=Math.max(.001,+r),a=s*s,l=a*a;return e(s,a,l)},o}(Math.SQRT2,2,4);var pr=0,Kr=0,Lr=0,n1=1e3,Bl,qr,Hl=0,Io=0,Au=0,Ps=typeof performance=="object"&&performance.now?performance:Date,i1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ih(){return Io||(i1(eB),Io=Ps.now()+Au)}function eB(){Io=0}function Fl(){this._call=this._time=this._next=null}Fl.prototype=o1.prototype={constructor:Fl,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Ih():+n)+(t==null?0:+t),!this._next&&qr!==this&&(qr?qr._next=this:Bl=this,qr=this),this._call=e,this._time=n,qd()},stop:function(){this._call&&(this._call=null,this._time=1/0,qd())}};function o1(e,t,n){var i=new Fl;return i.restart(e,t,n),i}function tB(){Ih(),++pr;for(var e=Bl,t;e;)(t=Io-e._time)>=0&&e._call.call(void 0,t),e=e._next;--pr}function mv(){Io=(Hl=Ps.now())+Au,pr=Kr=0;try{tB()}finally{pr=0,iB(),Io=0}}function nB(){var e=Ps.now(),t=e-Hl;t>n1&&(Au-=t,Hl=e)}function iB(){for(var e,t=Bl,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Bl=n);qr=e,qd(i)}function qd(e){if(!pr){Kr&&(Kr=clearTimeout(Kr));var t=e-Io;t>24?(e<1/0&&(Kr=setTimeout(mv,e-Ps.now()-Au)),Lr&&(Lr=clearInterval(Lr))):(Lr||(Hl=Ps.now(),Lr=setInterval(nB,n1)),pr=1,i1(mv))}}function gv(e,t,n){var i=new Fl;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var oB=kh("start","end","cancel","interrupt"),rB=[],r1=0,pv=1,Xd=2,Ua=3,vv=4,Zd=5,ja=6;function Du(e,t,n,i,o,r){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;sB(e,n,{name:t,index:i,group:o,on:oB,tween:rB,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:r1})}function Th(e,t){var n=_n(e,t);if(n.state>r1)throw new Error("too late; already scheduled");return n}function Bn(e,t){var n=_n(e,t);if(n.state>Ua)throw new Error("too late; already running");return n}function _n(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function sB(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=o1(r,0,n.time);function r(u){n.state=pv,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,d,f,h;if(n.state!==pv)return l();for(c in i)if(h=i[c],h.name===n.name){if(h.state===Ua)return gv(s);h.state===vv?(h.state=ja,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=ja,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(gv(function(){n.state===Ua&&(n.state=vv,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Xd,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Xd){for(n.state=Ua,o=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=h);o.length=d+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=Zd,1),d=-1,f=o.length;++d<f;)o[d].call(e,c);n.state===Zd&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=ja,n.timer.stop(),delete i[t];for(var u in i)return;delete e.__transition}}function Ya(e,t){var n=e.__transition,i,o,r=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((i=n[s]).name!==t){r=!1;continue}o=i.state>Xd&&i.state<Zd,i.state=ja,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[s]}r&&delete e.__transition}}function aB(e){return this.each(function(){Ya(this,e)})}function lB(e,t){var n,i;return function(){var o=Bn(this,e),r=o.tween;if(r!==n){i=n=r;for(var s=0,a=i.length;s<a;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function uB(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var r=Bn(this,e),s=r.tween;if(s!==i){o=(i=s).slice();for(var a={name:t,value:n},l=0,u=o.length;l<u;++l)if(o[l].name===t){o[l]=a;break}l===u&&o.push(a)}r.tween=o}}function cB(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=_n(this.node(),n).tween,o=0,r=i.length,s;o<r;++o)if((s=i[o]).name===e)return s.value;return null}return this.each((t==null?lB:uB)(n,e,t))}function Mh(e,t,n){var i=e._id;return e.each(function(){var o=Bn(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return _n(o,i).value[t]}}function s1(e,t){var n;return(typeof t=="number"?ki:t instanceof Ds?dv:(n=Ds(t))?(t=n,dv):Uz)(e,t)}function dB(e){return function(){this.removeAttribute(e)}}function fB(e){return function(){this.removeAttributeNS(e.space,e.local)}}function hB(e,t,n){var i,o=n+"",r;return function(){var s=this.getAttribute(e);return s===o?null:s===i?r:r=t(i=s,n)}}function mB(e,t,n){var i,o=n+"",r;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?r:r=t(i=s,n)}}function gB(e,t,n){var i,o,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a)))}}function pB(e,t,n){var i,o,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a)))}}function vB(e,t){var n=ku(e),i=n==="transform"?qz:s1;return this.attrTween(e,typeof t=="function"?(n.local?pB:gB)(n,i,Mh(this,"attr."+e,t)):t==null?(n.local?fB:dB)(n):(n.local?mB:hB)(n,i,t))}function yB(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function bB(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function wB(e,t){var n,i;function o(){var r=t.apply(this,arguments);return r!==i&&(n=(i=r)&&bB(e,r)),n}return o._value=t,o}function _B(e,t){var n,i;function o(){var r=t.apply(this,arguments);return r!==i&&(n=(i=r)&&yB(e,r)),n}return o._value=t,o}function SB(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=ku(e);return this.tween(n,(i.local?wB:_B)(i,t))}function CB(e,t){return function(){Th(this,e).delay=+t.apply(this,arguments)}}function xB(e,t){return t=+t,function(){Th(this,e).delay=t}}function EB(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?CB:xB)(t,e)):_n(this.node(),t).delay}function kB(e,t){return function(){Bn(this,e).duration=+t.apply(this,arguments)}}function AB(e,t){return t=+t,function(){Bn(this,e).duration=t}}function DB(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?kB:AB)(t,e)):_n(this.node(),t).duration}function PB(e,t){if(typeof t!="function")throw new Error;return function(){Bn(this,e).ease=t}}function IB(e){var t=this._id;return arguments.length?this.each(PB(t,e)):_n(this.node(),t).ease}function TB(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Bn(this,e).ease=n}}function MB(e){if(typeof e!="function")throw new Error;return this.each(TB(this._id,e))}function NB(e){typeof e!="function"&&(e=B_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r=t[o],s=r.length,a=i[o]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new ui(i,this._parents,this._name,this._id)}function OB(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l=t[a],u=n[a],c=l.length,d=s[a]=new Array(c),f,h=0;h<c;++h)(f=l[h]||u[h])&&(d[h]=f);for(;a<i;++a)s[a]=t[a];return new ui(s,this._parents,this._name,this._id)}function $B(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function RB(e,t,n){var i,o,r=$B(t)?Th:Bn;return function(){var s=r(this,e),a=s.on;a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}function VB(e,t){var n=this._id;return arguments.length<2?_n(this.node(),n).on.on(e):this.each(RB(n,e,t))}function LB(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function zB(){return this.on("end.remove",LB(this._id))}function BB(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ah(e));for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a=i[s],l=a.length,u=r[s]=new Array(l),c,d,f=0;f<l;++f)(c=a[f])&&(d=e.call(c,c.__data__,f,a))&&("__data__"in c&&(d.__data__=c.__data__),u[f]=d,Du(u[f],t,n,f,u,_n(c,n)));return new ui(r,this._parents,t,n)}function HB(e){var t=this._name,n=this._id;typeof e!="function"&&(e=z_(e));for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l=i[a],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var f=e.call(c,c.__data__,d,l),h,g=_n(c,n),m=0,p=f.length;m<p;++m)(h=f[m])&&Du(h,t,n,m,f,g);r.push(f),s.push(c)}return new ui(r,s,t,n)}var FB=Us.prototype.constructor;function GB(){return new FB(this._groups,this._parents)}function WB(e,t){var n,i,o;return function(){var r=gr(this,e),s=(this.style.removeProperty(e),gr(this,e));return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}function a1(e){return function(){this.style.removeProperty(e)}}function UB(e,t,n){var i,o=n+"",r;return function(){var s=gr(this,e);return s===o?null:s===i?r:r=t(i=s,n)}}function jB(e,t,n){var i,o,r;return function(){var s=gr(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),gr(this,e))),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}function YB(e,t){var n,i,o,r="style."+t,s="end."+r,a;return function(){var l=Bn(this,e),u=l.on,c=l.value[r]==null?a||(a=a1(t)):void 0;(u!==n||o!==c)&&(i=(n=u).copy()).on(s,o=c),l.on=i}}function KB(e,t,n){var i=(e+="")=="transform"?Kz:s1;return t==null?this.styleTween(e,WB(e,i)).on("end.style."+e,a1(e)):typeof t=="function"?this.styleTween(e,jB(e,i,Mh(this,"style."+e,t))).each(YB(this._id,e)):this.styleTween(e,UB(e,i,t),n).on("end.style."+e,null)}function qB(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function XB(e,t,n){var i,o;function r(){var s=t.apply(this,arguments);return s!==o&&(i=(o=s)&&qB(e,s,n)),i}return r._value=t,r}function ZB(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,XB(e,t,n??""))}function JB(e){return function(){this.textContent=e}}function QB(e){return function(){var t=e(this);this.textContent=t??""}}function eH(e){return this.tween("text",typeof e=="function"?QB(Mh(this,"text",e)):JB(e==null?"":e+""))}function tH(e){return function(t){this.textContent=e.call(this,t)}}function nH(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&tH(o)),t}return i._value=e,i}function iH(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,nH(e))}function oH(){for(var e=this._name,t=this._id,n=l1(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s=i[r],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=_n(l,t);Du(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ui(i,this._parents,e,n)}function rH(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(r,s){var a={value:s},l={value:function(){--o===0&&r()}};n.each(function(){var u=Bn(this,i),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),o===0&&r()})}var sH=0;function ui(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function l1(){return++sH}var jn=Us.prototype;ui.prototype={constructor:ui,select:BB,selectAll:HB,selectChild:jn.selectChild,selectChildren:jn.selectChildren,filter:NB,merge:OB,selection:GB,transition:oH,call:jn.call,nodes:jn.nodes,node:jn.node,size:jn.size,empty:jn.empty,each:jn.each,on:VB,attr:vB,attrTween:SB,style:KB,styleTween:ZB,text:eH,textTween:iH,remove:zB,tween:cB,delay:EB,duration:DB,ease:IB,easeVarying:MB,end:rH,[Symbol.iterator]:jn[Symbol.iterator]};function aH(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lH={time:null,delay:0,duration:250,ease:aH};function uH(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function cH(e){var t,n;e instanceof ui?(t=e._id,e=e._name):(t=l1(),(n=lH).time=Ih(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s=i[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&Du(l,e,t,u,s,n||uH(l,t));return new ui(i,this._parents,e,t)}Us.prototype.interrupt=aB;Us.prototype.transition=cH;const Da=e=>()=>e;function dH(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function ii(e,t,n){this.k=e,this.x=t,this.y=n}ii.prototype={constructor:ii,scale:function(e){return e===1?this:new ii(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ii(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Nh=new ii(1,0,0);ii.prototype;function Dc(e){e.stopImmediatePropagation()}function zr(e){e.preventDefault(),e.stopImmediatePropagation()}function fH(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function hH(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function yv(){return this.__zoom||Nh}function mH(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function gH(){return navigator.maxTouchPoints||"ontouchstart"in this}function pH(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function vH(){var e=fH,t=hH,n=pH,i=mH,o=gH,r=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=Qz,u=kh("start","zoom","end"),c,d,f,h=500,g=150,m=0,p=10;function y(b){b.property("__zoom",yv).on("wheel.zoom",V,{passive:!1}).on("mousedown.zoom",N).on("dblclick.zoom",$).filter(o).on("touchstart.zoom",H).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",W).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(b,P,C,F){var B=b.selection?b.selection():b;B.property("__zoom",yv),b!==B?M(b,P,C,F):B.interrupt().each(function(){I(this,arguments).event(F).start().zoom(null,typeof P=="function"?P.apply(this,arguments):P).end()})},y.scaleBy=function(b,P,C,F){y.scaleTo(b,function(){var B=this.__zoom.k,R=typeof P=="function"?P.apply(this,arguments):P;return B*R},C,F)},y.scaleTo=function(b,P,C,F){y.transform(b,function(){var B=t.apply(this,arguments),R=this.__zoom,L=C==null?w(B):typeof C=="function"?C.apply(this,arguments):C,U=R.invert(L),j=typeof P=="function"?P.apply(this,arguments):P;return n(v(S(R,j),L,U),B,s)},C,F)},y.translateBy=function(b,P,C,F){y.transform(b,function(){return n(this.__zoom.translate(typeof P=="function"?P.apply(this,arguments):P,typeof C=="function"?C.apply(this,arguments):C),t.apply(this,arguments),s)},null,F)},y.translateTo=function(b,P,C,F,B){y.transform(b,function(){var R=t.apply(this,arguments),L=this.__zoom,U=F==null?w(R):typeof F=="function"?F.apply(this,arguments):F;return n(Nh.translate(U[0],U[1]).scale(L.k).translate(typeof P=="function"?-P.apply(this,arguments):-P,typeof C=="function"?-C.apply(this,arguments):-C),R,s)},F,B)};function S(b,P){return P=Math.max(r[0],Math.min(r[1],P)),P===b.k?b:new ii(P,b.x,b.y)}function v(b,P,C){var F=P[0]-C[0]*b.k,B=P[1]-C[1]*b.k;return F===b.x&&B===b.y?b:new ii(b.k,F,B)}function w(b){return[(+b[0][0]+ +b[1][0])/2,(+b[0][1]+ +b[1][1])/2]}function M(b,P,C,F){b.on("start.zoom",function(){I(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){I(this,arguments).event(F).end()}).tween("zoom",function(){var B=this,R=arguments,L=I(B,R).event(F),U=t.apply(B,R),j=C==null?w(U):typeof C=="function"?C.apply(B,R):C,J=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),X=B.__zoom,re=typeof P=="function"?P.apply(B,R):P,ee=l(X.invert(j).concat(J/X.k),re.invert(j).concat(J/re.k));return function(le){if(le===1)le=re;else{var ue=ee(le),pe=J/ue[2];le=new ii(pe,j[0]-ue[0]*pe,j[1]-ue[1]*pe)}L.zoom(null,le)}})}function I(b,P,C){return!C&&b.__zooming||new O(b,P)}function O(b,P){this.that=b,this.args=P,this.active=0,this.sourceEvent=null,this.extent=t.apply(b,P),this.taps=0}O.prototype={event:function(b){return b&&(this.sourceEvent=b),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(b,P){return this.mouse&&b!=="mouse"&&(this.mouse[1]=P.invert(this.mouse[0])),this.touch0&&b!=="touch"&&(this.touch0[1]=P.invert(this.touch0[0])),this.touch1&&b!=="touch"&&(this.touch1[1]=P.invert(this.touch1[0])),this.that.__zoom=P,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(b){var P=Ai(this.that).datum();u.call(b,this.that,new dH(b,{sourceEvent:this.sourceEvent,target:y,type:b,transform:this.that.__zoom,dispatch:u}),P)}};function V(b,...P){if(!e.apply(this,arguments))return;var C=I(this,P).event(b),F=this.__zoom,B=Math.max(r[0],Math.min(r[1],F.k*Math.pow(2,i.apply(this,arguments)))),R=bi(b);if(C.wheel)(C.mouse[0][0]!==R[0]||C.mouse[0][1]!==R[1])&&(C.mouse[1]=F.invert(C.mouse[0]=R)),clearTimeout(C.wheel);else{if(F.k===B)return;C.mouse=[R,F.invert(R)],Ya(this),C.start()}zr(b),C.wheel=setTimeout(L,g),C.zoom("mouse",n(v(S(F,B),C.mouse[0],C.mouse[1]),C.extent,s));function L(){C.wheel=null,C.end()}}function N(b,...P){if(f||!e.apply(this,arguments))return;var C=b.currentTarget,F=I(this,P,!0).event(b),B=Ai(b.view).on("mousemove.zoom",j,!0).on("mouseup.zoom",J,!0),R=bi(b,C),L=b.clientX,U=b.clientY;kz(b.view),Dc(b),F.mouse=[R,this.__zoom.invert(R)],Ya(this),F.start();function j(X){if(zr(X),!F.moved){var re=X.clientX-L,ee=X.clientY-U;F.moved=re*re+ee*ee>m}F.event(X).zoom("mouse",n(v(F.that.__zoom,F.mouse[0]=bi(X,C),F.mouse[1]),F.extent,s))}function J(X){B.on("mousemove.zoom mouseup.zoom",null),Az(X.view,F.moved),zr(X),F.event(X).end()}}function $(b,...P){if(e.apply(this,arguments)){var C=this.__zoom,F=bi(b.changedTouches?b.changedTouches[0]:b,this),B=C.invert(F),R=C.k*(b.shiftKey?.5:2),L=n(v(S(C,R),F,B),t.apply(this,P),s);zr(b),a>0?Ai(this).transition().duration(a).call(M,L,F,b):Ai(this).call(y.transform,L,F,b)}}function H(b,...P){if(e.apply(this,arguments)){var C=b.touches,F=C.length,B=I(this,P,b.changedTouches.length===F).event(b),R,L,U,j;for(Dc(b),L=0;L<F;++L)U=C[L],j=bi(U,this),j=[j,this.__zoom.invert(j),U.identifier],B.touch0?!B.touch1&&B.touch0[2]!==j[2]&&(B.touch1=j,B.taps=0):(B.touch0=j,R=!0,B.taps=1+!!c);c&&(c=clearTimeout(c)),R&&(B.taps<2&&(d=j[0],c=setTimeout(function(){c=null},h)),Ya(this),B.start())}}function E(b,...P){if(this.__zooming){var C=I(this,P).event(b),F=b.changedTouches,B=F.length,R,L,U,j;for(zr(b),R=0;R<B;++R)L=F[R],U=bi(L,this),C.touch0&&C.touch0[2]===L.identifier?C.touch0[0]=U:C.touch1&&C.touch1[2]===L.identifier&&(C.touch1[0]=U);if(L=C.that.__zoom,C.touch1){var J=C.touch0[0],X=C.touch0[1],re=C.touch1[0],ee=C.touch1[1],le=(le=re[0]-J[0])*le+(le=re[1]-J[1])*le,ue=(ue=ee[0]-X[0])*ue+(ue=ee[1]-X[1])*ue;L=S(L,Math.sqrt(le/ue)),U=[(J[0]+re[0])/2,(J[1]+re[1])/2],j=[(X[0]+ee[0])/2,(X[1]+ee[1])/2]}else if(C.touch0)U=C.touch0[0],j=C.touch0[1];else return;C.zoom("touch",n(v(L,U,j),C.extent,s))}}function W(b,...P){if(this.__zooming){var C=I(this,P).event(b),F=b.changedTouches,B=F.length,R,L;for(Dc(b),f&&clearTimeout(f),f=setTimeout(function(){f=null},h),R=0;R<B;++R)L=F[R],C.touch0&&C.touch0[2]===L.identifier?delete C.touch0:C.touch1&&C.touch1[2]===L.identifier&&delete C.touch1;if(C.touch1&&!C.touch0&&(C.touch0=C.touch1,delete C.touch1),C.touch0)C.touch0[1]=this.__zoom.invert(C.touch0[0]);else if(C.end(),C.taps===2&&(L=bi(L,this),Math.hypot(d[0]-L[0],d[1]-L[1])<p)){var U=Ai(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return y.wheelDelta=function(b){return arguments.length?(i=typeof b=="function"?b:Da(+b),y):i},y.filter=function(b){return arguments.length?(e=typeof b=="function"?b:Da(!!b),y):e},y.touchable=function(b){return arguments.length?(o=typeof b=="function"?b:Da(!!b),y):o},y.extent=function(b){return arguments.length?(t=typeof b=="function"?b:Da([[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]]),y):t},y.scaleExtent=function(b){return arguments.length?(r[0]=+b[0],r[1]=+b[1],y):[r[0],r[1]]},y.translateExtent=function(b){return arguments.length?(s[0][0]=+b[0][0],s[1][0]=+b[1][0],s[0][1]=+b[0][1],s[1][1]=+b[1][1],y):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},y.constrain=function(b){return arguments.length?(n=b,y):n},y.duration=function(b){return arguments.length?(a=+b,y):a},y.interpolate=function(b){return arguments.length?(l=b,y):l},y.on=function(){var b=u.on.apply(u,arguments);return b===u?y:b},y.clickDistance=function(b){return arguments.length?(m=(b=+b)*b,y):Math.sqrt(m)},y.tapDistance=function(b){return arguments.length?(p=+b,y):p},y}const u1=Symbol("MiniMapSlots"),yH=["id","x","y","rx","ry","width","height","fill","stroke","stroke-width","shape-rendering"],bH={name:"MiniMapNode",compatConfig:{MODE:3}},wH=Pe({...bH,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{}},emits:["click","dblclick","mouseenter","mousemove","mouseleave"],setup(e,{emit:t}){const n=e,i=je(u1),o=Of(),r=de(()=>o.style??{});function s(d){t("click",d)}function a(d){t("dblclick",d)}function l(d){t("mouseenter",d)}function u(d){t("mousemove",d)}function c(d){t("mouseleave",d)}return(d,f)=>Q(i)[`node-${n.type}`]?(se(),Oe(nu(Q(i)[`node-${n.type}`]),_f(Ee({key:0},n)),null,16)):(se(),Ae("rect",{key:1,id:d.id,class:jt(["vue-flow__minimap-node",{selected:d.selected,dragging:d.dragging}]),x:d.position.x,y:d.position.y,rx:d.borderRadius,ry:d.borderRadius,width:d.dimensions.width,height:d.dimensions.height,fill:d.color||r.value.background||r.value.backgroundColor,stroke:d.strokeColor,"stroke-width":d.strokeWidth,"shape-rendering":d.shapeRendering,onClick:s,onDblclick:a,onMouseenter:l,onMousemove:u,onMouseleave:c},null,42,yH))}}),_H=["width","height","viewBox","aria-labelledby"],SH=["id"],CH=["d","fill","stroke","stroke-width"],xH={name:"MiniMap",compatConfig:{MODE:3}},EH=Pe({...xH,props:{nodeColor:{type:[String,Function],default:"#e2e2e2"},nodeStrokeColor:{type:[String,Function],default:"transparent"},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:"rgb(240, 240, 240, 0.6)"},maskStrokeColor:{default:"none"},maskStrokeWidth:{default:1},position:{default:"bottom-right"},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:"Vue Flow mini map"},inversePan:{type:Boolean,default:!1},zoomStep:{default:10},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:["click","nodeClick","nodeDblclick","nodeMouseenter","nodeMousemove","nodeMouseleave"],setup(e,{emit:t}){const n=nb(),i=Of(),o=200,r=150,{id:s,edges:a,viewport:l,translateExtent:u,dimensions:c,emits:d,d3Selection:f,d3Zoom:h,getNodesInitialized:g}=Je(),m=ne();rt(u1,n);const p=de(()=>{var B;return e.width??((B=i.style)==null?void 0:B.width)??o}),y=de(()=>{var B;return e.height??((B=i.style)==null?void 0:B.height)??r}),S=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision",v=z(()=>typeof e.nodeColor=="string"?()=>e.nodeColor:e.nodeColor),w=z(()=>typeof e.nodeStrokeColor=="string"?()=>e.nodeStrokeColor:e.nodeStrokeColor),M=z(()=>typeof e.nodeClassName=="string"?()=>e.nodeClassName:typeof e.nodeClassName=="function"?e.nodeClassName:()=>""),I=z(()=>wh(g.value)),O=z(()=>({x:-l.value.x/l.value.zoom,y:-l.value.y/l.value.zoom,width:c.value.width/l.value.zoom,height:c.value.height/l.value.zoom})),V=z(()=>g.value&&g.value.length?B2(I.value,O.value):O.value),N=z(()=>{const B=V.value.width/p.value,R=V.value.height/y.value;return Math.max(B,R)}),$=z(()=>{const B=N.value*p.value,R=N.value*y.value,L=e.offsetScale*N.value;return{offset:L,x:V.value.x-(B-V.value.width)/2-L,y:V.value.y-(R-V.value.height)/2-L,width:B+L*2,height:R+L*2}}),H=z(()=>!$.value.x||!$.value.y?"":`
|
|
55
|
+
M${$.value.x-$.value.offset},${$.value.y-$.value.offset}
|
|
56
|
+
h${$.value.width+$.value.offset*2}
|
|
57
|
+
v${$.value.height+$.value.offset*2}
|
|
58
|
+
h${-$.value.width-$.value.offset*2}z
|
|
59
|
+
M${O.value.x+e.maskBorderRadius},${O.value.y}
|
|
60
|
+
h${O.value.width-2*e.maskBorderRadius}
|
|
61
|
+
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 ${e.maskBorderRadius},${e.maskBorderRadius}
|
|
62
|
+
v${O.value.height-2*e.maskBorderRadius}
|
|
63
|
+
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 -${e.maskBorderRadius},${e.maskBorderRadius}
|
|
64
|
+
h${-(O.value.width-2*e.maskBorderRadius)}
|
|
65
|
+
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 -${e.maskBorderRadius},-${e.maskBorderRadius}
|
|
66
|
+
v${-(O.value.height-2*e.maskBorderRadius)}
|
|
67
|
+
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 ${e.maskBorderRadius},-${e.maskBorderRadius}z`);dn(B=>{if(m.value){const R=Ai(m.value),L=J=>{if(J.sourceEvent.type!=="wheel"||!f.value||!h.value)return;const X=-J.sourceEvent.deltaY*(J.sourceEvent.deltaMode===1?.05:J.sourceEvent.deltaMode?1:.002)*e.zoomStep,re=l.value.zoom*2**X;h.value.scaleTo(f.value,re)},U=J=>{if(J.sourceEvent.type!=="mousemove"||!f.value||!h.value)return;const X=N.value*Math.max(1,l.value.zoom)*(e.inversePan?-1:1),re={x:l.value.x-J.sourceEvent.movementX*X,y:l.value.y-J.sourceEvent.movementY*X},ee=[[0,0],[c.value.width,c.value.height]],le=Nh.translate(re.x,re.y).scale(l.value.zoom),ue=h.value.constrain()(le,ee,u.value);h.value.transform(f.value,ue)},j=vH().on("zoom",e.pannable?U:()=>{}).on("zoom.wheel",e.zoomable?L:()=>{});R.call(j),B(()=>{R.on("zoom",null)})}},{flush:"post"});function E(B){const[R,L]=bi(B);t("click",{event:B,position:{x:R,y:L}})}function W(B,R){const L={event:B,node:R,connectedEdges:io([R],a.value)};d.miniMapNodeClick(L),t("nodeClick",L)}function b(B,R){const L={event:B,node:R,connectedEdges:io([R],a.value)};d.miniMapNodeDoubleClick(L),t("nodeDblclick",L)}function P(B,R){const L={event:B,node:R,connectedEdges:io([R],a.value)};d.miniMapNodeMouseEnter(L),t("nodeMouseenter",L)}function C(B,R){const L={event:B,node:R,connectedEdges:io([R],a.value)};d.miniMapNodeMouseMove(L),t("nodeMousemove",L)}function F(B,R){const L={event:B,node:R,connectedEdges:io([R],a.value)};d.miniMapNodeMouseLeave(L),t("nodeMouseleave",L)}return(B,R)=>(se(),Oe(Q(RV),{position:B.position,class:jt(["vue-flow__minimap",{pannable:B.pannable,zoomable:B.zoomable}])},{default:$e(()=>[(se(),Ae("svg",{ref_key:"el",ref:m,width:p.value,height:y.value,viewBox:[$.value.x,$.value.y,$.value.width,$.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${Q(s)}`,onClick:E},[B.ariaLabel?(se(),Ae("title",{key:0,id:`vue-flow__minimap-${Q(s)}`},Jn(B.ariaLabel),9,SH)):dt("",!0),(se(!0),Ae(be,null,ri(Q(g),L=>(se(),Oe(wH,{id:L.id,key:L.id,position:L.computedPosition,dimensions:L.dimensions,selected:L.selected,dragging:L.dragging,style:ft(L.style),class:jt(M.value(L)),color:v.value(L),"border-radius":B.nodeBorderRadius,"stroke-color":w.value(L),"stroke-width":B.nodeStrokeWidth,"shape-rendering":Q(S),type:L.type,onClick:U=>W(U,L),onDblclick:U=>b(U,L),onMouseenter:U=>P(U,L),onMousemove:U=>C(U,L),onMouseleave:U=>F(U,L)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),nt("path",{class:"vue-flow__minimap-mask",d:H.value,fill:B.maskColor,stroke:B.maskStrokeColor,"stroke-width":B.maskStrokeWidth,"fill-rule":"evenodd"},null,8,CH)],8,_H))]),_:1},8,["position","class"]))}}),kH=["ID","URL","IP","IPs","IPv4","IPv6","DNS","SSH","WireGuard","API","k8s","TLS","HTTP","HTTPS","TCP","UDP"],bv=new Map(kH.map(e=>[e.toLowerCase(),e]));function Jd(e){return e.split(/(?=[A-Z])|_|\./).map(n=>{const i=n.toLowerCase();return bv.has(i)?bv.get(i):n.charAt(0).toUpperCase()+n.slice(1)}).join(" ")}function as(e,t){return t.displayName??Jd(e)}function Oh(e){return Xf(()=>{const t=[],n={};if(e.value.background)if(yd(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&RD(e.value.background)){const i=In(e.value.background);if(i.a==null||i.a===1){const o=Uw(i);n.color=o,n.caretColor=o}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(yd(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Vn(e,t){const n=z(()=>({text:Ve(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:o}=Oh(n);return{textColorClasses:i,textColorStyles:o}}function Oi(e,t){const n=z(()=>({background:Ve(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:o}=Oh(n);return{backgroundColorClasses:i,backgroundColorStyles:o}}const AH=["x-small","small","default","large","x-large"],Ys=he({size:{type:[String,Number],default:"default"}},"size");function Ks(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();return Xf(()=>{let n,i;return gl(AH,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:Te(e.size),height:Te(e.size)}),{sizeClasses:n,sizeStyles:i}})}const Ct=he({tag:{type:String,default:"div"}},"tag"),DH=he({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Be,...ze(),...Ys(),...Ct({tag:"i"}),...St()},"VIcon"),Xe=ke()({name:"VIcon",props:DH(),setup(e,t){let{attrs:n,slots:i}=t;const o=ne(),{themeClasses:r}=Ht(e),{iconData:s}=eP(z(()=>o.value||e.icon)),{sizeClasses:a}=Ks(e),{textColorClasses:l,textColorStyles:u}=Vn(de(e,"color"));return Ne(()=>{var f,h;const c=(f=i.default)==null?void 0:f.call(i);c&&(o.value=(h=Rw(c).filter(g=>g.type===Ti&&g.children&&typeof g.children=="string")[0])==null?void 0:h.children);const d=!!(n.onClick||n.onClickOnce);return k(s.value.component,{tag:e.tag,icon:s.value.icon,class:["v-icon","notranslate",r.value,a.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[a.value?void 0:{fontSize:Te(e.size),height:Te(e.size),width:Te(e.size)},u.value,e.style],role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}}),PH=he({text:String,onClick:Ut(),...ze(),...St()},"VLabel"),c1=ke()({name:"VLabel",props:PH(),setup(e,t){let{slots:n}=t;return Ne(()=>{var i;return k("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(i=n.default)==null?void 0:i.call(n)])}),{}}}),IH=[null,"default","comfortable","compact"],Hn=he({density:{type:String,default:"default",validator:e=>IH.includes(e)}},"density");function fi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();return{densityClasses:z(()=>`${t}--density-${e.density}`)}}const d1=Symbol.for("vuetify:selection-control-group"),f1=he({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Be,trueIcon:Be,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:xr},...ze(),...Hn(),...St()},"SelectionControlGroup"),TH=he({...f1({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");ke()({name:"VSelectionControlGroup",props:TH(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=st(e,"modelValue"),o=bn(),r=z(()=>e.id||`v-selection-control-group-${o}`),s=z(()=>e.name||r.value),a=new Set;return rt(d1,{modelValue:i,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),it(()=>{a.delete(l)})}}),Er({[e.defaultsTarget]:{color:de(e,"color"),disabled:de(e,"disabled"),density:de(e,"density"),error:de(e,"error"),inline:de(e,"inline"),modelValue:i,multiple:z(()=>!!e.multiple||e.multiple==null&&Array.isArray(i.value)),name:s,falseIcon:de(e,"falseIcon"),trueIcon:de(e,"trueIcon"),readonly:de(e,"readonly"),ripple:de(e,"ripple"),type:de(e,"type"),valueComparator:de(e,"valueComparator")}}),Ne(()=>{var l;return k("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}});const Qd=Symbol("rippleStop"),MH=80;function wv(e,t){e.style.transform=t,e.style.webkitTransform=t}function ef(e){return e.constructor.name==="TouchEvent"}function h1(e){return e.constructor.name==="KeyboardEvent"}const NH=function(e,t){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,o=0;if(!h1(e)){const f=t.getBoundingClientRect(),h=ef(e)?e.touches[e.touches.length-1]:e;i=h.clientX-f.left,o=h.clientY-f.top}let r=0,s=.3;(d=t._ripple)!=null&&d.circle?(s=.15,r=t.clientWidth/2,r=n.center?r:r+Math.sqrt((i-r)**2+(o-r)**2)/4):r=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-r*2)/2}px`,l=`${(t.clientHeight-r*2)/2}px`,u=n.center?a:`${i-r}px`,c=n.center?l:`${o-r}px`;return{radius:r,scale:s,x:u,y:c,centerX:a,centerY:l}},Gl={show(e,t){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=t==null?void 0:t._ripple)!=null&&h.enabled))return;const i=document.createElement("span"),o=document.createElement("span");i.appendChild(o),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:r,scale:s,x:a,y:l,centerX:u,centerY:c}=NH(e,t,n),d=`${r*2}px`;o.className="v-ripple__animation",o.style.width=d,o.style.height=d,t.appendChild(i);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),o.classList.add("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--visible"),wv(o,`translate(${a}, ${l}) scale3d(${s},${s},${s})`),o.dataset.activated=String(performance.now()),setTimeout(()=>{o.classList.remove("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--in"),wv(o,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var r;if(!((r=e==null?void 0:e._ripple)!=null&&r.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),o=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},o)}};function m1(e){return typeof e>"u"||!!e}function Is(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[Qd])){if(e[Qd]=!0,ef(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||h1(e),n._ripple.class&&(t.class=n._ripple.class),ef(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Gl.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},MH)}else Gl.show(e,n,t)}}function _v(e){e[Qd]=!0}function Qt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Qt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Gl.hide(t)}}function g1(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Ts=!1;function p1(e){!Ts&&(e.keyCode===cg.enter||e.keyCode===cg.space)&&(Ts=!0,Is(e))}function v1(e){Ts=!1,Qt(e)}function y1(e){Ts&&(Ts=!1,Qt(e))}function b1(e,t,n){const{value:i,modifiers:o}=t,r=m1(i);if(r||Gl.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=r,e._ripple.centered=o.center,e._ripple.circle=o.circle,lD(i)&&i.class&&(e._ripple.class=i.class),r&&!n){if(o.stop){e.addEventListener("touchstart",_v,{passive:!0}),e.addEventListener("mousedown",_v);return}e.addEventListener("touchstart",Is,{passive:!0}),e.addEventListener("touchend",Qt,{passive:!0}),e.addEventListener("touchmove",g1,{passive:!0}),e.addEventListener("touchcancel",Qt),e.addEventListener("mousedown",Is),e.addEventListener("mouseup",Qt),e.addEventListener("mouseleave",Qt),e.addEventListener("keydown",p1),e.addEventListener("keyup",v1),e.addEventListener("blur",y1),e.addEventListener("dragstart",Qt,{passive:!0})}else!r&&n&&w1(e)}function w1(e){e.removeEventListener("mousedown",Is),e.removeEventListener("touchstart",Is),e.removeEventListener("touchend",Qt),e.removeEventListener("touchmove",g1),e.removeEventListener("touchcancel",Qt),e.removeEventListener("mouseup",Qt),e.removeEventListener("mouseleave",Qt),e.removeEventListener("keydown",p1),e.removeEventListener("keyup",v1),e.removeEventListener("dragstart",Qt),e.removeEventListener("blur",y1)}function OH(e,t){b1(e,t,!1)}function $H(e){delete e._ripple,w1(e)}function RH(e,t){if(t.value===t.oldValue)return;const n=m1(t.oldValue);b1(e,t,n)}const qs={mounted:OH,unmounted:$H,updated:RH},_1=he({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...ze(),...f1()},"VSelectionControl");function VH(e){const t=je(d1,void 0),{densityClasses:n}=fi(e),i=st(e,"modelValue"),o=z(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),r=z(()=>e.falseValue!==void 0?e.falseValue:!1),s=z(()=>!!e.multiple||e.multiple==null&&Array.isArray(i.value)),a=z({get(){const h=t?t.modelValue.value:i.value;return s.value?Wt(h).some(g=>e.valueComparator(g,o.value)):e.valueComparator(h,o.value)},set(h){if(e.readonly)return;const g=h?o.value:r.value;let m=g;s.value&&(m=h?[...Wt(i.value),g]:Wt(i.value).filter(p=>!e.valueComparator(p,o.value))),t?t.modelValue.value=m:i.value=m}}),{textColorClasses:l,textColorStyles:u}=Vn(z(()=>{if(!(e.error||e.disabled))return a.value?e.color:e.baseColor})),{backgroundColorClasses:c,backgroundColorStyles:d}=Oi(z(()=>a.value&&!e.error&&!e.disabled?e.color:e.baseColor)),f=z(()=>a.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:o,falseValue:r,model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:f}}const Sv=ke()({name:"VSelectionControl",directives:{Ripple:qs},inheritAttrs:!1,props:_1(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{group:o,densityClasses:r,icon:s,model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:f}=VH(e),h=bn(),g=Se(!1),m=Se(!1),p=ne(),y=z(()=>e.id||`input-${h}`),S=z(()=>!e.disabled&&!e.readonly);o==null||o.onForceUpdate(()=>{p.value&&(p.value.checked=a.value)});function v(O){S.value&&(g.value=!0,vl(O.target,":focus-visible")!==!1&&(m.value=!0))}function w(){g.value=!1,m.value=!1}function M(O){O.stopPropagation()}function I(O){if(!S.value){p.value&&(p.value.checked=a.value);return}e.readonly&&o&&Ue(()=>o.forceUpdate()),a.value=O.target.checked}return Ne(()=>{var H,E;const O=i.label?i.label({label:e.label,props:{for:y.value}}):e.label,[V,N]=qf(n),$=k("input",Ee({ref:p,checked:a.value,disabled:!!e.disabled,id:y.value,onBlur:w,onFocus:v,onInput:I,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:f.value,name:e.name,"aria-checked":e.type==="checkbox"?a.value:void 0},N),null);return k("div",Ee({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":m.value,"v-selection-control--inline":e.inline},r.value,e.class]},V,{style:e.style}),[k("div",{class:["v-selection-control__wrapper",l.value],style:u.value},[(H=i.default)==null?void 0:H.call(i,{backgroundColorClasses:c,backgroundColorStyles:d}),en(k("div",{class:["v-selection-control__input"]},[((E=i.input)==null?void 0:E.call(i,{model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:$,icon:s.value,props:{onFocus:v,onBlur:w,id:y.value}}))??k(be,null,[s.value&&k(Xe,{key:"icon",icon:s.value},null),$])]),[[No("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),O&&k(c1,{for:y.value,onClick:M},{default:()=>[O]})])}),{isFocused:g,input:p}}}),S1=he({indeterminate:Boolean,indeterminateIcon:{type:Be,default:"$checkboxIndeterminate"},..._1({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Wl=ke()({name:"VCheckboxBtn",props:S1(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const i=st(e,"indeterminate"),o=st(e,"modelValue");function r(l){i.value&&(i.value=!1)}const s=z(()=>i.value?e.indeterminateIcon:e.falseIcon),a=z(()=>i.value?e.indeterminateIcon:e.trueIcon);return Ne(()=>{const l=Gi(Sv.filterProps(e),["modelValue"]);return k(Sv,Ee(l,{modelValue:o.value,"onUpdate:modelValue":[u=>o.value=u,r],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:s.value,trueIcon:a.value,"aria-checked":i.value?"mixed":void 0}),n)}),{}}});function C1(e){const{t}=du();function n(i){let{name:o}=i;const r={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[o],s=e[`onClick:${o}`],a=s&&r?t(`$vuetify.input.${r}`,e.label??""):void 0;return k(Xe,{icon:e[`${o}Icon`],"aria-label":a,onClick:s},null)}return{InputIcon:n}}const LH=he({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function on(e,t,n){return ke()({name:e,props:LH({mode:n,origin:t}),setup(i,o){let{slots:r}=o;const s={onBeforeEnter(a){i.origin&&(a.style.transformOrigin=i.origin)},onLeave(a){if(i.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${u}px`,a.style.width=`${c}px`,a.style.height=`${d}px`}i.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(i.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:l,top:u,left:c,width:d,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=u||"",a.style.left=c||"",a.style.width=d||"",a.style.height=f||""}}};return()=>{const a=i.group?Hf:Co;return Me(a,{name:i.disabled?"":e,css:!i.disabled,...i.group?void 0:{mode:i.mode},...i.disabled?{}:s},r.default)}}})}function x1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ke()({name:e,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(i,o){let{slots:r}=o;const s=i.group?Hf:Co;return()=>Me(s,{name:i.disabled?"":e,css:!i.disabled,...i.disabled?{}:t},r.default)}})}function E1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",i=Lt(`offset-${n}`);return{onBeforeEnter(s){s._parent=s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[n]:s.style[n]}},onEnter(s){const a=s._initialStyle;s.style.setProperty("transition","none","important"),s.style.overflow="hidden";const l=`${s[i]}px`;s.style[n]="0",s.offsetHeight,s.style.transition=a.transition,e&&s._parent&&s._parent.classList.add(e),requestAnimationFrame(()=>{s.style[n]=l})},onAfterEnter:r,onEnterCancelled:r,onLeave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[n]:s.style[n]},s.style.overflow="hidden",s.style[n]=`${s[i]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[n]="0")},onAfterLeave:o,onLeaveCancelled:o};function o(s){e&&s._parent&&s._parent.classList.remove(e),r(s)}function r(s){const a=s._initialStyle[n];s.style.overflow=s._initialStyle.overflow,a!=null&&(s.style[n]=a),delete s._initialStyle}}const zH=he({target:[Object,Array]},"v-dialog-transition"),k1=ke()({name:"VDialogTransition",props:zH(),setup(e,t){let{slots:n}=t;const i={onBeforeEnter(o){o.style.pointerEvents="none",o.style.visibility="hidden"},async onEnter(o,r){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),o.style.visibility="";const{x:s,y:a,sx:l,sy:u,speed:c}=xv(e.target,o),d=Xo(o,[{transform:`translate(${s}px, ${a}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:KD});(f=Cv(o))==null||f.forEach(h=>{Xo(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:bl})}),d.finished.then(()=>r())},onAfterEnter(o){o.style.removeProperty("pointer-events")},onBeforeLeave(o){o.style.pointerEvents="none"},async onLeave(o,r){var f;await new Promise(h=>requestAnimationFrame(h));const{x:s,y:a,sx:l,sy:u,speed:c}=xv(e.target,o);Xo(o,[{},{transform:`translate(${s}px, ${a}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:qD}).finished.then(()=>r()),(f=Cv(o))==null||f.forEach(h=>{Xo(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:bl})})},onAfterLeave(o){o.style.removeProperty("pointer-events")}};return()=>e.target?k(Co,Ee({name:"dialog-transition"},i,{css:!1}),n):k(Co,{name:"dialog-transition"},n)}});function Cv(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function xv(e,t){const n=Bw(e),i=Jf(t),[o,r]=getComputedStyle(t).transformOrigin.split(" ").map(y=>parseFloat(y)),[s,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;s==="left"||a==="left"?l-=n.width/2:(s==="right"||a==="right")&&(l+=n.width/2);let u=n.top+n.height/2;s==="top"||a==="top"?u-=n.height/2:(s==="bottom"||a==="bottom")&&(u+=n.height/2);const c=n.width/i.width,d=n.height/i.height,f=Math.max(1,c,d),h=c/f||0,g=d/f||0,m=i.width*i.height/(window.innerWidth*window.innerHeight),p=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:l-(o+i.left),y:u-(r+i.top),sx:h,sy:g,speed:p}}on("fab-transition","center center","out-in");on("dialog-bottom-transition");on("dialog-top-transition");const Ev=on("fade-transition");on("scale-transition");on("scroll-x-transition");on("scroll-x-reverse-transition");on("scroll-y-transition");on("scroll-y-reverse-transition");on("slide-x-transition");on("slide-x-reverse-transition");const A1=on("slide-y-transition");on("slide-y-reverse-transition");const BH=x1("expand-transition",E1()),D1=x1("expand-x-transition",E1("",!0)),Dr=he({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Ii=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:o,group:r,...s}=e,{component:a=r?Hf:Co,...l}=typeof i=="object"?i:{};return Me(a,Ee(typeof i=="string"?{name:o?"":i}:l,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:o,group:r}).filter(u=>{let[c,d]=u;return d!==void 0})),s),n)},HH=he({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...ze(),...Dr({transition:{component:A1,leaveAbsolute:!0,group:!0}})},"VMessages"),FH=ke()({name:"VMessages",props:HH(),setup(e,t){let{slots:n}=t;const i=z(()=>Wt(e.messages)),{textColorClasses:o,textColorStyles:r}=Vn(z(()=>e.color));return Ne(()=>k(Ii,{transition:e.transition,tag:"div",class:["v-messages",o.value,e.class],style:[r.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&i.value.map((s,a)=>k("div",{class:"v-messages__message",key:`${a}-${i.value}`},[n.message?n.message({message:s}):s]))]})),{}}}),Ui=he({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function ji(e){return{dimensionStyles:z(()=>{const n={},i=Te(e.height),o=Te(e.maxHeight),r=Te(e.maxWidth),s=Te(e.minHeight),a=Te(e.minWidth),l=Te(e.width);return i!=null&&(n.height=i),o!=null&&(n.maxHeight=o),r!=null&&(n.maxWidth=r),s!=null&&(n.minHeight=s),a!=null&&(n.minWidth=a),l!=null&&(n.width=l),n})}}const P1=he({focused:Boolean,"onUpdate:focused":Ut()},"focus");function $h(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();const n=st(e,"focused"),i=z(()=>({[`${t}--focused`]:n.value}));function o(){n.value=!0}function r(){n.value=!1}return{focusClasses:i,isFocused:n,focus:o,blur:r}}const GH=Symbol.for("vuetify:form");function Rh(e){const t=je(GH,null);return{...t,isReadonly:z(()=>!!((e==null?void 0:e.readonly)??(t==null?void 0:t.isReadonly.value))),isDisabled:z(()=>!!((e==null?void 0:e.disabled)??(t==null?void 0:t.isDisabled.value)))}}const WH=he({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...P1()},"validation");function UH(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bn();const i=st(e,"modelValue"),o=z(()=>e.validationValue===void 0?i.value:e.validationValue),r=Rh(e),s=ne([]),a=Se(!0),l=z(()=>!!(Wt(i.value===""?null:i.value).length||Wt(o.value===""?null:o.value).length)),u=z(()=>{var v;return(v=e.errorMessages)!=null&&v.length?Wt(e.errorMessages).concat(s.value).slice(0,Math.max(0,+e.maxErrors)):s.value}),c=z(()=>{var M;let v=(e.validateOn??((M=r.validateOn)==null?void 0:M.value))||"input";v==="lazy"&&(v="input lazy"),v==="eager"&&(v="input eager");const w=new Set((v==null?void 0:v.split(" "))??[]);return{input:w.has("input"),blur:w.has("blur")||w.has("input")||w.has("invalid-input"),invalidInput:w.has("invalid-input"),lazy:w.has("lazy"),eager:w.has("eager")}}),d=z(()=>{var v;return e.error||(v=e.errorMessages)!=null&&v.length?!1:e.rules.length?a.value?s.value.length||c.value.lazy?null:!0:!s.value.length:!0}),f=Se(!1),h=z(()=>({[`${t}--error`]:d.value===!1,[`${t}--dirty`]:l.value,[`${t}--disabled`]:r.isDisabled.value,[`${t}--readonly`]:r.isReadonly.value})),g=bt("validation"),m=z(()=>e.name??Q(n));Bs(()=>{var v;(v=r.register)==null||v.call(r,{id:m.value,vm:g,validate:S,reset:p,resetValidation:y})}),zt(()=>{var v;(v=r.unregister)==null||v.call(r,m.value)}),_t(async()=>{var v;c.value.lazy||await S(!c.value.eager),(v=r.update)==null||v.call(r,m.value,d.value,u.value)}),Eo(()=>c.value.input||c.value.invalidInput&&d.value===!1,()=>{ae(o,()=>{if(o.value!=null)S();else if(e.focused){const v=ae(()=>e.focused,w=>{w||S(),v()})}})}),Eo(()=>c.value.blur,()=>{ae(()=>e.focused,v=>{v||S()})}),ae([d,u],()=>{var v;(v=r.update)==null||v.call(r,m.value,d.value,u.value)});async function p(){i.value=null,await Ue(),await y()}async function y(){a.value=!0,c.value.lazy?s.value=[]:await S(!c.value.eager)}async function S(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const w=[];f.value=!0;for(const M of e.rules){if(w.length>=+(e.maxErrors??1))break;const O=await(typeof M=="function"?M:()=>M)(o.value);if(O!==!0){if(O!==!1&&typeof O!="string"){console.warn(`${O} is not a valid value. Rule functions must return boolean true or a string.`);continue}w.push(O||"")}}return s.value=w,f.value=!1,a.value=v,s.value}return{errorMessages:u,isDirty:l,isDisabled:r.isDisabled,isReadonly:r.isReadonly,isPristine:a,isValid:d,isValidating:f,reset:p,resetValidation:y,validate:S,validationClasses:h}}const Vh=he({id:String,appendIcon:Be,centerAffix:{type:Boolean,default:!0},prependIcon:Be,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Ut(),"onClick:append":Ut(),...ze(),...Hn(),...uD(Ui(),["maxWidth","minWidth","width"]),...St(),...WH()},"VInput"),Ul=ke()({name:"VInput",props:{...Vh()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i,emit:o}=t;const{densityClasses:r}=fi(e),{dimensionStyles:s}=ji(e),{themeClasses:a}=Ht(e),{rtlClasses:l}=Wi(),{InputIcon:u}=C1(e),c=bn(),d=z(()=>e.id||`input-${c}`),f=z(()=>`${d.value}-messages`),{errorMessages:h,isDirty:g,isDisabled:m,isReadonly:p,isPristine:y,isValid:S,isValidating:v,reset:w,resetValidation:M,validate:I,validationClasses:O}=UH(e,"v-input",d),V=z(()=>({id:d,messagesId:f,isDirty:g,isDisabled:m,isReadonly:p,isPristine:y,isValid:S,isValidating:v,reset:w,resetValidation:M,validate:I})),N=z(()=>{var $;return($=e.errorMessages)!=null&&$.length||!y.value&&h.value.length?h.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return Ne(()=>{var b,P,C,F;const $=!!(i.prepend||e.prependIcon),H=!!(i.append||e.appendIcon),E=N.value.length>0,W=!e.hideDetails||e.hideDetails==="auto"&&(E||!!i.details);return k("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},r.value,a.value,l.value,O.value,e.class],style:[s.value,e.style]},[$&&k("div",{key:"prepend",class:"v-input__prepend"},[(b=i.prepend)==null?void 0:b.call(i,V.value),e.prependIcon&&k(u,{key:"prepend-icon",name:"prepend"},null)]),i.default&&k("div",{class:"v-input__control"},[(P=i.default)==null?void 0:P.call(i,V.value)]),H&&k("div",{key:"append",class:"v-input__append"},[e.appendIcon&&k(u,{key:"append-icon",name:"append"},null),(C=i.append)==null?void 0:C.call(i,V.value)]),W&&k("div",{class:"v-input__details"},[k(FH,{id:f.value,active:E,messages:N.value},{message:i.message}),(F=i.details)==null?void 0:F.call(i,V.value)])])}),{reset:w,resetValidation:M,validate:I,isValid:S,errorMessages:h}}}),jH=he({...Vh(),...Gi(S1(),["inline"])},"VCheckbox"),YH=ke()({name:"VCheckbox",inheritAttrs:!1,props:jH(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const o=st(e,"modelValue"),{isFocused:r,focus:s,blur:a}=$h(e),l=bn(),u=z(()=>e.id||`checkbox-${l}`);return Ne(()=>{const[c,d]=qf(n),f=Ul.filterProps(e),h=Wl.filterProps(e);return k(Ul,Ee({class:["v-checkbox",e.class]},c,f,{modelValue:o.value,"onUpdate:modelValue":g=>o.value=g,id:u.value,focused:r.value,style:e.style}),{...i,default:g=>{let{id:m,messagesId:p,isDisabled:y,isReadonly:S,isValid:v}=g;return k(Wl,Ee(h,{id:m.value,"aria-describedby":p.value,disabled:y.value,readonly:S.value},d,{error:v.value===!1,modelValue:o.value,"onUpdate:modelValue":w=>o.value=w,onFocus:s,onBlur:a}),i)}})}),{}}}),KH=he({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),wt=ke(!1)({name:"VDefaultsProvider",props:KH(),setup(e,t){let{slots:n}=t;const{defaults:i,disabled:o,reset:r,root:s,scoped:a}=Vs(e);return Er(i,{reset:r,root:s,scoped:a,disabled:o}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}});function qH(e){return{aspectStyles:z(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const I1=he({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ze(),...Ui()},"VResponsive"),kv=ke()({name:"VResponsive",props:I1(),setup(e,t){let{slots:n}=t;const{aspectStyles:i}=qH(e),{dimensionStyles:o}=ji(e);return Ne(()=>{var r;return k("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[o.value,e.style]},[k("div",{class:"v-responsive__sizer",style:i.value},null),(r=n.additional)==null?void 0:r.call(n),n.default&&k("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),Fn=he({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Gn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();return{roundedClasses:z(()=>{const i=Ve(e)?e.value:e.rounded,o=Ve(e)?e.value:e.tile,r=[];if(i===!0||i==="")r.push(`${t}--rounded`);else if(typeof i=="string"||i===0)for(const s of String(i).split(" "))r.push(`rounded-${s}`);else(o||i===!1)&&r.push("rounded-0");return r})}}function XH(e,t){if(!Yf)return;const n=t.modifiers||{},i=t.value,{handler:o,options:r}=typeof i=="object"?i:{handler:i,options:{}},s=new IntersectionObserver(function(){var d;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(d=e._observe)==null?void 0:d[t.instance.$.uid];if(!u)return;const c=a.some(f=>f.isIntersecting);o&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&o(c,a,l),c&&n.once?T1(e,t):u.init=!0},r);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:s},s.observe(e)}function T1(e,t){var i;const n=(i=e._observe)==null?void 0:i[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const M1={mounted:XH,unmounted:T1},ZH=he({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...I1(),...ze(),...Fn(),...Dr()},"VImg"),N1=ke()({name:"VImg",directives:{intersect:M1},props:ZH(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:i}=t;const{backgroundColorClasses:o,backgroundColorStyles:r}=Oi(de(e,"color")),{roundedClasses:s}=Gn(e),a=bt("VImg"),l=Se(""),u=ne(),c=Se(e.eager?"loading":"idle"),d=Se(),f=Se(),h=z(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),g=z(()=>h.value.aspect||d.value/f.value||0);ae(()=>e.src,()=>{m(c.value!=="idle")}),ae(g,(E,W)=>{!E&&W&&u.value&&w(u.value)}),Bs(()=>m());function m(E){if(!(e.eager&&E)&&!(Yf&&!E&&!e.eager)){if(c.value="loading",h.value.lazySrc){const W=new Image;W.src=h.value.lazySrc,w(W,null)}h.value.src&&Ue(()=>{var W;n("loadstart",((W=u.value)==null?void 0:W.currentSrc)||h.value.src),setTimeout(()=>{var b;if(!a.isUnmounted)if((b=u.value)!=null&&b.complete){if(u.value.naturalWidth||y(),c.value==="error")return;g.value||w(u.value,null),c.value==="loading"&&p()}else g.value||w(u.value),S()})})}}function p(){var E;a.isUnmounted||(S(),w(u.value),c.value="loaded",n("load",((E=u.value)==null?void 0:E.currentSrc)||h.value.src))}function y(){var E;a.isUnmounted||(c.value="error",n("error",((E=u.value)==null?void 0:E.currentSrc)||h.value.src))}function S(){const E=u.value;E&&(l.value=E.currentSrc||E.src)}let v=-1;zt(()=>{clearTimeout(v)});function w(E){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const b=()=>{if(clearTimeout(v),a.isUnmounted)return;const{naturalHeight:P,naturalWidth:C}=E;P||C?(d.value=C,f.value=P):!E.complete&&c.value==="loading"&&W!=null?v=window.setTimeout(b,W):(E.currentSrc.endsWith(".svg")||E.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,f.value=1)};b()}const M=z(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),I=()=>{var b;if(!h.value.src||c.value==="idle")return null;const E=k("img",{class:["v-img__img",M.value],style:{objectPosition:e.position},src:h.value.src,srcset:h.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:p,onError:y},null),W=(b=i.sources)==null?void 0:b.call(i);return k(Ii,{transition:e.transition,appear:!0},{default:()=>[en(W?k("picture",{class:"v-img__picture"},[W,E]):E,[[Sr,c.value==="loaded"]])]})},O=()=>k(Ii,{transition:e.transition},{default:()=>[h.value.lazySrc&&c.value!=="loaded"&&k("img",{class:["v-img__img","v-img__img--preload",M.value],style:{objectPosition:e.position},src:h.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),V=()=>i.placeholder?k(Ii,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!i.error)&&k("div",{class:"v-img__placeholder"},[i.placeholder()])]}):null,N=()=>i.error?k(Ii,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&k("div",{class:"v-img__error"},[i.error()])]}):null,$=()=>e.gradient?k("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,H=Se(!1);{const E=ae(g,W=>{W&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{H.value=!0})}),E())})}return Ne(()=>{const E=kv.filterProps(e);return en(k(kv,Ee({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!H.value},o.value,s.value,e.class],style:[{width:Te(e.width==="auto"?d.value:e.width)},r.value,e.style]},E,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>k(be,null,[k(I,null,null),k(O,null,null),k($,null,null),k(V,null,null),k(N,null,null)]),default:i.default}),[[No("intersect"),{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:f}}}),Oo=he({border:[Boolean,Number,String]},"border");function $o(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();return{borderClasses:z(()=>{const i=Ve(e)?e.value:e.border,o=[];if(i===!0||i==="")o.push(`${t}--border`);else if(typeof i=="string"||i===0)for(const r of String(i).split(" "))o.push(`border-${r}`);return o})}}const JH=["elevated","flat","tonal","outlined","text","plain"];function Xs(e,t){return k(be,null,[e&&k("span",{key:"overlay",class:`${t}__overlay`},null),k("span",{key:"underlay",class:`${t}__underlay`},null)])}const Yi=he({color:String,variant:{type:String,default:"elevated",validator:e=>JH.includes(e)}},"variant");function Zs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();const n=z(()=>{const{variant:r}=Q(e);return`${t}--variant-${r}`}),{colorClasses:i,colorStyles:o}=Oh(z(()=>{const{variant:r,color:s}=Q(e);return{[["elevated","flat"].includes(r)?"background":"text"]:s}}));return{colorClasses:i,colorStyles:o,variantClasses:n}}const QH=he({start:Boolean,end:Boolean,icon:Be,image:String,text:String,...Oo(),...ze(),...Hn(),...Fn(),...Ys(),...Ct(),...St(),...Yi({variant:"flat"})},"VAvatar"),Li=ke()({name:"VAvatar",props:QH(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=Ht(e),{borderClasses:o}=$o(e),{colorClasses:r,colorStyles:s,variantClasses:a}=Zs(e),{densityClasses:l}=fi(e),{roundedClasses:u}=Gn(e),{sizeClasses:c,sizeStyles:d}=Ks(e);return Ne(()=>k(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},i.value,o.value,r.value,l.value,u.value,c.value,a.value,e.class],style:[s.value,d.value,e.style]},{default:()=>[n.default?k(wt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?k(N1,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?k(Xe,{key:"icon",icon:e.icon},null):e.text,Xs(!1,"v-avatar")]})),{}}}),Lh=he({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),O1=he({value:null,disabled:Boolean,selectedClass:String},"group-item");function $1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=bt("useGroupItem");if(!i)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const o=bn();rt(Symbol.for(`${t.description}:id`),o);const r=je(t,null);if(!r){if(!n)return r;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const s=de(e,"value"),a=z(()=>!!(r.disabled.value||e.disabled));r.register({id:o,value:s,disabled:a},i),zt(()=>{r.unregister(o)});const l=z(()=>r.isSelected(o)),u=z(()=>r.items.value[0].id===o),c=z(()=>r.items.value[r.items.value.length-1].id===o),d=z(()=>l.value&&[r.selectedClass.value,e.selectedClass]);return ae(l,f=>{i.emit("group:selected",{value:f})},{flush:"sync"}),{id:o,isSelected:l,isFirst:u,isLast:c,toggle:()=>r.select(o,!l.value),select:f=>r.select(o,f),selectedClass:d,value:s,disabled:a,group:r}}function zh(e,t){let n=!1;const i=at([]),o=st(e,"modelValue",[],f=>f==null?[]:R1(i,Wt(f)),f=>{const h=tF(i,f);return e.multiple?h:h[0]}),r=bt("useGroup");function s(f,h){const g=f,m=Symbol.for(`${t.description}:id`),y=Wr(m,r==null?void 0:r.vnode).indexOf(h);Q(g.value)==null&&(g.value=y,g.useIndexAsValue=!0),y>-1?i.splice(y,0,g):i.push(g)}function a(f){if(n)return;l();const h=i.findIndex(g=>g.id===f);i.splice(h,1)}function l(){const f=i.find(h=>!h.disabled);f&&e.mandatory==="force"&&!o.value.length&&(o.value=[f.id])}_t(()=>{l()}),zt(()=>{n=!0}),Tf(()=>{for(let f=0;f<i.length;f++)i[f].useIndexAsValue&&(i[f].value=f)});function u(f,h){const g=i.find(m=>m.id===f);if(!(h&&(g!=null&&g.disabled)))if(e.multiple){const m=o.value.slice(),p=m.findIndex(S=>S===f),y=~p;if(h=h??!y,y&&e.mandatory&&m.length<=1||!y&&e.max!=null&&m.length+1>e.max)return;p<0&&h?m.push(f):p>=0&&!h&&m.splice(p,1),o.value=m}else{const m=o.value.includes(f);if(e.mandatory&&m)return;o.value=h??!m?[f]:[]}}function c(f){if(e.multiple,o.value.length){const h=o.value[0],g=i.findIndex(y=>y.id===h);let m=(g+f)%i.length,p=i[m];for(;p.disabled&&m!==g;)m=(m+f)%i.length,p=i[m];if(p.disabled)return;o.value=[i[m].id]}else{const h=i.find(g=>!g.disabled);h&&(o.value=[h.id])}}const d={register:s,unregister:a,selected:o,select:u,disabled:de(e,"disabled"),prev:()=>c(i.length-1),next:()=>c(1),isSelected:f=>o.value.includes(f),selectedClass:z(()=>e.selectedClass),items:z(()=>i),getItemIndex:f=>eF(i,f)};return rt(t,d),d}function eF(e,t){const n=R1(e,[t]);return n.length?e.findIndex(i=>i.id===n[0]):-1}function R1(e,t){const n=[];return t.forEach(i=>{const o=e.find(s=>xr(i,s.value)),r=e[i];(o==null?void 0:o.value)!=null?n.push(o.id):r!=null&&n.push(r.id)}),n}function tF(e,t){const n=[];return t.forEach(i=>{const o=e.findIndex(r=>r.id===i);if(~o){const r=e[o];n.push(r.value!=null?r.value:o)}}),n}function nF(e){let{selectedElement:t,containerElement:n,isRtl:i,isHorizontal:o}=e;const r=Ms(o,n),s=V1(o,i,n),a=Ms(o,t),l=L1(o,t),u=a*.4;return s>l?l-u:s+r<l+a?l-r+a+u:s}function iF(e){let{selectedElement:t,containerElement:n,isHorizontal:i}=e;const o=Ms(i,n),r=L1(i,t),s=Ms(i,t);return r-o/2+s/2}function Av(e,t){const n=e?"scrollWidth":"scrollHeight";return(t==null?void 0:t[n])||0}function oF(e,t){const n=e?"clientWidth":"clientHeight";return(t==null?void 0:t[n])||0}function V1(e,t,n){if(!n)return 0;const{scrollLeft:i,offsetWidth:o,scrollWidth:r}=n;return e?t?r-o+i:i:n.scrollTop}function Ms(e,t){const n=e?"offsetWidth":"offsetHeight";return(t==null?void 0:t[n])||0}function L1(e,t){const n=e?"offsetLeft":"offsetTop";return(t==null?void 0:t[n])||0}const rF=Symbol.for("vuetify:v-slide-group"),z1=he({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:rF},nextIcon:{type:Be,default:"$next"},prevIcon:{type:Be,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...ze(),...yT({mobile:null}),...Ct(),...Lh({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Dv=ke()({name:"VSlideGroup",props:z1(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:i}=Wi(),{displayClasses:o,mobile:r}=sh(e),s=zh(e,e.symbol),a=Se(!1),l=Se(0),u=Se(0),c=Se(0),d=z(()=>e.direction==="horizontal"),{resizeRef:f,contentRect:h}=ys(),{resizeRef:g,contentRect:m}=ys(),p=_T(),y=z(()=>({container:f.el,duration:200,easing:"easeOutQuart"})),S=z(()=>s.selected.value.length?s.items.value.findIndex(L=>L.id===s.selected.value[0]):-1),v=z(()=>s.selected.value.length?s.items.value.findIndex(L=>L.id===s.selected.value[s.selected.value.length-1]):-1);if(We){let L=-1;ae(()=>[s.selected.value,h.value,m.value,d.value],()=>{cancelAnimationFrame(L),L=requestAnimationFrame(()=>{if(h.value&&m.value){const U=d.value?"width":"height";u.value=h.value[U],c.value=m.value[U],a.value=u.value+1<c.value}if(S.value>=0&&g.el){const U=g.el.children[v.value];M(U,e.centerActive)}})})}const w=Se(!1);function M(L,U){let j=0;U?j=iF({containerElement:f.el,isHorizontal:d.value,selectedElement:L}):j=nF({containerElement:f.el,isHorizontal:d.value,isRtl:i.value,selectedElement:L}),I(j)}function I(L){if(!We||!f.el)return;const U=Ms(d.value,f.el),j=V1(d.value,i.value,f.el);if(!(Av(d.value,f.el)<=U||Math.abs(L-j)<16)){if(d.value&&i.value&&f.el){const{scrollWidth:X,offsetWidth:re}=f.el;L=X-re-L}d.value?p.horizontal(L,y.value):p(L,y.value)}}function O(L){const{scrollTop:U,scrollLeft:j}=L.target;l.value=d.value?j:U}function V(L){if(w.value=!0,!(!a.value||!g.el)){for(const U of L.composedPath())for(const j of g.el.children)if(j===U){M(j);return}}}function N(L){w.value=!1}let $=!1;function H(L){var U;!$&&!w.value&&!(L.relatedTarget&&((U=g.el)!=null&&U.contains(L.relatedTarget)))&&b(),$=!1}function E(){$=!0}function W(L){if(!g.el)return;function U(j){L.preventDefault(),b(j)}d.value?L.key==="ArrowRight"?U(i.value?"prev":"next"):L.key==="ArrowLeft"&&U(i.value?"next":"prev"):L.key==="ArrowDown"?U("next"):L.key==="ArrowUp"&&U("prev"),L.key==="Home"?U("first"):L.key==="End"&&U("last")}function b(L){var j,J;if(!g.el)return;let U;if(!L)U=pl(g.el)[0];else if(L==="next"){if(U=(j=g.el.querySelector(":focus"))==null?void 0:j.nextElementSibling,!U)return b("first")}else if(L==="prev"){if(U=(J=g.el.querySelector(":focus"))==null?void 0:J.previousElementSibling,!U)return b("last")}else L==="first"?U=g.el.firstElementChild:L==="last"&&(U=g.el.lastElementChild);U&&U.focus({preventScroll:!0})}function P(L){const U=d.value&&i.value?-1:1,j=(L==="prev"?-U:U)*u.value;let J=l.value+j;if(d.value&&i.value&&f.el){const{scrollWidth:X,offsetWidth:re}=f.el;J+=X-re}I(J)}const C=z(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),F=z(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!r.value;case!0:return a.value||Math.abs(l.value)>0;case"mobile":return r.value||a.value||Math.abs(l.value)>0;default:return!r.value&&(a.value||Math.abs(l.value)>0)}}),B=z(()=>Math.abs(l.value)>1),R=z(()=>{if(!f.value)return!1;const L=Av(d.value,f.el),U=oF(d.value,f.el);return L-U-Math.abs(l.value)>1});return Ne(()=>k(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":F.value,"v-slide-group--is-overflowing":a.value},o.value,e.class],style:e.style,tabindex:w.value||s.selected.value.length?-1:0,onFocus:H},{default:()=>{var L,U,j;return[F.value&&k("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!B.value}],onMousedown:E,onClick:()=>B.value&&P("prev")},[((L=n.prev)==null?void 0:L.call(n,C.value))??k(Ev,null,{default:()=>[k(Xe,{icon:i.value?e.nextIcon:e.prevIcon},null)]})]),k("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:O},[k("div",{ref:g,class:"v-slide-group__content",onFocusin:V,onFocusout:N,onKeydown:W},[(U=n.default)==null?void 0:U.call(n,C.value)])]),F.value&&k("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!R.value}],onMousedown:E,onClick:()=>R.value&&P("next")},[((j=n.next)==null?void 0:j.call(n,C.value))??k(Ev,null,{default:()=>[k(Xe,{icon:i.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:s.selected,scrollTo:P,scrollOffset:l,focus:b,hasPrev:B,hasNext:R}}}),B1=Symbol.for("vuetify:v-chip-group"),sF=he({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:xr},...z1(),...ze(),...Lh({selectedClass:"v-chip--selected"}),...Ct(),...St(),...Yi({variant:"tonal"})},"VChipGroup");ke()({name:"VChipGroup",props:sF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=Ht(e),{isSelected:o,select:r,next:s,prev:a,selected:l}=zh(e,B1);return Er({VChip:{color:de(e,"color"),disabled:de(e,"disabled"),filter:de(e,"filter"),variant:de(e,"variant")}}),Ne(()=>{const u=Dv.filterProps(e);return k(Dv,Ee(u,{class:["v-chip-group",{"v-chip-group--column":e.column},i.value,e.class],style:e.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:o,select:r,next:s,prev:a,selected:l.value})]}})}),{}}});const Pr=he({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Ir(e){return{elevationClasses:z(()=>{const n=Ve(e)?e.value:e.elevation,i=[];return n==null||i.push(`elevation-${n}`),i})}}function aF(){const e=bt("useRoute");return z(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function lF(){var e,t;return(t=(e=bt("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Pu(e,t){var d,f;const n=nu("RouterLink"),i=z(()=>!!(e.href||e.to)),o=z(()=>(i==null?void 0:i.value)||mg(t,"click")||mg(e,"click"));if(typeof n=="string"||!("useLink"in n)){const h=de(e,"href");return{isLink:i,isClickable:o,href:h,linkProps:at({href:h})}}const r=z(()=>({...e,to:de(()=>e.to||"")})),s=n.useLink(r.value),a=z(()=>e.to?s:void 0),l=aF(),u=z(()=>{var h,g,m;return a.value?e.exact?l.value?((m=a.value.isExactActive)==null?void 0:m.value)&&xr(a.value.route.value.query,l.value.query):((g=a.value.isExactActive)==null?void 0:g.value)??!1:((h=a.value.isActive)==null?void 0:h.value)??!1:!1}),c=z(()=>{var h;return e.to?(h=a.value)==null?void 0:h.route.value.href:e.href});return{isLink:i,isClickable:o,isActive:u,route:(d=a.value)==null?void 0:d.route,navigate:(f=a.value)==null?void 0:f.navigate,href:c,linkProps:at({href:c,"aria-current":z(()=>u.value?"page":void 0)})}}const Iu=he({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Pc=!1;function uF(e,t){let n=!1,i,o;We&&(Ue(()=>{window.addEventListener("popstate",r),i=e==null?void 0:e.beforeEach((s,a,l)=>{Pc?n?t(l):l():setTimeout(()=>n?t(l):l()),Pc=!0}),o=e==null?void 0:e.afterEach(()=>{Pc=!1})}),it(()=>{window.removeEventListener("popstate",r),i==null||i(),o==null||o()}));function r(s){var a;(a=s.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}const cF=he({activeClass:String,appendAvatar:String,appendIcon:Be,closable:Boolean,closeIcon:{type:Be,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:Be,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Be,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Ut(),onClickOnce:Ut(),...Oo(),...ze(),...Hn(),...Pr(),...O1(),...Fn(),...Iu(),...Ys(),...Ct({tag:"span"}),...St(),...Yi({variant:"tonal"})},"VChip"),jl=ke()({name:"VChip",directives:{Ripple:qs},props:cF(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:i,slots:o}=t;const{t:r}=du(),{borderClasses:s}=$o(e),{colorClasses:a,colorStyles:l,variantClasses:u}=Zs(e),{densityClasses:c}=fi(e),{elevationClasses:d}=Ir(e),{roundedClasses:f}=Gn(e),{sizeClasses:h}=Ks(e),{themeClasses:g}=Ht(e),m=st(e,"modelValue"),p=$1(e,B1,!1),y=Pu(e,n),S=z(()=>e.link!==!1&&y.isLink.value),v=z(()=>!e.disabled&&e.link!==!1&&(!!p||e.link||y.isClickable.value)),w=z(()=>({"aria-label":r(e.closeLabel),onClick(O){O.preventDefault(),O.stopPropagation(),m.value=!1,i("click:close",O)}}));function M(O){var V;i("click",O),v.value&&((V=y.navigate)==null||V.call(y,O),p==null||p.toggle())}function I(O){(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),M(O))}return()=>{var P;const O=y.isLink.value?"a":e.tag,V=!!(e.appendIcon||e.appendAvatar),N=!!(V||o.append),$=!!(o.close||e.closable),H=!!(o.filter||e.filter)&&p,E=!!(e.prependIcon||e.prependAvatar),W=!!(E||o.prepend),b=!p||p.isSelected.value;return m.value&&en(k(O,Ee({class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":v.value,"v-chip--filter":H,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&((P=y.isActive)==null?void 0:P.value)},g.value,s.value,b?a.value:void 0,c.value,d.value,f.value,h.value,u.value,p==null?void 0:p.selectedClass.value,e.class],style:[b?l.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:v.value?0:void 0,onClick:M,onKeydown:v.value&&!S.value&&I},y.linkProps),{default:()=>{var C;return[Xs(v.value,"v-chip"),H&&k(D1,{key:"filter"},{default:()=>[en(k("div",{class:"v-chip__filter"},[o.filter?k(wt,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},o.filter):k(Xe,{key:"filter-icon",icon:e.filterIcon},null)]),[[Sr,p.isSelected.value]])]}),W&&k("div",{key:"prepend",class:"v-chip__prepend"},[o.prepend?k(wt,{key:"prepend-defaults",disabled:!E,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},o.prepend):k(be,null,[e.prependIcon&&k(Xe,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&k(Li,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),k("div",{class:"v-chip__content","data-no-activator":""},[((C=o.default)==null?void 0:C.call(o,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:e.disabled}))??e.text]),N&&k("div",{key:"append",class:"v-chip__append"},[o.append?k(wt,{key:"append-defaults",disabled:!V,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},o.append):k(be,null,[e.appendIcon&&k(Xe,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&k(Li,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),$&&k("button",Ee({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},w.value),[o.close?k(wt,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},o.close):k(Xe,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[No("ripple"),v.value&&e.ripple,null]])}}}),tf=Symbol.for("vuetify:list");function H1(){const e=je(tf,{hasPrepend:Se(!1),updateHasPrepend:()=>null}),t={hasPrepend:Se(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return rt(tf,t),e}function F1(){return je(tf,null)}const Bh=e=>{const t={activate:n=>{let{id:i,value:o,activated:r}=n;return i=_e(i),e&&!o&&r.size===1&&r.has(i)||(o?r.add(i):r.delete(i)),r},in:(n,i,o)=>{let r=new Set;if(n!=null)for(const s of Wt(n))r=t.activate({id:s,value:!0,activated:new Set(r),children:i,parents:o});return r},out:n=>Array.from(n)};return t},G1=e=>{const t=Bh(e);return{activate:i=>{let{activated:o,id:r,...s}=i;r=_e(r);const a=o.has(r)?new Set([r]):new Set;return t.activate({...s,id:r,activated:a})},in:(i,o,r)=>{let s=new Set;if(i!=null){const a=Wt(i);a.length&&(s=t.in(a.slice(0,1),o,r))}return s},out:(i,o,r)=>t.out(i,o,r)}},dF=e=>{const t=Bh(e);return{activate:i=>{let{id:o,activated:r,children:s,...a}=i;return o=_e(o),s.has(o)?r:t.activate({id:o,activated:r,children:s,...a})},in:t.in,out:t.out}},fF=e=>{const t=G1(e);return{activate:i=>{let{id:o,activated:r,children:s,...a}=i;return o=_e(o),s.has(o)?r:t.activate({id:o,activated:r,children:s,...a})},in:t.in,out:t.out}},hF={open:e=>{let{id:t,value:n,opened:i,parents:o}=e;if(n){const r=new Set;r.add(t);let s=o.get(t);for(;s!=null;)r.add(s),s=o.get(s);return r}else return i.delete(t),i},select:()=>null},W1={open:e=>{let{id:t,value:n,opened:i,parents:o}=e;if(n){let r=o.get(t);for(i.add(t);r!=null&&r!==t;)i.add(r),r=o.get(r);return i}else i.delete(t);return i},select:()=>null},mF={open:W1.open,select:e=>{let{id:t,value:n,opened:i,parents:o}=e;if(!n)return i;const r=[];let s=o.get(t);for(;s!=null;)r.push(s),s=o.get(s);return new Set(r)}},Hh=e=>{const t={select:n=>{let{id:i,value:o,selected:r}=n;if(i=_e(i),e&&!o){const s=Array.from(r.entries()).reduce((a,l)=>{let[u,c]=l;return c==="on"&&a.push(u),a},[]);if(s.length===1&&s[0]===i)return r}return r.set(i,o?"on":"off"),r},in:(n,i,o)=>{let r=new Map;for(const s of n||[])r=t.select({id:s,value:!0,selected:new Map(r),children:i,parents:o});return r},out:n=>{const i=[];for(const[o,r]of n.entries())r==="on"&&i.push(o);return i}};return t},U1=e=>{const t=Hh(e);return{select:i=>{let{selected:o,id:r,...s}=i;r=_e(r);const a=o.has(r)?new Map([[r,o.get(r)]]):new Map;return t.select({...s,id:r,selected:a})},in:(i,o,r)=>{let s=new Map;return i!=null&&i.length&&(s=t.in(i.slice(0,1),o,r)),s},out:(i,o,r)=>t.out(i,o,r)}},gF=e=>{const t=Hh(e);return{select:i=>{let{id:o,selected:r,children:s,...a}=i;return o=_e(o),s.has(o)?r:t.select({id:o,selected:r,children:s,...a})},in:t.in,out:t.out}},pF=e=>{const t=U1(e);return{select:i=>{let{id:o,selected:r,children:s,...a}=i;return o=_e(o),s.has(o)?r:t.select({id:o,selected:r,children:s,...a})},in:t.in,out:t.out}},vF=e=>{const t={select:n=>{let{id:i,value:o,selected:r,children:s,parents:a}=n;i=_e(i);const l=new Map(r),u=[i];for(;u.length;){const d=u.shift();r.set(_e(d),o?"on":"off"),s.has(d)&&u.push(...s.get(d))}let c=_e(a.get(i));for(;c;){const d=s.get(c),f=d.every(g=>r.get(_e(g))==="on"),h=d.every(g=>!r.has(_e(g))||r.get(_e(g))==="off");r.set(c,f?"on":h?"off":"indeterminate"),c=_e(a.get(c))}return e&&!o&&Array.from(r.entries()).reduce((f,h)=>{let[g,m]=h;return m==="on"&&f.push(g),f},[]).length===0?l:r},in:(n,i,o)=>{let r=new Map;for(const s of n||[])r=t.select({id:s,value:!0,selected:new Map(r),children:i,parents:o});return r},out:(n,i)=>{const o=[];for(const[r,s]of n.entries())s==="on"&&!i.has(r)&&o.push(r);return o}};return t},Ns=Symbol.for("vuetify:nested"),j1={id:Se(),root:{register:()=>null,unregister:()=>null,parents:ne(new Map),children:ne(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ne(!1),selectable:ne(!1),opened:ne(new Set),activated:ne(new Set),selected:ne(new Map),selectedValues:ne([]),getPath:()=>[]}},yF=he({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),bF=e=>{let t=!1;const n=ne(new Map),i=ne(new Map),o=st(e,"opened",e.opened,g=>new Set(g),g=>[...g.values()]),r=z(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return dF(e.mandatory);case"single-leaf":return fF(e.mandatory);case"independent":return Bh(e.mandatory);case"single-independent":default:return G1(e.mandatory)}}),s=z(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return pF(e.mandatory);case"leaf":return gF(e.mandatory);case"independent":return Hh(e.mandatory);case"single-independent":return U1(e.mandatory);case"classic":default:return vF(e.mandatory)}}),a=z(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return mF;case"single":return hF;case"multiple":default:return W1}}),l=st(e,"activated",e.activated,g=>r.value.in(g,n.value,i.value),g=>r.value.out(g,n.value,i.value)),u=st(e,"selected",e.selected,g=>s.value.in(g,n.value,i.value),g=>s.value.out(g,n.value,i.value));zt(()=>{t=!0});function c(g){const m=[];let p=g;for(;p!=null;)m.unshift(p),p=i.value.get(p);return m}const d=bt("nested"),f=new Set,h={id:Se(),root:{opened:o,activatable:de(e,"activatable"),selectable:de(e,"selectable"),activated:l,selected:u,selectedValues:z(()=>{const g=[];for(const[m,p]of u.value.entries())p==="on"&&g.push(m);return g}),register:(g,m,p)=>{if(f.has(g)){c(g).map(String).join(" -> "),c(m).concat(g).map(String).join(" -> ");return}else f.add(g);m&&g!==m&&i.value.set(g,m),p&&n.value.set(g,[]),m!=null&&n.value.set(m,[...n.value.get(m)||[],g])},unregister:g=>{if(t)return;f.delete(g),n.value.delete(g);const m=i.value.get(g);if(m){const p=n.value.get(m)??[];n.value.set(m,p.filter(y=>y!==g))}i.value.delete(g)},open:(g,m,p)=>{d.emit("click:open",{id:g,value:m,path:c(g),event:p});const y=a.value.open({id:g,value:m,opened:new Set(o.value),children:n.value,parents:i.value,event:p});y&&(o.value=y)},openOnSelect:(g,m,p)=>{const y=a.value.select({id:g,value:m,selected:new Map(u.value),opened:new Set(o.value),children:n.value,parents:i.value,event:p});y&&(o.value=y)},select:(g,m,p)=>{d.emit("click:select",{id:g,value:m,path:c(g),event:p});const y=s.value.select({id:g,value:m,selected:new Map(u.value),children:n.value,parents:i.value,event:p});y&&(u.value=y),h.root.openOnSelect(g,m,p)},activate:(g,m,p)=>{if(!e.activatable)return h.root.select(g,!0,p);d.emit("click:activate",{id:g,value:m,path:c(g),event:p});const y=r.value.activate({id:g,value:m,activated:new Set(l.value),children:n.value,parents:i.value,event:p});y&&(l.value=y)},children:n,parents:i,getPath:c}};return rt(Ns,h),h.root},Y1=(e,t)=>{const n=je(Ns,j1),i=Symbol(bn()),o=z(()=>e.value!==void 0?e.value:i),r={...n,id:o,open:(s,a)=>n.root.open(o.value,s,a),openOnSelect:(s,a)=>n.root.openOnSelect(o.value,s,a),isOpen:z(()=>n.root.opened.value.has(o.value)),parent:z(()=>n.root.parents.value.get(o.value)),activate:(s,a)=>n.root.activate(o.value,s,a),isActivated:z(()=>n.root.activated.value.has(_e(o.value))),select:(s,a)=>n.root.select(o.value,s,a),isSelected:z(()=>n.root.selected.value.get(_e(o.value))==="on"),isIndeterminate:z(()=>n.root.selected.value.get(o.value)==="indeterminate"),isLeaf:z(()=>!n.root.children.value.get(o.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(o.value,n.id.value,t),zt(()=>{!n.isGroupActivator&&n.root.unregister(o.value)}),t&&rt(Ns,r),r},wF=()=>{const e=je(Ns,j1);rt(Ns,{...e,isGroupActivator:!0})};function _F(){const e=Se(!1);return _t(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:z(()=>e.value?void 0:{transition:"none !important"}),isBooted:wr(e)}}const SF=kr({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return wF(),()=>{var i;return(i=n.default)==null?void 0:i.call(n)}}}),CF=he({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Be,default:"$collapse"},expandIcon:{type:Be,default:"$expand"},prependIcon:Be,appendIcon:Be,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ze(),...Ct()},"VListGroup"),Pv=ke()({name:"VListGroup",props:CF(),setup(e,t){let{slots:n}=t;const{isOpen:i,open:o,id:r}=Y1(de(e,"value"),!0),s=z(()=>`v-list-group--id-${String(r.value)}`),a=F1(),{isBooted:l}=_F();function u(h){h.stopPropagation(),o(!i.value,h)}const c=z(()=>({onClick:u,class:"v-list-group__header",id:s.value})),d=z(()=>i.value?e.collapseIcon:e.expandIcon),f=z(()=>({VListItem:{active:i.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&d.value,appendIcon:e.appendIcon||!e.subgroup&&d.value,title:e.title,value:e.value}}));return Ne(()=>k(e.tag,{class:["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":i.value},e.class],style:e.style},{default:()=>[n.activator&&k(wt,{defaults:f.value},{default:()=>[k(SF,null,{default:()=>[n.activator({props:c.value,isOpen:i.value})]})]}),k(Ii,{transition:{component:BH},disabled:!l.value},{default:()=>{var h;return[en(k("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[(h=n.default)==null?void 0:h.call(n)]),[[Sr,i.value]])]}})]})),{isOpen:i}}}),xF=he({opacity:[Number,String],...ze(),...Ct()},"VListItemSubtitle"),EF=ke()({name:"VListItemSubtitle",props:xF(),setup(e,t){let{slots:n}=t;return Ne(()=>k(e.tag,{class:["v-list-item-subtitle",e.class],style:[{"--v-list-item-subtitle-opacity":e.opacity},e.style]},n)),{}}}),kF=th("v-list-item-title"),AF=he({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Be,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Be,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Ut(),onClickOnce:Ut(),...Oo(),...ze(),...Hn(),...Ui(),...Pr(),...Fn(),...Iu(),...Ct(),...St(),...Yi({variant:"text"})},"VListItem"),vr=ke()({name:"VListItem",directives:{Ripple:qs},props:AF(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:i,emit:o}=t;const r=Pu(e,n),s=z(()=>e.value===void 0?r.href.value:e.value),{activate:a,isActivated:l,select:u,isOpen:c,isSelected:d,isIndeterminate:f,isGroupActivator:h,root:g,parent:m,openOnSelect:p,id:y}=Y1(s,!1),S=F1(),v=z(()=>{var J;return e.active!==!1&&(e.active||((J=r.isActive)==null?void 0:J.value)||(g.activatable.value?l.value:d.value))}),w=z(()=>e.link!==!1&&r.isLink.value),M=z(()=>!!S&&(g.selectable.value||g.activatable.value||e.value!=null)),I=z(()=>!e.disabled&&e.link!==!1&&(e.link||r.isClickable.value||M.value)),O=z(()=>e.rounded||e.nav),V=z(()=>e.color??e.activeColor),N=z(()=>({color:v.value?V.value??e.baseColor:e.baseColor,variant:e.variant}));ae(()=>{var J;return(J=r.isActive)==null?void 0:J.value},J=>{J&&m.value!=null&&g.open(m.value,!0),J&&p(J)},{immediate:!0});const{themeClasses:$}=Ht(e),{borderClasses:H}=$o(e),{colorClasses:E,colorStyles:W,variantClasses:b}=Zs(N),{densityClasses:P}=fi(e),{dimensionStyles:C}=ji(e),{elevationClasses:F}=Ir(e),{roundedClasses:B}=Gn(O),R=z(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),L=z(()=>({isActive:v.value,select:u,isOpen:c.value,isSelected:d.value,isIndeterminate:f.value}));function U(J){var X;o("click",J),I.value&&((X=r.navigate)==null||X.call(r,J),!h&&(g.activatable.value?a(!l.value,J):(g.selectable.value||e.value!=null)&&u(!d.value,J)))}function j(J){(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),J.target.dispatchEvent(new MouseEvent("click",J)))}return Ne(()=>{const J=w.value?"a":e.tag,X=i.title||e.title!=null,re=i.subtitle||e.subtitle!=null,ee=!!(e.appendAvatar||e.appendIcon),le=!!(ee||i.append),ue=!!(e.prependAvatar||e.prependIcon),pe=!!(ue||i.prepend);return S==null||S.updateHasPrepend(pe),e.activeColor&&PD("active-color",["color","base-color"]),en(k(J,Ee({class:["v-list-item",{"v-list-item--active":v.value,"v-list-item--disabled":e.disabled,"v-list-item--link":I.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!pe&&(S==null?void 0:S.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&v.value},$.value,H.value,E.value,P.value,F.value,R.value,B.value,b.value,e.class],style:[W.value,C.value,e.style],tabindex:I.value?S?-2:0:void 0,"aria-selected":M.value?g.activatable.value?l.value:g.selectable.value?d.value:v.value:void 0,onClick:U,onKeydown:I.value&&!w.value&&j},r.linkProps),{default:()=>{var me;return[Xs(I.value||v.value,"v-list-item"),pe&&k("div",{key:"prepend",class:"v-list-item__prepend"},[i.prepend?k(wt,{key:"prepend-defaults",disabled:!ue,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var ce;return[(ce=i.prepend)==null?void 0:ce.call(i,L.value)]}}):k(be,null,[e.prependAvatar&&k(Li,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&k(Xe,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),k("div",{class:"v-list-item__spacer"},null)]),k("div",{class:"v-list-item__content","data-no-activator":""},[X&&k(kF,{key:"title"},{default:()=>{var ce;return[((ce=i.title)==null?void 0:ce.call(i,{title:e.title}))??e.title]}}),re&&k(EF,{key:"subtitle"},{default:()=>{var ce;return[((ce=i.subtitle)==null?void 0:ce.call(i,{subtitle:e.subtitle}))??e.subtitle]}}),(me=i.default)==null?void 0:me.call(i,L.value)]),le&&k("div",{key:"append",class:"v-list-item__append"},[i.append?k(wt,{key:"append-defaults",disabled:!ee,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var ce;return[(ce=i.append)==null?void 0:ce.call(i,L.value)]}}):k(be,null,[e.appendIcon&&k(Xe,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&k(Li,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),k("div",{class:"v-list-item__spacer"},null)])]}}),[[No("ripple"),I.value&&e.ripple]])}),{activate:a,isActivated:l,isGroupActivator:h,isSelected:d,list:S,select:u,root:g,id:y}}}),DF=he({color:String,inset:Boolean,sticky:Boolean,title:String,...ze(),...Ct()},"VListSubheader"),PF=ke()({name:"VListSubheader",props:DF(),setup(e,t){let{slots:n}=t;const{textColorClasses:i,textColorStyles:o}=Vn(de(e,"color"));return Ne(()=>{const r=!!(n.default||e.title);return k(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},i.value,e.class],style:[{textColorStyles:o},e.style]},{default:()=>{var s;return[r&&k("div",{class:"v-list-subheader__text"},[((s=n.default)==null?void 0:s.call(n))??e.title])]}})}),{}}}),IF=he({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ze(),...St()},"VDivider"),ls=ke()({name:"VDivider",props:IF(),setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:o}=Ht(e),{textColorClasses:r,textColorStyles:s}=Vn(de(e,"color")),a=z(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=Te(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=Te(e.thickness)),l});return Ne(()=>{const l=k("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},o.value,r.value,e.class],style:[a.value,s.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return i.default?k("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[l,k("div",{class:"v-divider__content"},[i.default()]),l]):l}),{}}}),TF=he({items:Array,returnObject:Boolean},"VListChildren"),K1=ke()({name:"VListChildren",props:TF(),setup(e,t){let{slots:n}=t;return H1(),()=>{var i,o;return((i=n.default)==null?void 0:i.call(n))??((o=e.items)==null?void 0:o.map(r=>{var f,h;let{children:s,props:a,type:l,raw:u}=r;if(l==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:a}))??k(ls,a,null);if(l==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:a}))??k(PF,a,null);const c={subtitle:n.subtitle?g=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...g,item:u})}:void 0,prepend:n.prepend?g=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...g,item:u})}:void 0,append:n.append?g=>{var m;return(m=n.append)==null?void 0:m.call(n,{...g,item:u})}:void 0,title:n.title?g=>{var m;return(m=n.title)==null?void 0:m.call(n,{...g,item:u})}:void 0},d=Pv.filterProps(a);return s?k(Pv,Ee({value:a==null?void 0:a.value},d),{activator:g=>{let{props:m}=g;const p={...a,...m,value:e.returnObject?u:a.value};return n.header?n.header({props:p}):k(vr,p,c)},default:()=>k(K1,{items:s,returnObject:e.returnObject},n)}):n.item?n.item({props:a}):k(vr,Ee(a,{value:e.returnObject?u:a.value}),c)}))}}}),q1=he({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:xr}},"list-items");function Di(e,t){const n=Dn(t,e.itemTitle,t),i=Dn(t,e.itemValue,n),o=Dn(t,e.itemChildren),r=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Gi(t,["children"]):t:void 0:Dn(t,e.itemProps),s={title:n,value:i,...r};return{title:String(s.title??""),value:s.value,props:s,children:Array.isArray(o)?X1(e,o):void 0,raw:t}}function X1(e,t){const n=[];for(const i of t)n.push(Di(e,i));return n}function Z1(e){const t=z(()=>X1(e,e.items)),n=z(()=>t.value.some(r=>r.value===null));function i(r){return n.value||(r=r.filter(s=>s!==null)),r.map(s=>e.returnObject&&typeof s=="string"?Di(e,s):t.value.find(a=>e.valueComparator(s,a.value))||Di(e,s))}function o(r){return e.returnObject?r.map(s=>{let{raw:a}=s;return a}):r.map(s=>{let{value:a}=s;return a})}return{items:t,transformIn:i,transformOut:o}}function MF(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function NF(e,t){const n=Dn(t,e.itemType,"item"),i=MF(t)?t:Dn(t,e.itemTitle),o=Dn(t,e.itemValue,void 0),r=Dn(t,e.itemChildren),s=e.itemProps===!0?Gi(t,["children"]):Dn(t,e.itemProps),a={title:i,value:o,...s};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&r?J1(e,r):void 0,raw:t}}function J1(e,t){const n=[];for(const i of t)n.push(NF(e,i));return n}function OF(e){return{items:z(()=>J1(e,e.items))}}const $F=he({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:Be,collapseIcon:Be,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":Ut(),"onClick:select":Ut(),"onUpdate:opened":Ut(),...yF({selectStrategy:"single-leaf",openStrategy:"list"}),...Oo(),...ze(),...Hn(),...Ui(),...Pr(),itemType:{type:String,default:"type"},...q1(),...Fn(),...Ct(),...St(),...Yi({variant:"text"})},"VList"),Q1=ke()({name:"VList",props:$F(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:i}=OF(e),{themeClasses:o}=Ht(e),{backgroundColorClasses:r,backgroundColorStyles:s}=Oi(de(e,"bgColor")),{borderClasses:a}=$o(e),{densityClasses:l}=fi(e),{dimensionStyles:u}=ji(e),{elevationClasses:c}=Ir(e),{roundedClasses:d}=Gn(e),{children:f,open:h,parents:g,select:m,getPath:p}=bF(e),y=z(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=de(e,"activeColor"),v=de(e,"baseColor"),w=de(e,"color");H1(),Er({VListGroup:{activeColor:S,baseColor:v,color:w,expandIcon:de(e,"expandIcon"),collapseIcon:de(e,"collapseIcon")},VListItem:{activeClass:de(e,"activeClass"),activeColor:S,baseColor:v,color:w,density:de(e,"density"),disabled:de(e,"disabled"),lines:de(e,"lines"),nav:de(e,"nav"),slim:de(e,"slim"),variant:de(e,"variant")}});const M=Se(!1),I=ne();function O(W){M.value=!0}function V(W){M.value=!1}function N(W){var b;!M.value&&!(W.relatedTarget&&((b=I.value)!=null&&b.contains(W.relatedTarget)))&&E()}function $(W){const b=W.target;if(!(!I.value||["INPUT","TEXTAREA"].includes(b.tagName))){if(W.key==="ArrowDown")E("next");else if(W.key==="ArrowUp")E("prev");else if(W.key==="Home")E("first");else if(W.key==="End")E("last");else return;W.preventDefault()}}function H(W){M.value=!0}function E(W){if(I.value)return os(I.value,W)}return Ne(()=>k(e.tag,{ref:I,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},o.value,r.value,a.value,l.value,c.value,y.value,d.value,e.class],style:[s.value,u.value,e.style],tabindex:e.disabled||M.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:O,onFocusout:V,onFocus:N,onKeydown:$,onMousedown:H},{default:()=>[k(K1,{items:i.value,returnObject:e.returnObject},n)]})),{open:h,select:m,focus:E,children:f,parents:g,getPath:p}}});function Ic(e,t){return{x:e.x+t.x,y:e.y+t.y}}function RF(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Iv(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:i}=e,o=i==="left"?0:i==="center"?t.width/2:i==="right"?t.width:i,r=n==="top"?0:n==="bottom"?t.height:n;return Ic({x:o,y:r},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:i}=e,o=n==="left"?0:n==="right"?t.width:n,r=i==="top"?0:i==="center"?t.height/2:i==="bottom"?t.height:i;return Ic({x:o,y:r},t)}return Ic({x:t.width/2,y:t.height/2},t)}const eS={static:zF,connected:HF},VF=he({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in eS},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function LF(e,t){const n=ne({}),i=ne();We&&Eo(()=>!!(t.isActive.value&&e.locationStrategy),r=>{var s,a;ae(()=>e.locationStrategy,r),it(()=>{window.removeEventListener("resize",o),i.value=void 0}),window.addEventListener("resize",o,{passive:!0}),typeof e.locationStrategy=="function"?i.value=(s=e.locationStrategy(t,e,n))==null?void 0:s.updateLocation:i.value=(a=eS[e.locationStrategy](t,e,n))==null?void 0:a.updateLocation});function o(r){var s;(s=i.value)==null||s.call(i,r)}return{contentStyles:n,updateLocation:i}}function zF(){}function BF(e,t){const n=Jf(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function HF(e,t,n){(Array.isArray(e.target.value)||ZD(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:o,preferredOrigin:r}=Xf(()=>{const g=vd(t.location,e.isRtl.value),m=t.origin==="overlap"?g:t.origin==="auto"?nc(g):vd(t.origin,e.isRtl.value);return g.side===m.side&&g.align===ic(m).align?{preferredAnchor:pg(g),preferredOrigin:pg(m)}:{preferredAnchor:g,preferredOrigin:m}}),[s,a,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(g=>z(()=>{const m=parseFloat(t[g]);return isNaN(m)?1/0:m})),c=z(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const g=t.offset.split(" ").map(parseFloat);return g.length<2&&g.push(0),g}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1;const f=new ResizeObserver(()=>{d&&h()});ae([e.target,e.contentEl],(g,m)=>{let[p,y]=g,[S,v]=m;S&&!Array.isArray(S)&&f.unobserve(S),p&&!Array.isArray(p)&&f.observe(p),v&&f.unobserve(v),y&&f.observe(y)},{immediate:!0}),it(()=>{f.disconnect()});function h(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;const g=Bw(e.target.value),m=BF(e.contentEl.value,e.isRtl.value),p=wl(e.contentEl.value),y=12;p.length||(p.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(m.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),m.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const S=p.reduce((H,E)=>{const W=E.getBoundingClientRect(),b=new mo({x:E===document.documentElement?0:W.x,y:E===document.documentElement?0:W.y,width:E.clientWidth,height:E.clientHeight});return H?new mo({x:Math.max(H.left,b.left),y:Math.max(H.top,b.top),width:Math.min(H.right,b.right)-Math.max(H.left,b.left),height:Math.min(H.bottom,b.bottom)-Math.max(H.top,b.top)}):b},void 0);S.x+=y,S.y+=y,S.width-=y*2,S.height-=y*2;let v={anchor:o.value,origin:r.value};function w(H){const E=new mo(m),W=Iv(H.anchor,g),b=Iv(H.origin,E);let{x:P,y:C}=RF(W,b);switch(H.anchor.side){case"top":C-=c.value[0];break;case"bottom":C+=c.value[0];break;case"left":P-=c.value[0];break;case"right":P+=c.value[0];break}switch(H.anchor.align){case"top":C-=c.value[1];break;case"bottom":C+=c.value[1];break;case"left":P-=c.value[1];break;case"right":P+=c.value[1];break}return E.x+=P,E.y+=C,E.width=Math.min(E.width,l.value),E.height=Math.min(E.height,u.value),{overflows:yg(E,S),x:P,y:C}}let M=0,I=0;const O={x:0,y:0},V={x:!1,y:!1};let N=-1;for(;!(N++>10);){const{x:H,y:E,overflows:W}=w(v);M+=H,I+=E,m.x+=H,m.y+=E;{const b=vg(v.anchor),P=W.x.before||W.x.after,C=W.y.before||W.y.after;let F=!1;if(["x","y"].forEach(B=>{if(B==="x"&&P&&!V.x||B==="y"&&C&&!V.y){const R={anchor:{...v.anchor},origin:{...v.origin}},L=B==="x"?b==="y"?ic:nc:b==="y"?nc:ic;R.anchor=L(R.anchor),R.origin=L(R.origin);const{overflows:U}=w(R);(U[B].before<=W[B].before&&U[B].after<=W[B].after||U[B].before+U[B].after<(W[B].before+W[B].after)/2)&&(v=R,F=V[B]=!0)}}),F)continue}W.x.before&&(M+=W.x.before,m.x+=W.x.before),W.x.after&&(M-=W.x.after,m.x-=W.x.after),W.y.before&&(I+=W.y.before,m.y+=W.y.before),W.y.after&&(I-=W.y.after,m.y-=W.y.after);{const b=yg(m,S);O.x=S.width-b.x.before-b.x.after,O.y=S.height-b.y.before-b.y.after,M+=b.x.before,m.x+=b.x.before,I+=b.y.before,m.y+=b.y.before}break}const $=vg(v.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:Te(Tc(I)),left:e.isRtl.value?void 0:Te(Tc(M)),right:e.isRtl.value?Te(Tc(-M)):void 0,minWidth:Te($==="y"?Math.min(s.value,g.width):s.value),maxWidth:Te(Tv(si(O.x,s.value===1/0?0:s.value,l.value))),maxHeight:Te(Tv(si(O.y,a.value===1/0?0:a.value,u.value)))}),{available:O,contentBox:m}}return ae(()=>[o.value,r.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>h()),Ue(()=>{const g=h();if(!g)return;const{available:m,contentBox:p}=g;p.height>m.y&&requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h()})})}),{updateLocation:h}}function Tc(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Tv(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let nf=!0;const Yl=[];function FF(e){!nf||Yl.length?(Yl.push(e),of()):(nf=!1,e(),of())}let Mv=-1;function of(){cancelAnimationFrame(Mv),Mv=requestAnimationFrame(()=>{const e=Yl.shift();e&&e(),Yl.length?of():nf=!0})}const Ka={none:null,close:UF,block:jF,reposition:YF},GF=he({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Ka}},"VOverlay-scroll-strategies");function WF(e,t){if(!We)return;let n;dn(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Bi(),await new Promise(i=>setTimeout(i)),n.active&&n.run(()=>{var i;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(i=Ka[e.scrollStrategy])==null||i.call(Ka,t,e,n)}))}),it(()=>{n==null||n.stop()})}function UF(e){function t(n){e.isActive.value=!1}tS(e.targetEl.value??e.contentEl.value,t)}function jF(e,t){var s;const n=(s=e.root.value)==null?void 0:s.offsetParent,i=[...new Set([...wl(e.targetEl.value,t.contained?n:void 0),...wl(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),o=window.innerWidth-document.documentElement.offsetWidth,r=(a=>nh(a)&&a)(n||document.documentElement);r&&e.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach((a,l)=>{a.style.setProperty("--v-body-scroll-x",Te(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",Te(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",Te(o)),a.classList.add("v-overlay-scroll-blocked")}),it(()=>{i.forEach((a,l)=>{const u=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(a.style.getPropertyValue("--v-body-scroll-y")),d=a.style.scrollBehavior;a.style.scrollBehavior="auto",a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-u,a.scrollTop=-c,a.style.scrollBehavior=d}),r&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function YF(e,t,n){let i=!1,o=-1,r=-1;function s(a){FF(()=>{var c,d;const l=performance.now();(d=(c=e.updateLocation).value)==null||d.call(c,a),i=(performance.now()-l)/(1e3/60)>2})}r=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{tS(e.targetEl.value??e.contentEl.value,a=>{i?(cancelAnimationFrame(o),o=requestAnimationFrame(()=>{o=requestAnimationFrame(()=>{s(a)})})):s(a)})})}),it(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(r),cancelAnimationFrame(o)})}function tS(e,t){const n=[document,...wl(e)];n.forEach(i=>{i.addEventListener("scroll",t,{passive:!0})}),it(()=>{n.forEach(i=>{i.removeEventListener("scroll",t)})})}const rf=Symbol.for("vuetify:v-menu"),KF=he({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function qF(e,t){let n=()=>{};function i(s){n==null||n();const a=Number(s?e.openDelay:e.closeDelay);return new Promise(l=>{n=vD(a,()=>{t==null||t(s),l(s)})})}function o(){return i(!0)}function r(){return i(!1)}return{clearDelay:n,runOpenDelay:o,runCloseDelay:r}}const XF=he({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...KF()},"VOverlay-activator");function ZF(e,t){let{isActive:n,isTop:i,contentEl:o}=t;const r=bt("useActivator"),s=ne();let a=!1,l=!1,u=!0;const c=z(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=z(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:f,runCloseDelay:h}=qF(e,V=>{V===(e.openOnHover&&a||c.value&&l)&&!(e.openOnHover&&n.value&&!i.value)&&(n.value!==V&&(u=!0),n.value=V)}),g=ne(),m={onClick:V=>{V.stopPropagation(),s.value=V.currentTarget||V.target,n.value||(g.value=[V.clientX,V.clientY]),n.value=!n.value},onMouseenter:V=>{var N;(N=V.sourceCapabilities)!=null&&N.firesTouchEvents||(a=!0,s.value=V.currentTarget||V.target,f())},onMouseleave:V=>{a=!1,h()},onFocus:V=>{vl(V.target,":focus-visible")!==!1&&(l=!0,V.stopPropagation(),s.value=V.currentTarget||V.target,f())},onBlur:V=>{l=!1,V.stopPropagation(),h()}},p=z(()=>{const V={};return d.value&&(V.onClick=m.onClick),e.openOnHover&&(V.onMouseenter=m.onMouseenter,V.onMouseleave=m.onMouseleave),c.value&&(V.onFocus=m.onFocus,V.onBlur=m.onBlur),V}),y=z(()=>{const V={};if(e.openOnHover&&(V.onMouseenter=()=>{a=!0,f()},V.onMouseleave=()=>{a=!1,h()}),c.value&&(V.onFocusin=()=>{l=!0,f()},V.onFocusout=()=>{l=!1,h()}),e.closeOnContentClick){const N=je(rf,null);V.onClick=()=>{n.value=!1,N==null||N.closeParents()}}return V}),S=z(()=>{const V={};return e.openOnHover&&(V.onMouseenter=()=>{u&&(a=!0,u=!1,f())},V.onMouseleave=()=>{a=!1,h()}),V});ae(i,V=>{var N;V&&(e.openOnHover&&!a&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!a))&&!((N=o.value)!=null&&N.contains(document.activeElement))&&(n.value=!1)}),ae(n,V=>{V||setTimeout(()=>{g.value=void 0})},{flush:"post"});const v=gd();dn(()=>{v.value&&Ue(()=>{s.value=v.el})});const w=gd(),M=z(()=>e.target==="cursor"&&g.value?g.value:w.value?w.el:nS(e.target,r)||s.value),I=z(()=>Array.isArray(M.value)?void 0:M.value);let O;return ae(()=>!!e.activator,V=>{V&&We?(O=Bi(),O.run(()=>{JF(e,r,{activatorEl:s,activatorEvents:p})})):O&&O.stop()},{flush:"post",immediate:!0}),it(()=>{O==null||O.stop()}),{activatorEl:s,activatorRef:v,target:M,targetEl:I,targetRef:w,activatorEvents:p,contentEvents:y,scrimEvents:S}}function JF(e,t,n){let{activatorEl:i,activatorEvents:o}=n;ae(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=a(u);c&&s(c)}l&&Ue(()=>r())},{immediate:!0}),ae(()=>e.activatorProps,()=>{r()}),it(()=>{s()});function r(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&wD(l,Ee(o.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&_D(l,Ee(o.value,u))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=nS(l,t);return i.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,i.value}}function nS(e,t){var i,o;if(!e)return;let n;if(e==="parent"){let r=(o=(i=t==null?void 0:t.proxy)==null?void 0:i.$el)==null?void 0:o.parentNode;for(;r!=null&&r.hasAttribute("data-no-activator");)r=r.parentNode;n=r}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function QF(){if(!We)return Se(!1);const{ssr:e}=sh();if(e){const t=Se(!1);return _t(()=>{t.value=!0}),t}else return Se(!0)}const e3=he({eager:Boolean},"lazy");function t3(e,t){const n=Se(!1),i=z(()=>n.value||e.eager||t.value);ae(t,()=>n.value=!0);function o(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:i,onAfterLeave:o}}function iS(){const t=bt("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Nv=Symbol.for("vuetify:stack"),Br=at([]);function n3(e,t,n){const i=bt("useStack"),o=!n,r=je(Nv,void 0),s=at({activeChildren:new Set});rt(Nv,s);const a=Se(+t.value);Eo(e,()=>{var d;const c=(d=Br.at(-1))==null?void 0:d[1];a.value=c?c+10:+t.value,o&&Br.push([i.uid,a.value]),r==null||r.activeChildren.add(i.uid),it(()=>{if(o){const f=_e(Br).findIndex(h=>h[0]===i.uid);Br.splice(f,1)}r==null||r.activeChildren.delete(i.uid)})});const l=Se(!0);o&&dn(()=>{var d;const c=((d=Br.at(-1))==null?void 0:d[0])===i.uid;setTimeout(()=>l.value=c)});const u=z(()=>!s.activeChildren.size);return{globalTop:wr(l),localTop:u,stackStyles:z(()=>({zIndex:a.value}))}}function i3(e){return{teleportTarget:z(()=>{const n=e();if(n===!0||!We)return;const i=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(i==null)return;let o=[...i.children].find(r=>r.matches(".v-overlay-container"));return o||(o=document.createElement("div"),o.className="v-overlay-container",i.appendChild(o)),o})}}function o3(){return!0}function oS(e,t,n){if(!e||rS(e,n)===!1)return!1;const i=Yw(t);if(typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&i.host===e.target)return!1;const o=(typeof n.value=="object"&&n.value.include||(()=>[]))();return o.push(t),!o.some(r=>r==null?void 0:r.contains(e.target))}function rS(e,t){return(typeof t.value=="object"&&t.value.closeConditional||o3)(e)}function r3(e,t,n){const i=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&oS(e,t,n)&&setTimeout(()=>{rS(e,n)&&i&&i(e)},0)}function Ov(e,t){const n=Yw(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const s3={mounted(e,t){const n=o=>r3(o,e,t),i=o=>{e._clickOutside.lastMousedownWasOutside=oS(o,e,t)};Ov(e,o=>{o.addEventListener("click",n,!0),o.addEventListener("mousedown",i,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:i}},beforeUnmount(e,t){e._clickOutside&&(Ov(e,n=>{var r;if(!n||!((r=e._clickOutside)!=null&&r[t.instance.$.uid]))return;const{onClick:i,onMousedown:o}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",i,!0),n.removeEventListener("mousedown",o,!0)}),delete e._clickOutside[t.instance.$.uid])}};function a3(e){const{modelValue:t,color:n,...i}=e;return k(Co,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&k("div",Ee({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},i),null)]})}const sS=he({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...XF(),...ze(),...Ui(),...e3(),...VF(),...GF(),...St(),...Dr()},"VOverlay"),sf=ke()({name:"VOverlay",directives:{ClickOutside:s3},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...sS()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:i,emit:o}=t;const r=bt("VOverlay"),s=ne(),a=ne(),l=ne(),u=st(e,"modelValue"),c=z({get:()=>u.value,set:ee=>{ee&&e.disabled||(u.value=ee)}}),{themeClasses:d}=Ht(e),{rtlClasses:f,isRtl:h}=Wi(),{hasContent:g,onAfterLeave:m}=t3(e,c),p=Oi(z(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:y,localTop:S,stackStyles:v}=n3(c,de(e,"zIndex"),e._disableGlobalStack),{activatorEl:w,activatorRef:M,target:I,targetEl:O,targetRef:V,activatorEvents:N,contentEvents:$,scrimEvents:H}=ZF(e,{isActive:c,isTop:S,contentEl:l}),{teleportTarget:E}=i3(()=>{var ue,pe,me;const ee=e.attach||e.contained;if(ee)return ee;const le=((ue=w==null?void 0:w.value)==null?void 0:ue.getRootNode())||((me=(pe=r.proxy)==null?void 0:pe.$el)==null?void 0:me.getRootNode());return le instanceof ShadowRoot?le:!1}),{dimensionStyles:W}=ji(e),b=QF(),{scopeId:P}=iS();ae(()=>e.disabled,ee=>{ee&&(c.value=!1)});const{contentStyles:C,updateLocation:F}=LF(e,{isRtl:h,contentEl:l,target:I,isActive:c});WF(e,{root:s,contentEl:l,targetEl:O,isActive:c,updateLocation:F});function B(ee){o("click:outside",ee),e.persistent?J():c.value=!1}function R(ee){return c.value&&y.value&&(!e.scrim||ee.target===a.value||ee instanceof MouseEvent&&ee.shadowTarget===a.value)}We&&ae(c,ee=>{ee?window.addEventListener("keydown",L):window.removeEventListener("keydown",L)},{immediate:!0}),zt(()=>{We&&window.removeEventListener("keydown",L)});function L(ee){var le,ue;ee.key==="Escape"&&y.value&&(e.persistent?J():(c.value=!1,(le=l.value)!=null&&le.contains(document.activeElement)&&((ue=w.value)==null||ue.focus())))}const U=lF();Eo(()=>e.closeOnBack,()=>{uF(U,ee=>{y.value&&c.value?(ee(!1),e.persistent?J():c.value=!1):ee()})});const j=ne();ae(()=>c.value&&(e.absolute||e.contained)&&E.value==null,ee=>{if(ee){const le=Kw(s.value);le&&le!==document.scrollingElement&&(j.value=le.scrollTop)}});function J(){e.noClickAnimation||l.value&&Xo(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:bl})}function X(){o("afterEnter")}function re(){m(),o("afterLeave")}return Ne(()=>{var ee;return k(be,null,[(ee=n.activator)==null?void 0:ee.call(n,{isActive:c.value,targetRef:V,props:Ee({ref:M},N.value,e.activatorProps)}),b.value&&g.value&&k(AC,{disabled:!E.value,to:E.value},{default:()=>[k("div",Ee({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},d.value,f.value,e.class],style:[v.value,{"--v-overlay-opacity":e.opacity,top:Te(j.value)},e.style],ref:s},P,i),[k(a3,Ee({color:p,modelValue:c.value&&!!e.scrim,ref:a},H.value),null),k(Ii,{appear:!0,persisted:!0,transition:e.transition,target:I.value,onAfterEnter:X,onAfterLeave:re},{default:()=>{var le;return[en(k("div",Ee({ref:l,class:["v-overlay__content",e.contentClass],style:[W.value,C.value]},$.value,e.contentProps),[(le=n.default)==null?void 0:le.call(n,{isActive:c})]),[[Sr,c.value],[No("click-outside"),{handler:B,closeConditional:R,include:()=>[w.value]}]])]}})])]})])}),{activatorEl:w,scrimEl:a,target:I,animateClick:J,contentEl:l,globalTop:y,localTop:S,updateLocation:F}}}),Mc=Symbol("Forwarded refs");function Nc(e,t){let n=e;for(;n;){const i=Reflect.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function Tu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e[Mc]=n,new Proxy(e,{get(o,r){if(Reflect.has(o,r))return Reflect.get(o,r);if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const s of n)if(s.value&&Reflect.has(s.value,r)){const a=Reflect.get(s.value,r);return typeof a=="function"?a.bind(s.value):a}}},has(o,r){if(Reflect.has(o,r))return!0;if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,r))return!0;return!1},set(o,r,s){if(Reflect.has(o,r))return Reflect.set(o,r,s);if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,r))return Reflect.set(a.value,r,s);return!1},getOwnPropertyDescriptor(o,r){var a;const s=Reflect.getOwnPropertyDescriptor(o,r);if(s)return s;if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const l of n){if(!l.value)continue;const u=Nc(l.value,r)??("_"in l.value?Nc((a=l.value._)==null?void 0:a.setupState,r):void 0);if(u)return u}for(const l of n){const u=l.value&&l.value[Mc];if(!u)continue;const c=u.slice();for(;c.length;){const d=c.shift(),f=Nc(d.value,r);if(f)return f;const h=d.value&&d.value[Mc];h&&c.push(...h)}}}}})}const l3=he({id:String,submenu:Boolean,...Gi(sS({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:k1}}),["absolute"])},"VMenu"),aS=ke()({name:"VMenu",props:l3(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=st(e,"modelValue"),{scopeId:o}=iS(),{isRtl:r}=Wi(),s=bn(),a=z(()=>e.id||`v-menu-${s}`),l=ne(),u=je(rf,null),c=Se(new Set);rt(rf,{register(){c.value.add(s)},unregister(){c.value.delete(s)},closeParents(p){setTimeout(()=>{var y;!c.value.size&&!e.persistent&&(p==null||(y=l.value)!=null&&y.contentEl&&!yD(p,l.value.contentEl))&&(i.value=!1,u==null||u.closeParents())},40)}}),zt(()=>{u==null||u.unregister(),document.removeEventListener("focusin",d)}),Xy(()=>i.value=!1);async function d(p){var v,w,M;const y=p.relatedTarget,S=p.target;await Ue(),i.value&&y!==S&&((v=l.value)!=null&&v.contentEl)&&((w=l.value)!=null&&w.globalTop)&&![document,l.value.contentEl].includes(S)&&!l.value.contentEl.contains(S)&&((M=pl(l.value.contentEl)[0])==null||M.focus())}ae(i,p=>{p?(u==null||u.register(),We&&document.addEventListener("focusin",d,{once:!0})):(u==null||u.unregister(),We&&document.removeEventListener("focusin",d))},{immediate:!0});function f(p){u==null||u.closeParents(p)}function h(p){var y,S,v,w,M;if(!e.disabled)if(p.key==="Tab"||p.key==="Enter"&&!e.closeOnContentClick){if(p.key==="Enter"&&(p.target instanceof HTMLTextAreaElement||p.target instanceof HTMLInputElement&&p.target.closest("form")))return;p.key==="Enter"&&p.preventDefault(),Lw(pl((y=l.value)==null?void 0:y.contentEl,!1),p.shiftKey?"prev":"next",O=>O.tabIndex>=0)||(i.value=!1,(v=(S=l.value)==null?void 0:S.activatorEl)==null||v.focus())}else e.submenu&&p.key===(r.value?"ArrowRight":"ArrowLeft")&&(i.value=!1,(M=(w=l.value)==null?void 0:w.activatorEl)==null||M.focus())}function g(p){var S;if(e.disabled)return;const y=(S=l.value)==null?void 0:S.contentEl;y&&i.value?p.key==="ArrowDown"?(p.preventDefault(),p.stopImmediatePropagation(),os(y,"next")):p.key==="ArrowUp"?(p.preventDefault(),p.stopImmediatePropagation(),os(y,"prev")):e.submenu&&(p.key===(r.value?"ArrowRight":"ArrowLeft")?i.value=!1:p.key===(r.value?"ArrowLeft":"ArrowRight")&&(p.preventDefault(),os(y,"first"))):(e.submenu?p.key===(r.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(p.key))&&(i.value=!0,p.preventDefault(),setTimeout(()=>setTimeout(()=>g(p))))}const m=z(()=>Ee({"aria-haspopup":"menu","aria-expanded":String(i.value),"aria-owns":a.value,onKeydown:g},e.activatorProps));return Ne(()=>{const p=sf.filterProps(e);return k(sf,Ee({ref:l,id:a.value,class:["v-menu",e.class],style:e.style},p,{modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,absolute:!0,activatorProps:m.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":f,onKeydown:h},o),{activator:n.activator,default:function(){for(var y=arguments.length,S=new Array(y),v=0;v<y;v++)S[v]=arguments[v];return k(wt,{root:"VMenu"},{default:()=>{var w;return[(w=n.default)==null?void 0:w.call(n,...S)]}})}})}),Tu({id:a,ΨopenChildren:c},l)}}),u3=he({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...ze(),...Dr({transition:{component:A1}})},"VCounter"),c3=ke()({name:"VCounter",functional:!0,props:u3(),setup(e,t){let{slots:n}=t;const i=z(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return Ne(()=>k(Ii,{transition:e.transition},{default:()=>[en(k("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[n.default?n.default({counter:i.value,max:e.max,value:e.value}):i.value]),[[Sr,e.active]])]})),{}}}),d3=he({floating:Boolean,...ze()},"VFieldLabel"),Pa=ke()({name:"VFieldLabel",props:d3(),setup(e,t){let{slots:n}=t;return Ne(()=>k(c1,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}});function lS(e,t){const n=ne(),i=Se(!1);if(Yf){const o=new IntersectionObserver(r=>{i.value=!!r.find(s=>s.isIntersecting)},t);zt(()=>{o.disconnect()}),ae(n,(r,s)=>{s&&(o.unobserve(s),i.value=!1),r&&o.observe(r)},{flush:"post"})}return{intersectionRef:n,isIntersecting:i}}const $v={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Fh=he({location:String},"location");function Gh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:i}=Wi();return{locationStyles:z(()=>{if(!e.location)return{};const{side:r,align:s}=vd(e.location.split(" ").length>1?e.location:`${e.location} center`,i.value);function a(u){return n?n(u):0}const l={};return r!=="center"&&(t?l[$v[r]]=`calc(100% - ${a(r)}px)`:l[r]=0),s!=="center"?t?l[$v[s]]=`calc(100% - ${a(s)}px)`:l[s]=0:(r==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[r]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[r]),l})}}const f3=he({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ze(),...Fh({location:"top"}),...Fn(),...Ct(),...St()},"VProgressLinear"),uS=ke()({name:"VProgressLinear",props:f3(),emits:{"update:modelValue":e=>!0},setup(e,t){var H;let{slots:n}=t;const i=st(e,"modelValue"),{isRtl:o,rtlClasses:r}=Wi(),{themeClasses:s}=Ht(e),{locationStyles:a}=Gh(e),{textColorClasses:l,textColorStyles:u}=Vn(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:d}=Oi(z(()=>e.bgColor||e.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=Oi(z(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:g,backgroundColorStyles:m}=Oi(e,"color"),{roundedClasses:p}=Gn(e),{intersectionRef:y,isIntersecting:S}=lS(),v=z(()=>parseFloat(e.max)),w=z(()=>parseFloat(e.height)),M=z(()=>si(parseFloat(e.bufferValue)/v.value*100,0,100)),I=z(()=>si(parseFloat(i.value)/v.value*100,0,100)),O=z(()=>o.value!==e.reverse),V=z(()=>e.indeterminate?"fade-transition":"slide-x-transition"),N=We&&((H=window.matchMedia)==null?void 0:H.call(window,"(forced-colors: active)").matches);function $(E){if(!y.value)return;const{left:W,right:b,width:P}=y.value.getBoundingClientRect(),C=O.value?P-E.clientX+(b-P):E.clientX-W;i.value=Math.round(C/P*v.value)}return Ne(()=>k(e.tag,{ref:y,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&S.value,"v-progress-linear--reverse":O.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},p.value,s.value,r.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Te(w.value):0,"--v-progress-linear-height":Te(w.value),...e.absolute?a.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:I.value,onClick:e.clickable&&$},{default:()=>[e.stream&&k("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[O.value?"left":"right"]:Te(-w.value),borderTop:`${Te(w.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${Te(w.value/4)})`,width:Te(100-M.value,"%"),"--v-progress-linear-stream-to":Te(w.value*(O.value?1:-1))}},null),k("div",{class:["v-progress-linear__background",N?void 0:c.value],style:[d.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),k("div",{class:["v-progress-linear__buffer",N?void 0:f.value],style:[h.value,{opacity:parseFloat(e.bufferOpacity),width:Te(M.value,"%")}]},null),k(Co,{name:V.value},{default:()=>[e.indeterminate?k("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(E=>k("div",{key:E,class:["v-progress-linear__indeterminate",E,N?void 0:g.value],style:m.value},null))]):k("div",{class:["v-progress-linear__determinate",N?void 0:g.value],style:[m.value,{width:Te(I.value,"%")}]},null)]}),n.default&&k("div",{class:"v-progress-linear__content"},[n.default({value:I.value,buffer:M.value})])]})),{}}}),Wh=he({loading:[Boolean,String]},"loader");function Uh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();return{loaderClasses:z(()=>({[`${t}--loading`]:e.loading}))}}function cS(e,t){var i;let{slots:n}=t;return k("div",{class:`${e.name}__loader`},[((i=n.default)==null?void 0:i.call(n,{color:e.color,isActive:e.active}))||k(uS,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const h3=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],dS=he({appendInnerIcon:Be,bgColor:String,clearable:Boolean,clearIcon:{type:Be,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Be,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>h3.includes(e)},"onClick:clear":Ut(),"onClick:appendInner":Ut(),"onClick:prependInner":Ut(),...ze(),...Wh(),...Fn(),...St()},"VField"),fS=ke()({name:"VField",inheritAttrs:!1,props:{id:String,...P1(),...dS()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:o}=t;const{themeClasses:r}=Ht(e),{loaderClasses:s}=Uh(e),{focusClasses:a,isFocused:l,focus:u,blur:c}=$h(e),{InputIcon:d}=C1(e),{roundedClasses:f}=Gn(e),{rtlClasses:h}=Wi(),g=z(()=>e.dirty||e.active),m=z(()=>!e.singleLine&&!!(e.label||o.label)),p=bn(),y=z(()=>e.id||`input-${p}`),S=z(()=>`${y.value}-messages`),v=ne(),w=ne(),M=ne(),I=z(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:O,backgroundColorStyles:V}=Oi(de(e,"bgColor")),{textColorClasses:N,textColorStyles:$}=Vn(z(()=>e.error||e.disabled?void 0:g.value&&l.value?e.color:e.baseColor));ae(g,b=>{if(m.value){const P=v.value.$el,C=w.value.$el;requestAnimationFrame(()=>{const F=Jf(P),B=C.getBoundingClientRect(),R=B.x-F.x,L=B.y-F.y-(F.height/2-B.height/2),U=B.width/.75,j=Math.abs(U-F.width)>1?{maxWidth:Te(U)}:void 0,J=getComputedStyle(P),X=getComputedStyle(C),re=parseFloat(J.transitionDuration)*1e3||150,ee=parseFloat(X.getPropertyValue("--v-field-label-scale")),le=X.getPropertyValue("color");P.style.visibility="visible",C.style.visibility="hidden",Xo(P,{transform:`translate(${R}px, ${L}px) scale(${ee})`,color:le,...j},{duration:re,easing:bl,direction:b?"normal":"reverse"}).finished.then(()=>{P.style.removeProperty("visibility"),C.style.removeProperty("visibility")})})}},{flush:"post"});const H=z(()=>({isActive:g,isFocused:l,controlRef:M,blur:c,focus:u}));function E(b){b.target!==document.activeElement&&b.preventDefault()}function W(b){var P;b.key!=="Enter"&&b.key!==" "||(b.preventDefault(),b.stopPropagation(),(P=e["onClick:clear"])==null||P.call(e,new MouseEvent("click")))}return Ne(()=>{var R,L,U;const b=e.variant==="outlined",P=!!(o["prepend-inner"]||e.prependInnerIcon),C=!!(e.clearable||o.clear),F=!!(o["append-inner"]||e.appendInnerIcon||C),B=()=>o.label?o.label({...H.value,label:e.label,props:{for:y.value}}):e.label;return k("div",Ee({class:["v-field",{"v-field--active":g.value,"v-field--appended":F,"v-field--center-affix":e.centerAffix??!I.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":P,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!B(),[`v-field--variant-${e.variant}`]:!0},r.value,O.value,a.value,s.value,f.value,h.value,e.class],style:[V.value,e.style],onClick:E},n),[k("div",{class:"v-field__overlay"},null),k(cS,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:o.loader}),P&&k("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&k(d,{key:"prepend-icon",name:"prependInner"},null),(R=o["prepend-inner"])==null?void 0:R.call(o,H.value)]),k("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&m.value&&k(Pa,{key:"floating-label",ref:w,class:[N.value],floating:!0,for:y.value,style:$.value},{default:()=>[B()]}),m.value&&k(Pa,{key:"label",ref:v,for:y.value},{default:()=>[B()]}),(L=o.default)==null?void 0:L.call(o,{...H.value,props:{id:y.value,class:"v-field__input","aria-describedby":S.value},focus:u,blur:c})]),C&&k(D1,{key:"clear"},{default:()=>[en(k("div",{class:"v-field__clearable",onMousedown:j=>{j.preventDefault(),j.stopPropagation()}},[k(wt,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[o.clear?o.clear({...H.value,props:{onKeydown:W,onFocus:u,onBlur:c,onClick:e["onClick:clear"]}}):k(d,{name:"clear",onKeydown:W,onFocus:u,onBlur:c},null)]})]),[[Sr,e.dirty]])]}),F&&k("div",{key:"append",class:"v-field__append-inner"},[(U=o["append-inner"])==null?void 0:U.call(o,H.value),e.appendInnerIcon&&k(d,{key:"append-icon",name:"appendInner"},null)]),k("div",{class:["v-field__outline",N.value],style:$.value},[b&&k(be,null,[k("div",{class:"v-field__outline__start"},null),m.value&&k("div",{class:"v-field__outline__notch"},[k(Pa,{ref:w,floating:!0,for:y.value},{default:()=>[B()]})]),k("div",{class:"v-field__outline__end"},null)]),I.value&&m.value&&k(Pa,{ref:w,floating:!0,for:y.value},{default:()=>[B()]})])])}),{controlRef:M}}});function m3(e){const t=Object.keys(fS.props).filter(n=>!Kf(n)&&n!=="class"&&n!=="style");return Ow(e,t)}const g3=["color","file","time","date","datetime-local","week","month"],jh=he({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Vh(),...dS()},"VTextField"),To=ke()({name:"VTextField",directives:{Intersect:M1},inheritAttrs:!1,props:jh(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:o}=t;const r=st(e,"modelValue"),{isFocused:s,focus:a,blur:l}=$h(e),u=z(()=>typeof e.counterValue=="function"?e.counterValue(r.value):typeof e.counterValue=="number"?e.counterValue:(r.value??"").toString().length),c=z(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),d=z(()=>["plain","underlined"].includes(e.variant));function f(I,O){var V,N;!e.autofocus||!I||(N=(V=O[0].target)==null?void 0:V.focus)==null||N.call(V)}const h=ne(),g=ne(),m=ne(),p=z(()=>g3.includes(e.type)||e.persistentPlaceholder||s.value||e.active);function y(){var I;m.value!==document.activeElement&&((I=m.value)==null||I.focus()),s.value||a()}function S(I){i("mousedown:control",I),I.target!==m.value&&(y(),I.preventDefault())}function v(I){y(),i("click:control",I)}function w(I){I.stopPropagation(),y(),Ue(()=>{r.value=null,gD(e["onClick:clear"],I)})}function M(I){var V;const O=I.target;if(r.value=O.value,(V=e.modelModifiers)!=null&&V.trim&&["text","search","password","tel","url"].includes(e.type)){const N=[O.selectionStart,O.selectionEnd];Ue(()=>{O.selectionStart=N[0],O.selectionEnd=N[1]})}}return Ne(()=>{const I=!!(o.counter||e.counter!==!1&&e.counter!=null),O=!!(I||o.details),[V,N]=qf(n),{modelValue:$,...H}=Ul.filterProps(e),E=m3(e);return k(Ul,Ee({ref:h,modelValue:r.value,"onUpdate:modelValue":W=>r.value=W,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":d.value},e.class],style:e.style},V,H,{centerAffix:!d.value,focused:s.value}),{...o,default:W=>{let{id:b,isDisabled:P,isDirty:C,isReadonly:F,isValid:B}=W;return k(fS,Ee({ref:g,onMousedown:S,onClick:v,"onClick:clear":w,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},E,{id:b.value,active:p.value||C.value,dirty:C.value||e.dirty,disabled:P.value,focused:s.value,error:B.value===!1}),{...o,default:R=>{let{props:{class:L,...U}}=R;const j=en(k("input",Ee({ref:m,value:r.value,onInput:M,autofocus:e.autofocus,readonly:F.value,disabled:P.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:y,onBlur:l},U,N),null),[[No("intersect"),{handler:f},null,{once:!0}]]);return k(be,null,[e.prefix&&k("span",{class:"v-text-field__prefix"},[k("span",{class:"v-text-field__prefix__text"},[e.prefix])]),o.default?k("div",{class:L,"data-no-activator":""},[o.default(),j]):$n(j,{class:L}),e.suffix&&k("span",{class:"v-text-field__suffix"},[k("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:O?W=>{var b;return k(be,null,[(b=o.details)==null?void 0:b.call(o,W),I&&k(be,null,[k("span",null,null),k(c3,{active:e.persistentCounter||s.value,value:u.value,max:c.value,disabled:e.disabled},o.counter)])])}:void 0})}),Tu({},h,g,m)}}),p3=he({renderless:Boolean,...ze()},"VVirtualScrollItem"),v3=ke()({name:"VVirtualScrollItem",inheritAttrs:!1,props:p3(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:o}=t;const{resizeRef:r,contentRect:s}=ys(void 0,"border");ae(()=>{var a;return(a=s.value)==null?void 0:a.height},a=>{a!=null&&i("update:height",a)}),Ne(()=>{var a,l;return e.renderless?k(be,null,[(a=o.default)==null?void 0:a.call(o,{itemRef:r})]):k("div",Ee({ref:r,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=o.default)==null?void 0:l.call(o)])})}}),y3=-1,b3=1,Oc=100,w3=he({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function _3(e,t){const n=sh(),i=Se(0);dn(()=>{i.value=parseFloat(e.itemHeight||0)});const o=Se(0),r=Se(Math.ceil((parseInt(e.height)||n.height.value)/(i.value||16))||1),s=Se(0),a=Se(0),l=ne(),u=ne();let c=0;const{resizeRef:d,contentRect:f}=ys();dn(()=>{d.value=l.value});const h=z(()=>{var R;return l.value===document.documentElement?n.height.value:((R=f.value)==null?void 0:R.height)||parseInt(e.height)||0}),g=z(()=>!!(l.value&&u.value&&h.value&&i.value));let m=Array.from({length:t.value.length}),p=Array.from({length:t.value.length});const y=Se(0);let S=-1;function v(R){return m[R]||i.value}const w=hD(()=>{const R=performance.now();p[0]=0;const L=t.value.length;for(let U=1;U<=L-1;U++)p[U]=(p[U-1]||0)+v(U-1);y.value=Math.max(y.value,performance.now()-R)},y),M=ae(g,R=>{R&&(M(),c=u.value.offsetTop,w.immediate(),P(),~S&&Ue(()=>{We&&window.requestAnimationFrame(()=>{F(S),S=-1})}))});it(()=>{w.clear()});function I(R,L){const U=m[R],j=i.value;i.value=j?Math.min(i.value,L):L,(U!==L||j!==i.value)&&(m[R]=L,w())}function O(R){return R=si(R,0,t.value.length-1),p[R]||0}function V(R){return S3(p,R)}let N=0,$=0,H=0;ae(h,(R,L)=>{L&&(P(),R<L&&requestAnimationFrame(()=>{$=0,P()}))});function E(){if(!l.value||!u.value)return;const R=l.value.scrollTop,L=performance.now();L-H>500?($=Math.sign(R-N),c=u.value.offsetTop):$=R-N,N=R,H=L,P()}function W(){!l.value||!u.value||($=0,H=0,P())}let b=-1;function P(){cancelAnimationFrame(b),b=requestAnimationFrame(C)}function C(){if(!l.value||!h.value)return;const R=N-c,L=Math.sign($),U=Math.max(0,R-Oc),j=si(V(U),0,t.value.length),J=R+h.value+Oc,X=si(V(J)+1,j+1,t.value.length);if((L!==y3||j<o.value)&&(L!==b3||X>r.value)){const re=O(o.value)-O(j),ee=O(X)-O(r.value);Math.max(re,ee)>Oc?(o.value=j,r.value=X):(j<=0&&(o.value=j),X>=t.value.length&&(r.value=X))}s.value=O(o.value),a.value=O(t.value.length)-O(r.value)}function F(R){const L=O(R);!l.value||R&&!L?S=R:l.value.scrollTop=L}const B=z(()=>t.value.slice(o.value,r.value).map((R,L)=>({raw:R,index:L+o.value})));return ae(t,()=>{m=Array.from({length:t.value.length}),p=Array.from({length:t.value.length}),w.immediate(),P()},{deep:!0}),{calculateVisibleItems:P,containerRef:l,markerRef:u,computedItems:B,paddingTop:s,paddingBottom:a,scrollToIndex:F,handleScroll:E,handleScrollend:W,handleItemResize:I}}function S3(e,t){let n=e.length-1,i=0,o=0,r=null,s=-1;if(e[n]<t)return n;for(;i<=n;)if(o=i+n>>1,r=e[o],r>t)n=o-1;else if(r<t)s=o,i=o+1;else return r===t?o:i;return s}const C3=he({items:{type:Array,default:()=>[]},renderless:Boolean,...w3(),...ze(),...Ui()},"VVirtualScroll"),hS=ke()({name:"VVirtualScroll",props:C3(),setup(e,t){let{slots:n}=t;const i=bt("VVirtualScroll"),{dimensionStyles:o}=ji(e),{calculateVisibleItems:r,containerRef:s,markerRef:a,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:d,paddingTop:f,paddingBottom:h,computedItems:g}=_3(e,de(e,"items"));return Eo(()=>e.renderless,()=>{function m(){var S,v;const y=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";s.value===document.documentElement?(document[y]("scroll",l,{passive:!0}),document[y]("scrollend",u)):((S=s.value)==null||S[y]("scroll",l,{passive:!0}),(v=s.value)==null||v[y]("scrollend",u))}_t(()=>{s.value=Kw(i.vnode.el,!0),m(!0)}),it(m)}),Ne(()=>{const m=g.value.map(p=>k(v3,{key:p.index,renderless:e.renderless,"onUpdate:height":y=>c(p.index,y)},{default:y=>{var S;return(S=n.default)==null?void 0:S.call(n,{item:p.raw,index:p.index,...y})}}));return e.renderless?k(be,null,[k("div",{ref:a,class:"v-virtual-scroll__spacer",style:{paddingTop:Te(f.value)}},null),m,k("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Te(h.value)}},null)]):k("div",{ref:s,class:["v-virtual-scroll",e.class],onScrollPassive:l,onScrollend:u,style:[o.value,e.style]},[k("div",{ref:a,class:"v-virtual-scroll__container",style:{paddingTop:Te(f.value),paddingBottom:Te(h.value)}},[m])])}),{calculateVisibleItems:r,scrollToIndex:d}}});function mS(e,t){const n=Se(!1);let i;function o(a){cancelAnimationFrame(i),n.value=!0,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{n.value=!1})})}async function r(){await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>{if(n.value){const l=ae(n,()=>{l(),a()})}else a()})}async function s(a){var c,d;if(a.key==="Tab"&&((c=t.value)==null||c.focus()),!["PageDown","PageUp","Home","End"].includes(a.key))return;const l=(d=e.value)==null?void 0:d.$el;if(!l)return;(a.key==="Home"||a.key==="End")&&l.scrollTo({top:a.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await r();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(a.key==="PageDown"||a.key==="Home"){const f=l.getBoundingClientRect().top;for(const h of u)if(h.getBoundingClientRect().top>=f){h.focus();break}}else{const f=l.getBoundingClientRect().bottom;for(const h of[...u].reverse())if(h.getBoundingClientRect().bottom<=f){h.focus();break}}}return{onScrollPassive:o,onKeydown:s}}const gS=he({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Be,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...q1({itemChildren:!1})},"Select"),x3=he({...gS(),...Gi(jh({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Dr({transition:{component:k1}})},"VSelect");ke()({name:"VSelect",props:x3(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:i}=du(),o=ne(),r=ne(),s=ne(),a=st(e,"menu"),l=z({get:()=>a.value,set:R=>{var L;a.value&&!R&&((L=r.value)!=null&&L.ΨopenChildren.size)||(a.value=R)}}),{items:u,transformIn:c,transformOut:d}=Z1(e),f=st(e,"modelValue",[],R=>c(R===null?[null]:Wt(R)),R=>{const L=d(R);return e.multiple?L:L[0]??null}),h=z(()=>typeof e.counterValue=="function"?e.counterValue(f.value):typeof e.counterValue=="number"?e.counterValue:f.value.length),g=Rh(e),m=z(()=>f.value.map(R=>R.value)),p=Se(!1),y=z(()=>l.value?e.closeText:e.openText);let S="",v;const w=z(()=>e.hideSelected?u.value.filter(R=>!f.value.some(L=>e.valueComparator(L,R))):u.value),M=z(()=>e.hideNoData&&!w.value.length||g.isReadonly.value||g.isDisabled.value),I=z(()=>{var R;return{...e.menuProps,activatorProps:{...((R=e.menuProps)==null?void 0:R.activatorProps)||{},"aria-haspopup":"listbox"}}}),O=ne(),V=mS(O,o);function N(R){e.openOnClear&&(l.value=!0)}function $(){M.value||(l.value=!l.value)}function H(R){pd(R)&&E(R)}function E(R){var J,X;if(!R.key||g.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(R.key)&&R.preventDefault(),["Enter","ArrowDown"," "].includes(R.key)&&(l.value=!0),["Escape","Tab"].includes(R.key)&&(l.value=!1),R.key==="Home"?(J=O.value)==null||J.focus("first"):R.key==="End"&&((X=O.value)==null||X.focus("last"));const L=1e3;if(e.multiple||!pd(R))return;const U=performance.now();U-v>L&&(S=""),S+=R.key.toLowerCase(),v=U;const j=u.value.find(re=>re.title.toLowerCase().startsWith(S));if(j!==void 0){f.value=[j];const re=w.value.indexOf(j);We&&window.requestAnimationFrame(()=>{var ee;re>=0&&((ee=s.value)==null||ee.scrollToIndex(re))})}}function W(R){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!R.props.disabled)if(e.multiple){const U=f.value.findIndex(J=>e.valueComparator(J.value,R.value)),j=L??!~U;if(~U){const J=j?[...f.value,R]:[...f.value];J.splice(U,1),f.value=J}else j&&(f.value=[...f.value,R])}else{const U=L!==!1;f.value=U?[R]:[],Ue(()=>{l.value=!1})}}function b(R){var L;(L=O.value)!=null&&L.$el.contains(R.relatedTarget)||(l.value=!1)}function P(){var R;e.eager&&((R=s.value)==null||R.calculateVisibleItems())}function C(){var R;p.value&&((R=o.value)==null||R.focus())}function F(R){p.value=!0}function B(R){if(R==null)f.value=[];else if(vl(o.value,":autofill")||vl(o.value,":-webkit-autofill")){const L=u.value.find(U=>U.title===R);L&&W(L)}else o.value&&(o.value.value="")}return ae(l,()=>{if(!e.hideSelected&&l.value&&f.value.length){const R=w.value.findIndex(L=>f.value.some(U=>e.valueComparator(U.value,L.value)));We&&window.requestAnimationFrame(()=>{var L;R>=0&&((L=s.value)==null||L.scrollToIndex(R))})}}),ae(()=>e.items,(R,L)=>{l.value||p.value&&!L.length&&R.length&&(l.value=!0)}),Ne(()=>{const R=!!(e.chips||n.chip),L=!!(!e.hideNoData||w.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),U=f.value.length>0,j=To.filterProps(e),J=U||!p.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return k(To,Ee({ref:o},j,{modelValue:f.value.map(X=>X.props.value).join(", "),"onUpdate:modelValue":B,focused:p.value,"onUpdate:focused":X=>p.value=X,validationValue:f.externalValue,counterValue:h.value,dirty:U,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":f.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:J,"onClick:clear":N,"onMousedown:control":$,onBlur:b,onKeydown:E,"aria-label":i(y.value),title:i(y.value)}),{...n,default:()=>k(be,null,[k(aS,Ee({ref:r,modelValue:l.value,"onUpdate:modelValue":X=>l.value=X,activator:"parent",contentClass:"v-select__content",disabled:M.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:P,onAfterLeave:C},I.value),{default:()=>[L&&k(Q1,Ee({ref:O,selected:m.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:X=>X.preventDefault(),onKeydown:H,onFocusin:F,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},V,e.listProps),{default:()=>{var X,re,ee;return[(X=n["prepend-item"])==null?void 0:X.call(n),!w.value.length&&!e.hideNoData&&(((re=n["no-data"])==null?void 0:re.call(n))??k(vr,{title:i(e.noDataText)},null)),k(hS,{ref:s,renderless:!0,items:w.value},{default:le=>{var we;let{item:ue,index:pe,itemRef:me}=le;const ce=Ee(ue.props,{ref:me,key:pe,onClick:()=>W(ue,null)});return((we=n.item)==null?void 0:we.call(n,{item:ue,index:pe,props:ce}))??k(vr,Ee(ce,{role:"option"}),{prepend:A=>{let{isSelected:_}=A;return k(be,null,[e.multiple&&!e.hideSelected?k(Wl,{key:ue.value,modelValue:_,ripple:!1,tabindex:"-1"},null):void 0,ue.props.prependAvatar&&k(Li,{image:ue.props.prependAvatar},null),ue.props.prependIcon&&k(Xe,{icon:ue.props.prependIcon},null)])}})}}),(ee=n["append-item"])==null?void 0:ee.call(n)]}})]}),f.value.map((X,re)=>{function ee(me){me.stopPropagation(),me.preventDefault(),W(X,!1)}const le={"onClick:close":ee,onKeydown(me){me.key!=="Enter"&&me.key!==" "||(me.preventDefault(),me.stopPropagation(),ee(me))},onMousedown(me){me.preventDefault(),me.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ue=R?!!n.chip:!!n.selection,pe=ue?Zf(R?n.chip({item:X,index:re,props:le}):n.selection({item:X,index:re})):void 0;if(!(ue&&!pe))return k("div",{key:X.value,class:"v-select__selection"},[R?n.chip?k(wt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:X.title}}},{default:()=>[pe]}):k(jl,Ee({key:"chip",closable:e.closableChips,size:"small",text:X.title,disabled:X.props.disabled},le),null):pe??k("span",{class:"v-select__selection-text"},[X.title,e.multiple&&re<f.value.length-1&&k("span",{class:"v-select__selection-comma"},[Zt(",")])])])})]),"append-inner":function(){var le;for(var X=arguments.length,re=new Array(X),ee=0;ee<X;ee++)re[ee]=arguments[ee];return k(be,null,[(le=n["append-inner"])==null?void 0:le.call(n,...re),e.menuIcon?k(Xe,{class:"v-select__menu-icon",icon:e.menuIcon},null):void 0])}})}),Tu({isFocused:p,menu:l,select:W},o)}});const E3=(e,t,n)=>e==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),k3=he({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function A3(e,t,n){var a;const i=[],o=(n==null?void 0:n.default)??E3,r=n!=null&&n.filterKeys?Wt(n.filterKeys):!1,s=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return i;e:for(let l=0;l<e.length;l++){const[u,c=u]=Wt(e[l]),d={},f={};let h=-1;if((t||s>0)&&!(n!=null&&n.noFilter)){if(typeof u=="object"){const p=r||Object.keys(c);for(const y of p){const S=Dn(c,y),v=(a=n==null?void 0:n.customKeyFilter)==null?void 0:a[y];if(h=v?v(S,t,u):o(S,t,u),h!==-1&&h!==!1)v?d[y]=h:f[y]=h;else if((n==null?void 0:n.filterMode)==="every")continue e}}else h=o(u,t,u),h!==-1&&h!==!1&&(f.title=h);const g=Object.keys(f).length,m=Object.keys(d).length;if(!g&&!m||(n==null?void 0:n.filterMode)==="union"&&m!==s&&!g||(n==null?void 0:n.filterMode)==="intersection"&&(m!==s||!g))continue}i.push({index:l,matches:{...f,...d}})}return i}function D3(e,t,n,i){const o=ne([]),r=ne(new Map),s=z(()=>Q(t));dn(()=>{const l=typeof n=="function"?n():Q(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=A3(s.value,u,{customKeyFilter:{...e.customKeyFilter,...Q(i==null?void 0:i.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=Q(t),f=[],h=new Map;c.forEach(g=>{let{index:m,matches:p}=g;const y=d[m];f.push(y),h.set(y.value,p)}),o.value=f,r.value=h});function a(l){return r.value.get(l.value)}return{filteredItems:o,filteredMatches:r,getMatches:a}}function P3(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?k(be,null,[k("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),k("span",{class:"v-combobox__mask"},[e.substr(t,n)]),k("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const I3=he({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...k3({filterKeys:["title"]}),...gS({hideNoData:!0,returnObject:!0}),...Gi(jh({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Dr({transition:!1})},"VCombobox"),T3=ke()({name:"VCombobox",props:I3(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var we;let{emit:n,slots:i}=t;const{t:o}=du(),r=ne(),s=Se(!1),a=Se(!0),l=Se(!1),u=ne(),c=ne(),d=st(e,"menu"),f=z({get:()=>d.value,set:A=>{var _;d.value&&!A&&((_=u.value)!=null&&_.ΨopenChildren.size)||(d.value=A)}}),h=Se(-1);let g=!1;const m=z(()=>{var A;return(A=r.value)==null?void 0:A.color}),p=z(()=>f.value?e.closeText:e.openText),{items:y,transformIn:S,transformOut:v}=Z1(e),{textColorClasses:w,textColorStyles:M}=Vn(m),I=st(e,"modelValue",[],A=>S(Wt(A)),A=>{const _=v(A);return e.multiple?_:_[0]??null}),O=Rh(e),V=z(()=>!!(e.chips||i.chip)),N=z(()=>V.value||!!i.selection),$=Se(!e.multiple&&!N.value?((we=I.value[0])==null?void 0:we.title)??"":""),H=z({get:()=>$.value,set:A=>{var _;if($.value=A??"",!e.multiple&&!N.value&&(I.value=[Di(e,A)]),A&&e.multiple&&((_=e.delimiters)!=null&&_.length)){const x=A.split(new RegExp(`(?:${e.delimiters.join("|")})+`));x.length>1&&(x.forEach(D=>{D=D.trim(),D&&ue(Di(e,D))}),$.value="")}A||(h.value=-1),a.value=!A}}),E=z(()=>typeof e.counterValue=="function"?e.counterValue(I.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?I.value.length:H.value.length);ae($,A=>{g?Ue(()=>g=!1):s.value&&!f.value&&(f.value=!0),n("update:search",A)}),ae(I,A=>{var _;!e.multiple&&!N.value&&($.value=((_=A[0])==null?void 0:_.title)??"")});const{filteredItems:W,getMatches:b}=D3(e,y,()=>a.value?"":H.value),P=z(()=>e.hideSelected?W.value.filter(A=>!I.value.some(_=>_.value===A.value)):W.value),C=z(()=>I.value.map(A=>A.value)),F=z(()=>{var _;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&H.value===((_=P.value[0])==null?void 0:_.title))&&P.value.length>0&&!a.value&&!l.value}),B=z(()=>e.hideNoData&&!P.value.length||O.isReadonly.value||O.isDisabled.value),R=ne(),L=mS(R,r);function U(A){g=!0,e.openOnClear&&(f.value=!0)}function j(){B.value||(f.value=!0)}function J(A){B.value||(s.value&&(A.preventDefault(),A.stopPropagation()),f.value=!f.value)}function X(A){var _;pd(A)&&((_=r.value)==null||_.focus())}function re(A){var D;if(fD(A)||O.isReadonly.value)return;const _=r.value.selectionStart,x=I.value.length;if((h.value>-1||["Enter","ArrowDown","ArrowUp"].includes(A.key))&&A.preventDefault(),["Enter","ArrowDown"].includes(A.key)&&(f.value=!0),["Escape"].includes(A.key)&&(f.value=!1),["Enter","Escape","Tab"].includes(A.key)&&(F.value&&["Enter","Tab"].includes(A.key)&&!I.value.some(T=>{let{value:G}=T;return G===P.value[0].value})&&ue(W.value[0]),a.value=!0),A.key==="ArrowDown"&&F.value&&((D=R.value)==null||D.focus("next")),A.key==="Enter"&&H.value&&(ue(Di(e,H.value)),N.value&&($.value="")),["Backspace","Delete"].includes(A.key)){if(!e.multiple&&N.value&&I.value.length>0&&!H.value)return ue(I.value[0],!1);if(~h.value){const T=h.value;ue(I.value[h.value],!1),h.value=T>=x-1?x-2:T}else A.key==="Backspace"&&!H.value&&(h.value=x-1)}if(e.multiple){if(A.key==="ArrowLeft"){if(h.value<0&&_>0)return;const T=h.value>-1?h.value-1:x-1;I.value[T]?h.value=T:(h.value=-1,r.value.setSelectionRange(H.value.length,H.value.length))}if(A.key==="ArrowRight"){if(h.value<0)return;const T=h.value+1;I.value[T]?h.value=T:(h.value=-1,r.value.setSelectionRange(0,0))}}}function ee(){var A;e.eager&&((A=c.value)==null||A.calculateVisibleItems())}function le(){var A;s.value&&(a.value=!0,(A=r.value)==null||A.focus())}function ue(A){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!A||A.props.disabled))if(e.multiple){const x=I.value.findIndex(T=>e.valueComparator(T.value,A.value)),D=_??!~x;if(~x){const T=D?[...I.value,A]:[...I.value];T.splice(x,1),I.value=T}else D&&(I.value=[...I.value,A]);e.clearOnSelect&&(H.value="")}else{const x=_!==!1;I.value=x?[A]:[],$.value=x&&!N.value?A.title:"",Ue(()=>{f.value=!1,a.value=!0})}}function pe(A){s.value=!0,setTimeout(()=>{l.value=!0})}function me(A){l.value=!1}function ce(A){(A==null||A===""&&!e.multiple&&!N.value)&&(I.value=[])}return ae(s,(A,_)=>{if(!(A||A===_)&&(h.value=-1,f.value=!1,H.value)){if(e.multiple){ue(Di(e,H.value));return}if(!N.value)return;I.value.some(x=>{let{title:D}=x;return D===H.value})?$.value="":ue(Di(e,H.value))}}),ae(f,()=>{if(!e.hideSelected&&f.value&&I.value.length){const A=P.value.findIndex(_=>I.value.some(x=>e.valueComparator(x.value,_.value)));We&&window.requestAnimationFrame(()=>{var _;A>=0&&((_=c.value)==null||_.scrollToIndex(A))})}}),ae(()=>e.items,(A,_)=>{f.value||s.value&&!_.length&&A.length&&(f.value=!0)}),Ne(()=>{const A=!!(!e.hideNoData||P.value.length||i["prepend-item"]||i["append-item"]||i["no-data"]),_=I.value.length>0,x=To.filterProps(e);return k(To,Ee({ref:r},x,{modelValue:H.value,"onUpdate:modelValue":[D=>H.value=D,ce],focused:s.value,"onUpdate:focused":D=>s.value=D,validationValue:I.externalValue,counterValue:E.value,dirty:_,class:["v-combobox",{"v-combobox--active-menu":f.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!N.value,"v-combobox--selecting-index":h.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:O.isReadonly.value,placeholder:_?void 0:e.placeholder,"onClick:clear":U,"onMousedown:control":j,onKeydown:re}),{...i,default:()=>k(be,null,[k(aS,Ee({ref:u,modelValue:f.value,"onUpdate:modelValue":D=>f.value=D,activator:"parent",contentClass:"v-combobox__content",disabled:B.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:ee,onAfterLeave:le},e.menuProps),{default:()=>[A&&k(Q1,Ee({ref:R,selected:C.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:D=>D.preventDefault(),onKeydown:X,onFocusin:pe,onFocusout:me,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},L,e.listProps),{default:()=>{var D,T,G;return[(D=i["prepend-item"])==null?void 0:D.call(i),!P.value.length&&!e.hideNoData&&(((T=i["no-data"])==null?void 0:T.call(i))??k(vr,{title:o(e.noDataText)},null)),k(hS,{ref:c,renderless:!0,items:P.value},{default:K=>{var te;let{item:Y,index:Z,itemRef:q}=K;const fe=Ee(Y.props,{ref:q,key:Z,active:F.value&&Z===0?!0:void 0,onClick:()=>ue(Y,null)});return((te=i.item)==null?void 0:te.call(i,{item:Y,index:Z,props:fe}))??k(vr,Ee(fe,{role:"option"}),{prepend:oe=>{let{isSelected:ve}=oe;return k(be,null,[e.multiple&&!e.hideSelected?k(Wl,{key:Y.value,modelValue:ve,ripple:!1,tabindex:"-1"},null):void 0,Y.props.prependAvatar&&k(Li,{image:Y.props.prependAvatar},null),Y.props.prependIcon&&k(Xe,{icon:Y.props.prependIcon},null)])},title:()=>{var oe,ve;return a.value?Y.title:P3(Y.title,(oe=b(Y))==null?void 0:oe.title,((ve=H.value)==null?void 0:ve.length)??0)}})}}),(G=i["append-item"])==null?void 0:G.call(i)]}})]}),I.value.map((D,T)=>{function G(q){q.stopPropagation(),q.preventDefault(),ue(D,!1)}const K={"onClick:close":G,onKeydown(q){q.key!=="Enter"&&q.key!==" "||(q.preventDefault(),q.stopPropagation(),G(q))},onMousedown(q){q.preventDefault(),q.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Y=V.value?!!i.chip:!!i.selection,Z=Y?Zf(V.value?i.chip({item:D,index:T,props:K}):i.selection({item:D,index:T})):void 0;if(!(Y&&!Z))return k("div",{key:D.value,class:["v-combobox__selection",T===h.value&&["v-combobox__selection--selected",w.value]],style:T===h.value?M.value:{}},[V.value?i.chip?k(wt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:D.title}}},{default:()=>[Z]}):k(jl,Ee({key:"chip",closable:e.closableChips,size:"small",text:D.title,disabled:D.props.disabled},K),null):Z??k("span",{class:"v-combobox__selection-text"},[D.title,e.multiple&&T<I.value.length-1&&k("span",{class:"v-combobox__selection-comma"},[Zt(",")])])])})]),"append-inner":function(){var K;for(var D=arguments.length,T=new Array(D),G=0;G<D;G++)T[G]=arguments[G];return k(be,null,[(K=i["append-inner"])==null?void 0:K.call(i,...T),(!e.hideNoData||e.items.length)&&e.menuIcon?k(Xe,{class:"v-combobox__menu-icon",icon:e.menuIcon,onMousedown:J,onClick:pD,"aria-label":o(p.value),title:o(p.value),tabindex:"-1"},null):void 0])}})}),Tu({isFocused:s,isPristine:a,menu:f,search:H,selectionIndex:h,filteredItems:W,select:ue},r)}}),M3=Pe({__name:"ComponentArgInput",props:ob({name:{},arg:{},instance:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=_b(e,"modelValue"),n=z(()=>"type"in e.arg.schema?e.arg.schema.type:"unknown");return(i,o)=>Q(n)==="string"?(se(),Oe(To,{key:0,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r),label:("getDisplayName"in i?i.getDisplayName:Q(as))(i.name,i.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact","hide-details":""},null,8,["modelValue","label"])):Q(n)==="boolean"?(se(),Oe(YH,{key:1,modelValue:t.value,"onUpdate:modelValue":o[1]||(o[1]=r=>t.value=r),label:("getDisplayName"in i?i.getDisplayName:Q(as))(i.name,i.arg.meta),density:"compact","hide-details":""},null,8,["modelValue","label"])):Q(n)==="array"?(se(),Oe(T3,{key:2,modelValue:t.value,"onUpdate:modelValue":o[2]||(o[2]=r=>t.value=r),label:("getDisplayName"in i?i.getDisplayName:Q(as))(i.name,i.arg.meta),variant:"outlined",density:"compact",multiple:"",chips:"","hide-details":""},null,8,["modelValue","label"])):dt("",!0)}}),N3="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let O3=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=N3[n[e]&63];return t};function ro(e){return typeof e=="function"?e():Q(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Rv=()=>{};function $3(e,t){function n(...i){return new Promise((o,r)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(r)})}return n}function R3(e,t={}){let n,i,o=Rv;const r=a=>{clearTimeout(a),o(),o=Rv};return a=>{const l=ro(e),u=ro(t.maxWait);return n&&r(n),l<=0||u!==void 0&&u<=0?(i&&(r(i),i=null),Promise.resolve(a())):new Promise((c,d)=>{o=t.rejectOnCancel?d:c,u&&!i&&(i=setTimeout(()=>{n&&r(n),i=null,c(a())},u)),n=setTimeout(()=>{i&&r(i),i=null,c(a())},l)})}}function Vv(e,t=!1,n="Timeout"){return new Promise((i,o)=>{setTimeout(t?()=>o(n):i,e)})}function Yh(e,t=200,n={}){return $3(R3(t,n),e)}function V3(e,t=200,n={}){const i=ne(e.value),o=Yh(()=>{i.value=e.value},t,n);return ae(e,()=>o()),i}function Lv(e,t){return z({get(){var n;return(n=e.value)!=null?n:t},set(n){e.value=n}})}function af(e,t=!1){function n(d,{flush:f="sync",deep:h=!1,timeout:g,throwOnTimeout:m}={}){let p=null;const S=[new Promise(v=>{p=ae(e,w=>{d(w)!==t&&(p==null||p(),v(w))},{flush:f,deep:h,immediate:!0})})];return g!=null&&S.push(Vv(g,m).then(()=>ro(e)).finally(()=>p==null?void 0:p())),Promise.race(S)}function i(d,f){if(!Ve(d))return n(w=>w===d,f);const{flush:h="sync",deep:g=!1,timeout:m,throwOnTimeout:p}=f??{};let y=null;const v=[new Promise(w=>{y=ae([e,d],([M,I])=>{t!==(M===I)&&(y==null||y(),w(M))},{flush:h,deep:g,immediate:!0})})];return m!=null&&v.push(Vv(m,p).then(()=>ro(e)).finally(()=>(y==null||y(),ro(e)))),Promise.race(v)}function o(d){return n(f=>!!f,d)}function r(d){return i(null,d)}function s(d){return i(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,f){return n(h=>{const g=Array.from(h);return g.includes(d)||g.includes(ro(d))},f)}function u(d){return c(1,d)}function c(d=1,f){let h=-1;return n(()=>(h+=1,h>=d),f)}return Array.isArray(ro(e))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return af(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:o,toBeNull:r,toBeNaN:a,toBeUndefined:s,changed:u,changedTimes:c,get not(){return af(e,!t)}}}function L3(e){return af(e)}const Kh=yw("library",()=>{const{$client:e}=lt(),{data:t,status:n}=e.library.get.useQuery(),i=Lv(z(()=>{var u;return(u=t.value)==null?void 0:u.components}),{}),o=Lv(z(()=>{var u;return(u=t.value)==null?void 0:u.entities}),{});(async()=>{await e.library.canWatch.query()&&e.library.watch.subscribe(void 0,{onData(c){console.log("Library updated",c),t.value=c}})})();const s=ne(""),a=V3(s,100),l=z(()=>{if(!a.value)return Object.values(i.value);const u=a.value.toLowerCase();return Object.values(i.value).filter(c=>{var d,f;return((d=c.meta.displayName)==null?void 0:d.toLowerCase().includes(u))||((f=c.meta.description)==null?void 0:f.toLowerCase().includes(u))||c.type.toLowerCase().includes(u)})});return{status:n,components:i,entities:o,search:s,filteredComponents:l}});function Mu(){return Je("main")}function z3(){const{viewport:e}=Mu(),{$client:t}=lt(),n=Yh(o=>t.workspace.setViewport.mutate(o),200);return ae(e,n),{getViewport:async()=>t.workspace.viewport.query()}}const qh=yw("instance",()=>{const{$client:e}=lt(),t=ne("default"),n=Kh(),{onNodesInitialized:i,addNodes:o,addEdges:r,updateNode:s,updateNodeData:a,updateEdge:l,onNodeDragStop:u,onConnect:c,onEdgeUpdate:d,onEdgeUpdateEnd:f,findNode:h,removeEdges:g,removeNodes:m,getNodes:p}=Mu(),y=N=>({id:N.id,type:"component",data:{component:n.components[N.type],instance:N},position:N.position});ae(()=>n,()=>{for(const N of p.value)a(N.id,{component:n.components[N.data.component.type]})},{deep:!0});const S=(N,$)=>{const H=N.inputs[$],W=n.components[N.type].inputs[$],b=n.entities[W.type];return{id:`${H.instanceId}:${H.output}->${N.id}:${$}`,type:"smoothstep",source:H.instanceId,sourceHandle:H.output,target:N.id,targetHandle:$,animated:!0,updatable:!0,deletable:!0,selectable:!1,style:{stroke:b.meta.color,"stroke-width":2},pathOptions:{offset:40,borderRadius:20}}},v=async()=>{const N=await e.project.getInstances.query({projectId:t.value});await L3(z(()=>n.status)).toBe("success");for(const $ of Object.values(N))o(y($));for(const $ of Object.values(N))for(const H of Object.keys($.inputs))r(S($,H))},w=N=>{e.project.updateInstance.mutate({projectId:t.value,instance:N})};v(),u(({node:N})=>{N.data.instance.position.x===N.position.x&&N.data.instance.position.y===N.position.y||(N.data.instance.position=N.position,w(N.data.instance))}),c(N=>{const $=h(N.source),H=h(N.target);if(!$||!H)return;const E=$.data.instance,W=H.data.instance;W.inputs[N.targetHandle]={instanceId:E.id,output:N.sourceHandle},r(S(W,N.targetHandle)),w(W)});let M=!1;d(({edge:N,connection:$})=>{M=!0;const H=h(N.target);H.data.instance.inputs[N.targetHandle]={instanceId:N.source,output:N.sourceHandle},l(N,$),w(H.data.instance)}),f(({edge:N})=>{if(M){M=!1;return}const $=h(N.target);delete $.data.instance.inputs[N.sourceHandle],g(N),w($.data.instance)});const I=async(N,$)=>{const H={id:O3(),type:N,name:"test",position:$,args:{},inputs:{}};await new Promise(E=>{const{off:W}=i(()=>{s(H.id,b=>{const P={x:b.position.x-b.dimensions.width/2,y:b.position.y-b.dimensions.height/2};return H.position=P,console.log(P),{position:P}}),W(),E()});o(y(H))}),w(H)},O=Yh(async N=>{w(N)},500);return{createInstance:I,updateInstance:O,deleteInstance:async N=>{m(N.id),await e.project.deleteInstance.mutate({projectId:t.value,instanceKey:N.id})}}});function B3(e,t){return t.default?e===t.default:Array.isArray(e)?e.length===0:!e}function H3(e,t){const n={};for(const i in e)B3(e[i],t[i].schema)||(n[i]=e[i]);return n}function F3(e){return Array.isArray(e)?e.join(", "):String(e)}const pS=he({baseColor:String,divided:Boolean,...Oo(),...ze(),...Hn(),...Pr(),...Fn(),...Ct(),...St(),...Yi()},"VBtnGroup"),zv=ke()({name:"VBtnGroup",props:pS(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=Ht(e),{densityClasses:o}=fi(e),{borderClasses:r}=$o(e),{elevationClasses:s}=Ir(e),{roundedClasses:a}=Gn(e);Er({VBtn:{height:"auto",baseColor:de(e,"baseColor"),color:de(e,"color"),density:de(e,"density"),flat:!0,variant:de(e,"variant")}}),Ne(()=>k(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},i.value,r.value,o.value,s.value,a.value,e.class],style:e.style},n))}}),vS=Symbol.for("vuetify:v-btn-toggle"),G3=he({...pS(),...Lh()},"VBtnToggle");ke()({name:"VBtnToggle",props:G3(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:i,next:o,prev:r,select:s,selected:a}=zh(e,vS);return Ne(()=>{const l=zv.filterProps(e);return k(zv,Ee({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:i,next:o,prev:r,select:s,selected:a})]}})}),{next:o,prev:r,select:s}}});const W3=he({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ze(),...Ys(),...Ct({tag:"div"}),...St()},"VProgressCircular"),U3=ke()({name:"VProgressCircular",props:W3(),setup(e,t){let{slots:n}=t;const i=20,o=2*Math.PI*i,r=ne(),{themeClasses:s}=Ht(e),{sizeClasses:a,sizeStyles:l}=Ks(e),{textColorClasses:u,textColorStyles:c}=Vn(de(e,"color")),{textColorClasses:d,textColorStyles:f}=Vn(de(e,"bgColor")),{intersectionRef:h,isIntersecting:g}=lS(),{resizeRef:m,contentRect:p}=ys(),y=z(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),S=z(()=>Number(e.width)),v=z(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(S.value,32)),w=z(()=>i/(1-S.value/v.value)*2),M=z(()=>S.value/v.value*w.value),I=z(()=>Te((100-y.value)/100*o));return dn(()=>{h.value=r.value,m.value=r.value}),Ne(()=>k(e.tag,{ref:r,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},s.value,a.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:y.value},{default:()=>[k("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${w.value} ${w.value}`},[k("circle",{class:["v-progress-circular__underlay",d.value],style:f.value,fill:"transparent",cx:"50%",cy:"50%",r:i,"stroke-width":M.value,"stroke-dasharray":o,"stroke-dashoffset":0},null),k("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:i,"stroke-width":M.value,"stroke-dasharray":o,"stroke-dashoffset":I.value},null)]),n.default&&k("div",{class:"v-progress-circular__content"},[n.default({value:y.value})])]})),{}}}),j3=["static","relative","fixed","absolute","sticky"],yS=he({position:{type:String,validator:e=>j3.includes(e)}},"position");function bS(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln();return{positionClasses:z(()=>e.position?`${t}--${e.position}`:void 0)}}function Y3(e,t){ae(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&Ue(()=>{t(!0)})},{immediate:!0})}const K3=he({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:vS},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Be,appendIcon:Be,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Oo(),...ze(),...Hn(),...Ui(),...Pr(),...O1(),...Wh(),...Fh(),...yS(),...Fn(),...Iu(),...Ys(),...Ct({tag:"button"}),...St(),...Yi({variant:"elevated"})},"VBtn"),Zo=ke()({name:"VBtn",props:K3(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:o}=Ht(e),{borderClasses:r}=$o(e),{densityClasses:s}=fi(e),{dimensionStyles:a}=ji(e),{elevationClasses:l}=Ir(e),{loaderClasses:u}=Uh(e),{locationStyles:c}=Gh(e),{positionClasses:d}=bS(e),{roundedClasses:f}=Gn(e),{sizeClasses:h,sizeStyles:g}=Ks(e),m=$1(e,e.symbol,!1),p=Pu(e,n),y=z(()=>{var H;return e.active!==void 0?e.active:p.isLink.value?(H=p.isActive)==null?void 0:H.value:m==null?void 0:m.isSelected.value}),S=z(()=>y.value?e.activeColor??e.color:e.color),v=z(()=>{var E,W;return{color:(m==null?void 0:m.isSelected.value)&&(!p.isLink.value||((E=p.isActive)==null?void 0:E.value))||!m||((W=p.isActive)==null?void 0:W.value)?S.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:w,colorStyles:M,variantClasses:I}=Zs(v),O=z(()=>(m==null?void 0:m.disabled.value)||e.disabled),V=z(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),N=z(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function $(H){var E;O.value||p.isLink.value&&(H.metaKey||H.ctrlKey||H.shiftKey||H.button!==0||n.target==="_blank")||((E=p.navigate)==null||E.call(p,H),m==null||m.toggle())}return Y3(p,m==null?void 0:m.select),Ne(()=>{const H=p.isLink.value?"a":e.tag,E=!!(e.prependIcon||i.prepend),W=!!(e.appendIcon||i.append),b=!!(e.icon&&e.icon!==!0);return en(k(H,Ee({type:H==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":y.value,"v-btn--block":e.block,"v-btn--disabled":O.value,"v-btn--elevated":V.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},o.value,r.value,w.value,s.value,l.value,u.value,d.value,f.value,h.value,I.value,e.class],style:[M.value,a.value,c.value,g.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:O.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:$,value:N.value},p.linkProps),{default:()=>{var P;return[Xs(!0,"v-btn"),!e.icon&&E&&k("span",{key:"prepend",class:"v-btn__prepend"},[i.prepend?k(wt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},i.prepend):k(Xe,{key:"prepend-icon",icon:e.prependIcon},null)]),k("span",{class:"v-btn__content","data-no-activator":""},[!i.default&&b?k(Xe,{key:"content-icon",icon:e.icon},null):k(wt,{key:"content-defaults",disabled:!b,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var C;return[((C=i.default)==null?void 0:C.call(i))??e.text]}})]),!e.icon&&W&&k("span",{key:"append",class:"v-btn__append"},[i.append?k(wt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},i.append):k(Xe,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&k("span",{key:"loader",class:"v-btn__loader"},[((P=i.loader)==null?void 0:P.call(i))??k(U3,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[qs,!O.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}}),Kl=ke()({name:"VCardActions",props:ze(),setup(e,t){let{slots:n}=t;return Er({VBtn:{slim:!0,variant:"text"}}),Ne(()=>{var i;return k("div",{class:["v-card-actions",e.class],style:e.style},[(i=n.default)==null?void 0:i.call(n)])}),{}}}),q3=he({opacity:[Number,String],...ze(),...Ct()},"VCardSubtitle"),X3=ke()({name:"VCardSubtitle",props:q3(),setup(e,t){let{slots:n}=t;return Ne(()=>k(e.tag,{class:["v-card-subtitle",e.class],style:[{"--v-card-subtitle-opacity":e.opacity},e.style]},n)),{}}}),Z3=th("v-card-title"),J3=he({appendAvatar:String,appendIcon:Be,prependAvatar:String,prependIcon:Be,subtitle:[String,Number],title:[String,Number],...ze(),...Hn()},"VCardItem"),Q3=ke()({name:"VCardItem",props:J3(),setup(e,t){let{slots:n}=t;return Ne(()=>{var u;const i=!!(e.prependAvatar||e.prependIcon),o=!!(i||n.prepend),r=!!(e.appendAvatar||e.appendIcon),s=!!(r||n.append),a=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return k("div",{class:["v-card-item",e.class],style:e.style},[o&&k("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?k(wt,{key:"prepend-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):k(be,null,[e.prependAvatar&&k(Li,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&k(Xe,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),k("div",{class:"v-card-item__content"},[a&&k(Z3,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&k(X3,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),s&&k("div",{key:"append",class:"v-card-item__append"},[n.append?k(wt,{key:"append-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):k(be,null,[e.appendIcon&&k(Xe,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&k(Li,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])])}),{}}}),e5=he({opacity:[Number,String],...ze(),...Ct()},"VCardText"),Xh=ke()({name:"VCardText",props:e5(),setup(e,t){let{slots:n}=t;return Ne(()=>k(e.tag,{class:["v-card-text",e.class],style:[{"--v-card-text-opacity":e.opacity},e.style]},n)),{}}}),t5=he({appendAvatar:String,appendIcon:Be,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Be,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...Oo(),...ze(),...Hn(),...Ui(),...Pr(),...Wh(),...Fh(),...yS(),...Fn(),...Iu(),...Ct(),...St(),...Yi({variant:"elevated"})},"VCard"),wS=ke()({name:"VCard",directives:{Ripple:qs},props:t5(),setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:o}=Ht(e),{borderClasses:r}=$o(e),{colorClasses:s,colorStyles:a,variantClasses:l}=Zs(e),{densityClasses:u}=fi(e),{dimensionStyles:c}=ji(e),{elevationClasses:d}=Ir(e),{loaderClasses:f}=Uh(e),{locationStyles:h}=Gh(e),{positionClasses:g}=bS(e),{roundedClasses:m}=Gn(e),p=Pu(e,n),y=z(()=>e.link!==!1&&p.isLink.value),S=z(()=>!e.disabled&&e.link!==!1&&(e.link||p.isClickable.value));return Ne(()=>{const v=y.value?"a":e.tag,w=!!(i.title||e.title!=null),M=!!(i.subtitle||e.subtitle!=null),I=w||M,O=!!(i.append||e.appendAvatar||e.appendIcon),V=!!(i.prepend||e.prependAvatar||e.prependIcon),N=!!(i.image||e.image),$=I||V||O,H=!!(i.text||e.text!=null);return en(k(v,Ee({class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":S.value},o.value,r.value,s.value,u.value,d.value,f.value,g.value,m.value,l.value,e.class],style:[a.value,c.value,h.value,e.style],onClick:S.value&&p.navigate,tabindex:e.disabled?-1:void 0},p.linkProps),{default:()=>{var E;return[N&&k("div",{key:"image",class:"v-card__image"},[i.image?k(wt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},i.image):k(N1,{key:"image-img",cover:!0,src:e.image},null)]),k(cS,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:i.loader}),$&&k(Q3,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:i.item,prepend:i.prepend,title:i.title,subtitle:i.subtitle,append:i.append}),H&&k(Xh,{key:"text"},{default:()=>{var W;return[((W=i.text)==null?void 0:W.call(i))??e.text]}}),(E=i.default)==null?void 0:E.call(i),i.actions&&k(Kl,null,{default:i.actions}),Xs(S.value,"v-card")]}}),[[No("ripple"),S.value&&e.ripple]])}),{}}}),lf=th("v-spacer","div","VSpacer"),n5=Pe({__name:"ComponentNodeEditor",props:ob({component:{},instance:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=qh(),n=_b(e,"modelValue"),i=ne(e.instance.name),o=at({...e.instance.args}),r=async()=>{n.value=!1,await Ue(),Object.assign(o,e.instance.args)},s=async()=>{e.instance.name=i.value,e.instance.args=H3(o,e.component.args),await Ue(),n.value=!1,t.updateInstance(e.instance)};return(a,l)=>{const u=M3;return se(),Oe(sf,{modelValue:n.value,"onUpdate:modelValue":l[1]||(l[1]=c=>n.value=c),contained:"",opacity:1,width:"100%",height:"100%",class:"nowheel nodrag",transition:!1,style:{"border-radius":"6px"}},{default:$e(()=>[k(wS,{height:"100%",variant:"flat"},{default:$e(()=>[k(Xh,{class:"d-flex flex-column ga-2 px-2 py-2",style:{height:"calc(100% - 53px)",overflow:"scroll"}},{default:$e(()=>[k(To,{modelValue:Q(i),"onUpdate:modelValue":l[0]||(l[0]=c=>Ve(i)?i.value=c:null),label:"Name",variant:"outlined",density:"compact",style:{"max-height":"40px"},"hide-details":""},null,8,["modelValue"]),(se(!0),Ae(be,null,ri(a.component.args,(c,d)=>(se(),Oe(u,{key:d,modelValue:Q(o)[d],"onUpdate:modelValue":f=>Q(o)[d]=f,name:d,arg:c,instance:a.instance},null,8,["modelValue","onUpdate:modelValue","name","arg","instance"]))),128))]),_:1}),k(ls),k(Kl,{class:"d-flex py-0"},{default:$e(()=>[l[4]||(l[4]=nt("div",{class:"text-overline text-disabled"},"editing",-1)),k(lf),k(Zo,{size:"small",variant:"tonal",class:"toolbar-button",color:"error",onClick:r},{default:$e(()=>[k(Xe,null,{default:$e(()=>l[2]||(l[2]=[Zt("mdi-cancel")])),_:1})]),_:1}),k(Zo,{size:"small",variant:"tonal",class:"toolbar-button",color:"success",onClick:s},{default:$e(()=>[k(Xe,null,{default:$e(()=>l[3]||(l[3]=[Zt("mdi-check")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Ro=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},i5=Ro(n5,[["__scopeId","data-v-89073d05"]]),_S=/^[a-z0-9]+(-[a-z0-9]+)*$/,Nu=(e,t,n,i="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:i,prefix:l,name:a};return t&&!qa(u)?null:u}const r=o[0],s=r.split("-");if(s.length>1){const a={provider:i,prefix:s.shift(),name:s.join("-")};return t&&!qa(a)?null:a}if(n&&i===""){const a={provider:i,prefix:"",name:r};return t&&!qa(a,n)?null:a}return null},qa=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,SS=Object.freeze({left:0,top:0,width:16,height:16}),ql=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ou=Object.freeze({...SS,...ql}),uf=Object.freeze({...Ou,body:"",hidden:!1});function o5(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(n.rotate=i),n}function Bv(e,t){const n=o5(e,t);for(const i in uf)i in ql?i in e&&!(i in n)&&(n[i]=ql[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}function r5(e,t){const n=e.icons,i=e.aliases||Object.create(null),o=Object.create(null);function r(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=i[s]&&i[s].parent,l=a&&r(a);l&&(o[s]=[a].concat(l))}return o[s]}return Object.keys(n).concat(Object.keys(i)).forEach(r),o}function s5(e,t,n){const i=e.icons,o=e.aliases||Object.create(null);let r={};function s(a){r=Bv(i[a]||o[a],r)}return s(t),n.forEach(s),Bv(e,r)}function CS(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const i=r5(e);for(const o in i){const r=i[o];r&&(t(o,s5(e,o,r)),n.push(o))}return n}const a5={provider:"",aliases:{},not_found:{},...SS};function $c(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function xS(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!$c(e,a5))return null;const n=t.icons;for(const o in n){const r=n[o];if(!o||typeof r.body!="string"||!$c(r,uf))return null}const i=t.aliases||Object.create(null);for(const o in i){const r=i[o],s=r.parent;if(!o||typeof s!="string"||!n[s]&&!i[s]||!$c(r,uf))return null}return t}const Hv=Object.create(null);function l5(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Mo(e,t){const n=Hv[e]||(Hv[e]=Object.create(null));return n[t]||(n[t]=l5(e,t))}function Zh(e,t){return xS(t)?CS(t,(n,i)=>{i?e.icons[n]=i:e.missing.add(n)}):[]}function u5(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Os=!1;function ES(e){return typeof e=="boolean"&&(Os=e),Os}function c5(e){const t=typeof e=="string"?Nu(e,!0,Os):e;if(t){const n=Mo(t.provider,t.prefix),i=t.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function d5(e,t){const n=Nu(e,!0,Os);if(!n)return!1;const i=Mo(n.provider,n.prefix);return t?u5(i,n.name,t):(i.missing.add(n.name),!0)}function f5(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Os&&!t&&!e.prefix){let o=!1;return xS(e)&&(e.prefix="",CS(e,(r,s)=>{d5(r,s)&&(o=!0)})),o}const n=e.prefix;if(!qa({provider:t,prefix:n,name:"a"}))return!1;const i=Mo(t,n);return!!Zh(i,e)}const kS=Object.freeze({width:null,height:null}),AS=Object.freeze({...kS,...ql}),h5=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m5=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Fv(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const i=e.split(h5);if(i===null||!i.length)return e;const o=[];let r=i.shift(),s=m5.test(r);for(;;){if(s){const a=parseFloat(r);isNaN(a)?o.push(r):o.push(Math.ceil(a*t*n)/n)}else o.push(r);if(r=i.shift(),r===void 0)return o.join("");s=!s}}function g5(e,t="defs"){let n="";const i=e.indexOf("<"+t);for(;i>=0;){const o=e.indexOf(">",i),r=e.indexOf("</"+t);if(o===-1||r===-1)break;const s=e.indexOf(">",r);if(s===-1)break;n+=e.slice(o+1,r).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:n,content:e}}function p5(e,t){return e?"<defs>"+e+"</defs>"+t:t}function v5(e,t,n){const i=g5(e);return p5(i.defs,t+i.content+n)}const y5=e=>e==="unset"||e==="undefined"||e==="none";function b5(e,t){const n={...Ou,...e},i={...AS,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,i].forEach(m=>{const p=[],y=m.hFlip,S=m.vFlip;let v=m.rotate;y?S?v+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):S&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let w;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:w=o.height/2+o.top,p.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,p.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}v%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),p.length&&(r=v5(r,'<g transform="'+p.join(" ")+'">',"</g>"))});const s=i.width,a=i.height,l=o.width,u=o.height;let c,d;s===null?(d=a===null?"1em":a==="auto"?u:a,c=Fv(d,l/u)):(c=s==="auto"?l:s,d=a===null?Fv(c,u/l):a==="auto"?u:a);const f={},h=(m,p)=>{y5(p)||(f[m]=p.toString())};h("width",c),h("height",d);const g=[o.left,o.top,l,u];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:r}}const w5=/\sid="(\S+)"/g,_5="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let S5=0;function C5(e,t=_5){const n=[];let i;for(;i=w5.exec(e);)n.push(i[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const s=typeof t=="function"?t(r):t+(S5++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const cf=Object.create(null);function x5(e,t){cf[e]=t}function df(e){return cf[e]||cf[""]}function Jh(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Qh=Object.create(null),Hr=["https://api.simplesvg.com","https://api.unisvg.com"],Xa=[];for(;Hr.length>0;)Hr.length===1||Math.random()>.5?Xa.push(Hr.shift()):Xa.push(Hr.pop());Qh[""]=Jh({resources:["https://api.iconify.design"].concat(Xa)});function E5(e,t){const n=Jh(t);return n===null?!1:(Qh[e]=n,!0)}function em(e){return Qh[e]}const k5=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Gv=k5();function A5(e,t){const n=em(e);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const r=t+".json?icons=";i=n.maxURL-o-n.path.length-r.length}return i}function D5(e){return e===404}const P5=(e,t,n)=>{const i=[],o=A5(e,t),r="icons";let s={type:r,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=o&&u>0&&(i.push(s),s={type:r,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),i.push(s),i};function I5(e){if(typeof e=="string"){const t=em(e);if(t)return t.path}return"/"}const T5=(e,t,n)=>{if(!Gv){n("abort",424);return}let i=I5(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});i+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;i+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;Gv(e+i).then(r=>{const s=r.status;if(s!==200){setTimeout(()=>{n(D5(s)?"abort":"next",s)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},M5={prepare:P5,send:T5};function N5(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let i={provider:"",prefix:"",name:""};return e.forEach(o=>{if(i.name===o.name&&i.prefix===o.prefix&&i.provider===o.provider)return;i=o;const r=o.provider,s=o.prefix,a=o.name,l=n[r]||(n[r]=Object.create(null)),u=l[s]||(l[s]=Mo(r,s));let c;a in u.icons?c=t.loaded:s===""||u.missing.has(a)?c=t.missing:c=t.pending;const d={provider:r,prefix:s,name:a};c.push(d)}),t}function DS(e,t){e.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(o=>o.id!==t))})}function O5(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const i=e.provider,o=e.prefix;t.forEach(r=>{const s=r.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:i,prefix:o,name:u});else if(e.missing.has(u))s.missing.push({provider:i,prefix:o,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||DS([e],r.id),r.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),r.abort))})}))}let $5=0;function R5(e,t,n){const i=$5++,o=DS.bind(null,n,i);if(!t.pending.length)return o;const r={id:i,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(r)}),o}function V5(e,t=!0,n=!1){const i=[];return e.forEach(o=>{const r=typeof o=="string"?Nu(o,t,n):o;r&&i.push(r)}),i}var L5={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function z5(e,t,n,i){const o=e.resources.length,r=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let I=e.resources.slice(0);for(s=[];I.length>1;){const O=Math.floor(Math.random()*I.length);s.push(I[O]),I=I.slice(0,O).concat(I.slice(O+1))}s=s.concat(I)}else s=e.resources.slice(r).concat(e.resources.slice(0,r));const a=Date.now();let l="pending",u=0,c,d=null,f=[],h=[];typeof i=="function"&&h.push(i);function g(){d&&(clearTimeout(d),d=null)}function m(){l==="pending"&&(l="aborted"),g(),f.forEach(I=>{I.status==="pending"&&(I.status="aborted")}),f=[]}function p(I,O){O&&(h=[]),typeof I=="function"&&h.push(I)}function y(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:p,abort:m}}function S(){l="failed",h.forEach(I=>{I(void 0,c)})}function v(){f.forEach(I=>{I.status==="pending"&&(I.status="aborted")}),f=[]}function w(I,O,V){const N=O!=="success";switch(f=f.filter($=>$!==I),l){case"pending":break;case"failed":if(N||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){c=V,S();return}if(N){c=V,f.length||(s.length?M():S());return}if(g(),v(),!e.random){const $=e.resources.indexOf(I.resource);$!==-1&&$!==e.index&&(e.index=$)}l="completed",h.forEach($=>{$(V)})}function M(){if(l!=="pending")return;g();const I=s.shift();if(I===void 0){if(f.length){d=setTimeout(()=>{g(),l==="pending"&&(v(),S())},e.timeout);return}S();return}const O={status:"pending",resource:I,callback:(V,N)=>{w(O,V,N)}};f.push(O),u++,d=setTimeout(M,e.rotate),n(I,t,O.callback)}return setTimeout(M),y}function PS(e){const t={...L5,...e};let n=[];function i(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const c=z5(t,a,l,(d,f)=>{i(),u&&u(d,f)});return n.push(c),c}function r(a){return n.find(l=>a(l))||null}return{query:o,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:i}}function Wv(){}const Rc=Object.create(null);function B5(e){if(!Rc[e]){const t=em(e);if(!t)return;const n=PS(t),i={config:t,redundancy:n};Rc[e]=i}return Rc[e]}function H5(e,t,n){let i,o;if(typeof e=="string"){const r=df(e);if(!r)return n(void 0,424),Wv;o=r.send;const s=B5(e);s&&(i=s.redundancy)}else{const r=Jh(e);if(r){i=PS(r);const s=e.resources?e.resources[0]:"",a=df(s);a&&(o=a.send)}}return!i||!o?(n(void 0,424),Wv):i.query(t,o,n)().abort}const Uv="iconify2",$s="iconify",IS=$s+"-count",jv=$s+"-version",TS=36e5,F5=168,G5=50;function ff(e,t){try{return e.getItem(t)}catch{}}function tm(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Yv(e,t){try{e.removeItem(t)}catch{}}function hf(e,t){return tm(e,IS,t.toString())}function mf(e){return parseInt(ff(e,IS))||0}const $u={local:!0,session:!0},MS={local:new Set,session:new Set};let nm=!1;function W5(e){nm=e}let Ia=typeof window>"u"?{}:window;function NS(e){const t=e+"Storage";try{if(Ia&&Ia[t]&&typeof Ia[t].length=="number")return Ia[t]}catch{}$u[e]=!1}function OS(e,t){const n=NS(e);if(!n)return;const i=ff(n,jv);if(i!==Uv){if(i){const a=mf(n);for(let l=0;l<a;l++)Yv(n,$s+l.toString())}tm(n,jv,Uv),hf(n,0);return}const o=Math.floor(Date.now()/TS)-F5,r=a=>{const l=$s+a.toString(),u=ff(n,l);if(typeof u=="string"){try{const c=JSON.parse(u);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>o&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,a))return!0}catch{}Yv(n,l)}};let s=mf(n);for(let a=s-1;a>=0;a--)r(a)||(a===s-1?(s--,hf(n,s)):MS[e].add(a))}function $S(){if(!nm){W5(!0);for(const e in $u)OS(e,t=>{const n=t.data,i=t.provider,o=n.prefix,r=Mo(i,o);if(!Zh(r,n).length)return!1;const s=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,s):s,!0})}}function U5(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const i in $u)OS(i,o=>{const r=o.data;return o.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function j5(e,t){nm||$S();function n(i){let o;if(!$u[i]||!(o=NS(i)))return;const r=MS[i];let s;if(r.size)r.delete(s=Array.from(r).shift());else if(s=mf(o),s>=G5||!hf(o,s+1))return;const a={cached:Math.floor(Date.now()/TS),provider:e.provider,data:t};return tm(o,$s+s.toString(),JSON.stringify(a))}t.lastModified&&!U5(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Kv(){}function Y5(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,O5(e)}))}function K5(e){const t=[],n=[];return e.forEach(i=>{(i.match(_S)?t:n).push(i)}),{valid:t,invalid:n}}function Fr(e,t,n,i){function o(){const r=e.pendingIcons;t.forEach(s=>{r&&r.delete(s),e.icons[s]||e.missing.add(s)})}if(n&&typeof n=="object")try{if(!Zh(e,n).length){o();return}i&&j5(e,n)}catch(r){console.error(r)}o(),Y5(e)}function qv(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function q5(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:i}=e,o=e.iconsToLoad;if(delete e.iconsToLoad,!o||!o.length)return;const r=e.loadIcon;if(e.loadIcons&&(o.length>1||!r)){qv(e.loadIcons(o,i,n),c=>{Fr(e,o,c,!1)});return}if(r){o.forEach(c=>{const d=r(c,i,n);qv(d,f=>{const h=f?{prefix:i,icons:{[c]:f}}:null;Fr(e,[c],h,!1)})});return}const{valid:s,invalid:a}=K5(o);if(a.length&&Fr(e,a,null,!1),!s.length)return;const l=i.match(_S)?df(n):null;if(!l){Fr(e,s,null,!1);return}l.prepare(n,i,s).forEach(c=>{H5(n,c,d=>{Fr(e,c.icons,d,!0)})})}))}const X5=(e,t)=>{const n=V5(e,!0,ES()),i=N5(n);if(!i.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(i.loaded,i.missing,i.pending,Kv)}),()=>{l=!1}}const o=Object.create(null),r=[];let s,a;return i.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===a&&u===s)return;s=u,a=c,r.push(Mo(u,c));const d=o[u]||(o[u]=Object.create(null));d[c]||(d[c]=[])}),i.pending.forEach(l=>{const{provider:u,prefix:c,name:d}=l,f=Mo(u,c),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),o[u][c].push(d))}),r.forEach(l=>{const u=o[l.provider][l.prefix];u.length&&q5(l,u)}),t?R5(t,i,r):Kv};function Z5(e,t){const n={...e};for(const i in t){const o=t[i],r=typeof o;i in kS?(o===null||o&&(r==="string"||r==="number"))&&(n[i]=o):r===typeof n[i]&&(n[i]=i==="rotate"?o%4:o)}return n}const J5=/[\s,]+/;function Q5(e,t){t.split(J5).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function eG(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:i(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?i(r):0)}}return t}function tG(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)n+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function nG(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function iG(e){return"data:image/svg+xml,"+nG(e)}function oG(e){return'url("'+iG(e)+'")'}const Xv={...AS,inline:!1},rG={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},sG={display:"inline-block"},gf={backgroundColor:"currentColor"},RS={backgroundColor:"transparent"},Zv={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Jv={webkitMask:gf,mask:gf,background:RS};for(const e in Jv){const t=Jv[e];for(const n in Zv)t[e+n]=Zv[n]}const Za={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Za[e+"-flip"]=t,Za[e.slice(0,1)+"-flip"]=t,Za[e+"Flip"]=t});function Qv(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const ey=(e,t)=>{const n=Z5(Xv,t),i={...rG},o=t.mode||"svg",r={},s=t.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let m in t){const p=t[m];if(p!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[m]=p===!0||p==="true"||p===1;break;case"flip":typeof p=="string"&&Q5(n,p);break;case"color":r.color=p;break;case"rotate":typeof p=="string"?n[m]=eG(p):typeof p=="number"&&(n[m]=p);break;case"ariaHidden":case"aria-hidden":p!==!0&&p!=="true"&&delete i["aria-hidden"];break;default:{const y=Za[m];y?(p===!0||p==="true"||p===1)&&(n[y]=!0):Xv[m]===void 0&&(i[m]=p)}}}const l=b5(e,n),u=l.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){i.style={...r,...a},Object.assign(i,u);let m=0,p=t.id;return typeof p=="string"&&(p=p.replace(/-/g,"_")),i.innerHTML=C5(l.body,p?()=>p+"ID"+m++:"iconifyVue"),Me("svg",i)}const{body:c,width:d,height:f}=e,h=o==="mask"||(o==="bg"?!1:c.indexOf("currentColor")!==-1),g=tG(c,{...u,width:d+"",height:f+""});return i.style={...r,"--svg":oG(g),width:Qv(u.width),height:Qv(u.height),...sG,...h?gf:RS,...a},Me("span",i)};ES(!0);x5("",M5);if(typeof document<"u"&&typeof window<"u"){$S();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!f5(i))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const i="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;E5(n,o)||console.error(i)}catch{console.error(i)}}}}const aG={...Ou,body:""},ty=Pe({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let i;if(typeof e!="string"||(i=Nu(e,!1,!0))===null)return this.abortLoading(),null;let o=c5(i);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:X5([i],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){o=Object.assign({},o);const s=n(o.body,i.name,i.prefix,i.provider);typeof s=="string"&&(o.body=s)}const r=["iconify"];return i.prefix!==""&&r.push("iconify--"+i.prefix),i.provider!==""&&r.push("iconify--"+i.provider),{data:o,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return ey(aG,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),ey({...Ou,...t.data},n)}}),lG={class:"dual-icon"},uG=Pe({__name:"ComponentIcon",props:{meta:{}},setup(e){const t=z(()=>e.meta.primaryIcon??"iconamoon:component");return(n,i)=>(se(),Ae("div",lG,[k(Q(ty),{icon:Q(t),class:"primary-icon",color:n.meta.primaryIconColor},null,8,["icon","color"]),n.meta.secondaryIcon?(se(),Oe(Q(ty),{key:0,icon:n.meta.secondaryIcon,color:n.meta.secondaryIconColor,class:"secondary-icon"},null,8,["icon","color"])):dt("",!0)]))}}),cG=Ro(uG,[["__scopeId","data-v-674d0c60"]]),VS=Pe({__name:"ComponentCard",props:{component:{},subtitle:{},text:{}},setup(e){return(t,n)=>{const i=cG;return se(),Oe(wS,{width:"360",title:("getDisplayName"in t?t.getDisplayName:Q(as))(t.component.type,t.component.meta),subtitle:t.subtitle,text:t.text,color:t.component.meta.color??"#2d2d2d",variant:"flat",style:{"border-radius":"4px"}},{prepend:$e(()=>[k(i,{meta:t.component.meta},null,8,["meta"])]),default:$e(()=>[cn(t.$slots,"default")]),_:3},8,["title","subtitle","text","color"])}}});function dG(e){const t=e.replace("#",""),n=parseInt(t.substring(0,2),16),i=parseInt(t.substring(2,2),16),o=parseInt(t.substring(4,2),16);return(n*299+i*587+o*114)/1e3>=128?"#000":"#fff"}const fG={class:"d-flex text-disabled text-start text-no-wrap"},hG={key:0,class:"d-flex ml-auto text-error"},mG={key:1,class:"d-flex ml-auto text-truncate pl-4"},gG={class:"d-flex flex-column gr-2"},pG={class:"d-flex flex-column gr-2"},vG=Pe({__name:"ComponentNode",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{}},setup(e){const t=Kh(),n=qh(),{findNode:i}=Mu();z(()=>Object.keys(e.data.component.args).length>0);const o=z(()=>Object.keys(e.data.component.inputs).length>0),r=z(()=>Object.keys(e.data.component.outputs).length>0),s=z(()=>o.value||r.value),a=(f,h)=>{const g=e.data.component[f][h];return g.meta.color??t.entities[g.type].meta.color??"#607D8B"},l=(f,h)=>dG(a(f,h)),u=f=>{if(f.target===e.data.instance.id)return!1;const h=i(f.source),g=i(f.target);if(!h||!g)return!1;const m=g.data.component.inputs[f.targetHandle],p=h.data.component.outputs[f.sourceHandle];return!m||!p||m.type!==p.type?!1:g.data.component.inputs[f.targetHandle].multiple?!0:!g.data.instance.inputs[f.targetHandle]},c=ne(!1),d=z(()=>{const f=[];for(const[h,g]of Object.entries(e.data.component.args))!g.required&&e.data.instance.args[h]===void 0||f.push({name:as(h,g.meta),value:F3(e.data.instance.args[h]),requiredAndNotSet:g.required&&e.data.instance.args[h]===void 0});return f});return(f,h)=>{const g=i5,m=VS;return se(),Oe(m,{component:f.data.component,subtitle:f.data.instance.name,style:{overflow:"visible"}},{default:$e(()=>[k(g,{modelValue:Q(c),"onUpdate:modelValue":h[0]||(h[0]=p=>Ve(c)?c.value=p:null),instance:f.data.instance,component:f.data.component},null,8,["modelValue","instance","component"]),Q(d).length>0?(se(),Ae(be,{key:0},[k(ls),k(Xh,{class:"d-flex flex-column gap-2 px-2 py-2"},{default:$e(()=>[(se(!0),Ae(be,null,ri(Q(d),({name:p,value:y,requiredAndNotSet:S})=>(se(),Ae("div",{key:p,class:"d-flex flex-row"},[nt("div",fG,Jn(p),1),S?(se(),Ae("div",hG,"not set")):(se(),Ae("div",mG,Jn(y),1))]))),128))]),_:1})],64)):dt("",!0),Q(s)?(se(),Oe(ls,{key:1})):dt("",!0),Q(s)?(se(),Oe(Kl,{key:2,class:"align-start"},{default:$e(()=>[nt("div",gG,[(se(!0),Ae(be,null,ri(f.data.component.inputs,(p,y)=>(se(),Oe(jl,{key:y,style:ft({backgroundColor:a("inputs",y),color:l("inputs",y)}),"text-color":"white",class:"rounded handle-chip"},{default:$e(()=>[Zt(Jn(p.meta.displayName??("camelCaseToHumanReadable"in f?f.camelCaseToHumanReadable:Q(Jd))(y))+" ",1),k(Q(mr),{id:y,type:"source",position:Q(ye).Left,class:"handle left-handle","is-valid-connection":u},null,8,["id","position"]),nt("div",{class:"handle-dot handle-dot-input",style:ft({backgroundColor:a("inputs",y)})},null,4)]),_:2},1032,["style"]))),128))]),k(lf),nt("div",pG,[(se(!0),Ae(be,null,ri(f.data.component.outputs,(p,y)=>(se(),Oe(jl,{key:y,style:ft({backgroundColor:a("outputs",y),color:l("outputs",y)}),"text-color":"white",class:"rounded handle-chip"},{default:$e(()=>[Zt(Jn(p.meta.displayName??("camelCaseToHumanReadable"in f?f.camelCaseToHumanReadable:Q(Jd))(y))+" ",1),k(Q(mr),{id:y,type:"source",position:Q(ye).Right,class:"handle right-handle","is-valid-connection":u},null,8,["id","position"]),nt("div",{class:"handle-dot handle-dot-output",style:ft({backgroundColor:a("outputs",y)})},null,4)]),_:2},1032,["style"]))),128))])]),_:1})):dt("",!0),k(ls),k(Kl,{class:"py-0 h-auto"},{default:$e(()=>[h[7]||(h[7]=nt("div",{class:"text-overline text-disabled"},"not created",-1)),k(lf),k(Zo,{size:"small",variant:"tonal",class:"toolbar-button"},{default:$e(()=>[k(Xe,null,{default:$e(()=>h[3]||(h[3]=[Zt("mdi-rocket-launch")])),_:1})]),_:1}),k(Zo,{size:"small",variant:"tonal",class:"toolbar-button",onClick:h[1]||(h[1]=p=>c.value=!0)},{default:$e(()=>[k(Xe,null,{default:$e(()=>h[4]||(h[4]=[Zt("mdi-pencil")])),_:1})]),_:1}),k(Zo,{size:"small",variant:"tonal",class:"toolbar-button",onClick:h[2]||(h[2]=p=>Q(n).deleteInstance(f.data.instance))},{default:$e(()=>[k(Xe,null,{default:$e(()=>h[5]||(h[5]=[Zt("mdi-delete")])),_:1})]),_:1}),f.data.component.type==="proxmox.virtual_machine"?(se(),Oe(Zo,{key:0,size:"small",variant:"tonal",class:"toolbar-button",disabled:""},{default:$e(()=>[k(Xe,null,{default:$e(()=>h[6]||(h[6]=[Zt("mdi-console")])),_:1})]),_:1})):dt("",!0),f.data.component.type==="proxmox.virtual_machine"?(se(),Oe(uS,{key:1,size:"small",color:"primary",indeterminate:"",absolute:"",location:"bottom"})):dt("",!0)]),_:1})]),_:1},8,["component","subtitle"])}}}),yG=Ro(vG,[["__scopeId","data-v-d13349cd"]]),bG=Pe({__name:"ProjectCanvas",async setup(e){let t,n;const i=qh(),{getViewport:o}=z3(),r=([t,n]=GC(()=>o()),t=await t,n(),t),{screenToFlowCoordinate:s}=Mu(),a=u=>{u.preventDefault(),u.dataTransfer&&u.dataTransfer.types.includes("componentType")&&(u.dataTransfer.dropEffect="move")},l=u=>{if(u.preventDefault(),!u.dataTransfer)return;const c=u.dataTransfer.getData("componentType"),d=s({x:u.clientX,y:u.clientY});i.createInstance(c,d)};return(u,c)=>{const d=BM;return se(),Oe(d,null,{default:$e(()=>[nt("div",{class:"vue-flow-container",onDrop:l},[k(Q(OV),{"min-zoom":.5,"max-zoom":1,"default-viewport":Q(r),"snap-to-grid":!0,onDragover:a},{"node-component":$e(f=>[k(yG,_f(zf(f)),null,16)]),"connection-line":$e(f=>[k(Q(xh),Ee(f,{offset:40,"border-radius":20}),null,16)]),default:$e(()=>[k(Q(GV),{"pattern-color":"#aaa",gap:32}),k(Q(EH),{position:"top-right"})]),_:1},8,["default-viewport"])],32)]),_:1})}}}),wG=Ro(bG,[["__scopeId","data-v-6cce7eac"]]),_G={};function SG(e,t){const n=wG;return se(),Oe(Eb,null,{default:$e(()=>[k(n)]),_:1})}const CG=Ro(_G,[["render",SG]]),xG=Pe({__name:"ComponentTemplate",props:{component:{}},setup(e){const t=n=>{n.dataTransfer.setData("componentType",e.component.type)};return(n,i)=>{const o=VS;return se(),Ae("div",{draggable:"true",style:{cursor:"grab"},onDragstart:t},[k(o,{component:n.component,text:n.component.meta.description},null,8,["component","text"])],32)}}}),EG={class:"d-flex flex-column pl-4 pr-4 gr-4 sidebar-container"},kG={class:"d-flex flex-column align-center gr-4 component-list-container"},AG=Pe({__name:"ComponentList",setup(e){const t=Kh();return(n,i)=>{const o=xG;return se(),Ae("div",EG,[k(To,{modelValue:Q(t).search,"onUpdate:modelValue":i[0]||(i[0]=r=>Q(t).search=r),class:"ml-1 mr-1 search",variant:"outlined",density:"compact",placeholder:"Search components","hide-details":""},null,8,["modelValue"]),nt("div",kG,[(se(!0),Ae(be,null,ri(Q(t).filteredComponents,r=>(se(),Oe(o,{key:r.type,component:r},null,8,["component"]))),128))])])}}}),DG=Ro(AG,[["__scopeId","data-v-9ff87943"]]),PG=Pe({components:{ProjectCanvasWrapper:CG,ComponentList:DG},__name:"app",setup(e){const t=n=>{const i=n.api.addPanel({id:"hi",title:"Project",component:"ProjectCanvasWrapper"});n.api.addPanel({id:"component-list",title:"Components",component:"ComponentList",position:{referencePanel:i,direction:"right"},initialWidth:400,minimumWidth:400,maximumWidth:400})};return(n,i)=>(se(),Oe(Q(LM),{class:"dockview-container dockview-theme-dark",onReady:t}))}}),IG=Ro(PG,[["__scopeId","data-v-25b5eb82"]]),TG={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
68
|
+
`).splice(1).map(d=>({text:d.replace("webpack:/","").replace(".vue",".js").trim(),internal:d.includes("node_modules")&&!d.includes(".cache")||d.includes("internal")||d.includes("new Promise")})).map(d=>`<span class="stack${d.internal?" internal":""}">${d.text}</span>`).join(`
|
|
69
|
+
`);const i=Number(n.statusCode||500),o=i===404,r=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),s=n.message||n.toString(),a=void 0,c=o?gm(()=>ep(()=>import("./Cbvq2xei.js"),__vite__mapDeps([0,1,2]),import.meta.url)):gm(()=>ep(()=>import("./DVgDGs8k.js"),__vite__mapDeps([3,1,4]),import.meta.url));return(d,f)=>(se(),Oe(Q(c),_f(zf({statusCode:Q(i),statusMessage:Q(r),description:Q(s),stack:Q(a)})),null,16))}},MG={key:0},ny={__name:"nuxt-root",setup(e){const t=()=>null,n=lt(),i=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",i);xo().beforeEach(l)}const o=!1;rt(dw,fw()),n.hooks.callHookWith(l=>l.map(u=>u()),"vue:setup");const r=Uf(),s=!1;Jy((l,u,c)=>{if(n.hooks.callHook("vue:error",l,u,c).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),eA(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Jk(l)),!1});const a=!1;return(l,u)=>(se(),Oe(Eb,{onResolve:Q(i)},{default:$e(()=>[Q(s)?(se(),Ae("div",MG)):Q(r)?(se(),Oe(Q(TG),{key:1,error:Q(r)},null,8,["error"])):Q(a)?(se(),Oe(Q(t),{key:2,context:Q(a)},null,8,["context"])):Q(o)?(se(),Oe(nu(Q(o)),{key:3})):(se(),Oe(Q(IG),{key:4}))]),_:1},8,["onResolve"]))}};let iy;{let e;iy=async function(){var s,a;if(e)return e;const i=!!(((s=window.__NUXT__)==null?void 0:s.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?sE(ny):rE(ny),o=gk({vueApp:i});async function r(l){await o.callHook("app:error",l),o.payload.error=o.payload.error||lu(l)}i.config.errorHandler=r,o.hook("app:suspense:resolve",()=>{i.config.errorHandler===r&&(i.config.errorHandler=void 0)});try{await yk(o,AT)}catch(l){r(l)}try{await o.hooks.callHook("app:created",i),await o.hooks.callHook("app:beforeMount",i),i.mount(fk),await o.hooks.callHook("app:mounted",i),await Ue()}catch(l){r(l)}return i},e=iy().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{$e as A,Zt as B,OG as C,dn as D,dd as E,ae as F,Xy as G,$C as H,Bt as I,Ro as _,lt as a,ih as b,Ig as c,Pe as d,zt as e,$G as f,Qy as g,Me as h,z as i,Cr as j,Zk as k,au as l,Xk as m,NG as n,_t as o,Yb as p,gs as q,ne as r,Gf as s,se as t,xo as u,Ae as v,td as w,nt as x,Jn as y,k as z};
|